cd or dvd will not automount in Lucid

Asked by J. McDonald

I would like to figure out how to get a DVD or CD to automount in Lucid on my Dual-G4 PowerPC Mac. Right now I have to use the "mount" command in terminal to successfully mount removable media. lshw identifies the drive as an Pioneer DVD-RW DVR-105. My other Lucid (32-bit x86) installs just pop an icon onto the desktop and within nautilus and for video-DVDs they even open up VLC for me and bring up the DVD menu. I can plug an external USB CD/DVD/RW drive into the Mac and it works fine (automounts CDs/DVDs, opens appropriate player, etc.). It just doesn't seem to work with the internal ATAPI Pioneer CD/DVD/RW.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

sudo lshw -C disk; cat /etc/fstab

Thanks

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#2

Will do:

lshw -C disk
  *-cdrom
       description: DVD writer
       product: PIONEER DVD-RW DVR-105
       vendor: Pioneer
       physical id: 0
       bus info: ide@2.0
       logical name: /dev/hde
       version: A506
       serial: BLDL003037WL
       capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy pm audio cd-r cd-rw dvd dvd-r
       configuration: status=ready
     *-medium
          physical id: 0
          logical name: /dev/hde
  *-disk:0
       description: ATA Disk
       product: Hitachi HDP725050GLAT80
       vendor: Hitachi
       physical id: 0
       bus info: ide@0.0
       logical name: /dev/hda
       version: GM4OA4CA
       serial: GE1540RJ39312A
       size: 465GiB (500GB)
       capabilities: ata dma lba iordy smart security pm apm partitioned partitioned:mac
       configuration: apm=off smart=on
  *-disk:1
       description: ATA Disk
       product: IBM-IC35L120AVV207-1
       vendor: IBM
       physical id: 1
       bus info: ide@0.1
       logical name: /dev/hdb
       version: V2SBA63A
       serial: VNVD33G4GJXN9T
       size: 114GiB (122GB)
       capacity: 114GiB (122GB)
       capabilities: ata dma lba iordy smart security pm apm partitioned partitioned:mac
       configuration: apm=off mode=udma5 smart=on

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/hdb3 during installation
UUID=a8aff40d-da4a-4df8-bd7a-16429346febd / ext4 errors=remount-ro 0 1
# swap was on /dev/hdb4 during installation
UUID=e46145fe-0b54-491c-9008-fc5fe0d5c4fb none swap sw 0 0

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Yep thought so, you dont have the optical drive in your fstab which is normal. I'm guessing you have a netbook with a USB optical drive.

run:

sudo mkdir /media/cdrom0; gksudo gedit /etc/fstab

add this line to the bottom:

/dev/hde0 /media/cdrom0 iso9660,udf user,noauto 0 0

Press enter on the end of the line, save the new file, close gedit and reboot, once it reboot, whack a data CD in the drive. If it automounts. If not try running:

sudo mount -a

if its still bad, re-edit the file and make the line read:

/dev/hde /media/cdrom0 iso9660,udf user,noauto 0 0

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#4

No, not it's not a netbook. It's an old full-tower PowerPC Mac with an internal Pioneer ATAPI CD/DVD/RW drive. Still, I will edit the fstab as per above and report what I find.

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#5

I tried both versions of the fstab line. Neither will mount a CD or DVD when it is inserted into the tray. The drive spins up, but then stops spinning and the media is not mounted and nothing appears in /media/cdrom0 . In some ways the fstab entry was a step backwards from where I was with no entry in fstab. Before, I used to be able to successfully mount media from the command line with:

sudo mount /dev/hde /cdrom

Now if I try:
sudo mount /dev/hde /media/cdrom0
(reflecting the new mountpoint in fstab)
I get the following message:
mount: block device /dev/hde is write-protected, mounting read-only
mount: you must specify the filesystem type

and I cannot view the files on the CD

I also played around with the different fstab versions that I created. With no fstab entry added, I can get a CD to mount if it is in the tray at time of boot, but I cannot then successfully eject the CD. I can physically eject it with the hardware, but it acts as though it is still mounted.

Is fstab the right place to be doing this, or is udev or hal supposed do this?

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#6

Should I create a bug report? How is that handled for community supported ports?

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#7

More info:

$ lshal | egrep cdrom
  info.linux.driver = 'ide-cdrom' (string)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  storage.cdrom.bd = false (bool)
  storage.cdrom.bdr = false (bool)
  storage.cdrom.bdre = false (bool)
  storage.cdrom.cdr = true (bool)
  storage.cdrom.cdrw = true (bool)
  storage.cdrom.dvd = true (bool)
  storage.cdrom.dvdplusr = false (bool)
  storage.cdrom.dvdplusrdl = false (bool)
  storage.cdrom.dvdplusrw = false (bool)
  storage.cdrom.dvdplusrwdl = false (bool)
  storage.cdrom.dvdr = true (bool)
  storage.cdrom.dvdram = false (bool)
  storage.cdrom.dvdrdl = false (bool)
  storage.cdrom.dvdrw = true (bool)
  storage.cdrom.hddvd = false (bool)
  storage.cdrom.hddvdr = false (bool)
  storage.cdrom.hddvdrw = false (bool)
  storage.cdrom.mo = false (bool)
  storage.cdrom.mrw = true (bool)
  storage.cdrom.mrw_w = true (bool)
  storage.cdrom.read_speed = 5644 (0x160c) (int)
  storage.cdrom.support_media_changed = true (bool)
  storage.cdrom.support_multisession = true (bool)
  storage.cdrom.write_speed = 2822 (0xb06) (int)
  storage.cdrom.write_speeds = {'2822', '2116', '1411', '705'} (string list)
  storage.drive_type = 'cdrom' (string)
$ ls -l /dev/{cd,dvd}*
lrwxrwxrwx 1 root root 3 2010-05-16 10:15 /dev/cdrom -> hde
lrwxrwxrwx 1 root root 3 2010-05-16 10:15 /dev/cdrw -> hde
lrwxrwxrwx 1 root root 3 2010-05-16 10:15 /dev/dvd -> hde
lrwxrwxrwx 1 root root 3 2010-05-16 10:15 /dev/dvdrw -> hde
$ hdparm -I /dev/hde

/dev/hde:
 HDIO_DRIVE_CMD(identify) failed: Invalid exchange

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#8

Just a quick question: I checked http://www.debian.org/releases/stable/i386/apcs04.html.en regarding device names. Wouldn't using hde or hde0 in fstab result in the device mounting as a hard-drive instead of as a CD or DVD?

Revision history for this message
J. McDonald (mcdonald-joseph) said :
#9

Again, should I create a bug report regarding this problem? There does not appear to be a solution...

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) said :
#10

There is already a bug report at https://bugs.launchpad.net/bugs/546373

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) said :
#11

oops wrong bug number. It should have been https://bugs.launchpad.net/bugs/584052

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) said :
#12

As long as it doesn't work automatically, here is an easier way to do it manually than editing system files (applies to Ubuntu, but not Kubuntu or Xubuntu)

On the top panel (or any panel)

1. left click (outside of any existing applet)
2. add to panel...
3. disk mounter

You get a little applet to mount, unmount, eject, and browse all kind of external media.

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) said :
#13

well, the bug report has been created by the author of this question ;)

but now it's linked for the benefit of others who are investigating this issue like myself...

Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#14

Thanks a lot for reporting this bug, will work on fixing it :)

On Sat, May 29, 2010 at 11:20 PM, Uwe Geuder
<email address hidden> wrote:
> Question #111055 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/111055
>
> Uwe Geuder proposed the following answer:
> well, the bug report has been created by the author of this question ;)
>
> but now it's linked for the benefit of others who are investigating this
> issue like myself...
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>

--
Regards,
Vikram Dhillon

~~~
There are lots of Linux users who don't care how the kernel works, but
only want to use it. That is a tribute to how good Linux is.
-- Linus Torvalds

Revision history for this message
john ziegler (zieglerjb3) said :
#15

I have the same problem with a usb dvdrw. It does not even show up in lshw. Hre is my output.

  *-disk:0
       description: ATA Disk
       product: Maxtor 96147H6
       vendor: Maxtor
       physical id: 0.0.0
       bus info: scsi@1:0.0.0
       logical name: /dev/sda
       version: ZAH8
       serial: V60Q78EC
       size: 57GiB (61GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=f3bff3bf
  *-disk:1
       description: ATA Disk
       product: ST380013A
       vendor: Seagate
       physical id: 0.1.0
       bus info: scsi@1:0.1.0
       logical name: /dev/sdb
       version: 8.01
       serial: 5JVR05S2
       size: 74GiB (80GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=0a6ab1e8
  *-disk
       description: ATA Disk
       product: WDC WD5000AAJS-0
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@3:0.0.0
       logical name: /dev/sdc
       version: 12.0
       serial: WD-WCAPW3888827
       size: 465GiB (500GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=45a631d3
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/mapper/nvidia_gbbeddeb5 / ext2 errors=remount-ro 0 1
/dev/mapper/nvidia_gbbeddeb6 none swap sw 0 0

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#16

CD drives will always mount read only as the media is a WORM (Write Once Read Many). You will always get the read only warning when you mount CD at command line.

Revision history for this message
john ziegler (zieglerjb3) said :
#17

What is the command line for how to mount a dvdrw that does not show up on the drive list?

Can you help with this problem?

Provide an answer of your own, or ask J. McDonald for more information if necessary.

To post a message you must log in.