Ubuntu 10.10 fails to detect or mount usb optical drive
Installation of 9.04 and 10.10 done via USB CD drive.
Since 10.10, after installation, inserted CD is not automounted, and can't be mounted.
*-cdrom
description: DVD-RAM writer
product: CD/DVDW TS-L632C
vendor: TSSTcorp
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/cdrom /dev/cdrw /dev/dvd /dev/dvdrw /dev/scd0 /dev/sr0
version: AS07
serial: [TSSTcorpCD/DVDW TS-L632CAS0702/
USB: Bus 001 Device 006: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
# /etc/fstab: static file system information.
# / was on /dev/sda6 during installation
UUID=613fddcf-
# swap was on /dev/sda7 during installation
UUID=41552315-
sudo mkdir /media/cdrom0; gksudo gedit /etc/fstab
Add this line:
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,
Save the new file, you can now insert a CD and run:
sudo mount /media/cdrom0
It worked the first time. However after I disconnected and reconnected the usb cd drive it fails to mount or read the CD.
===> double issue: USB CD drive detection and CD detectionChanging to Ubuntu 10.10 from 9.04 has brought in some surprises. Here is one more.
The CD drive is correctly detected by lshw at each plug/unplug.
The CD drive is correctly seen ob USB disk.
"udev" mount the device in /media
-- Original question
My netbook relies on external usb cd (cd \ dvd r w) drive. This worked well under 9.04. Installation of 10.10 also could be done using the same cd drive.
However it fails to detect the usb optical drive.
1. It does not show in places menu.
2. I could mount it only once using mount using
udisks --mount /dev/sr0
However I could read any files from it.
3. Now the same command fails to mount.
4. Command dmesg shows this as sr0
I will appreciate any help.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu udisks Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2011-02-20
- Last reply:
- 2011-08-11
Can you please have the device attached and run:
sudo lshw -C disk; sudo lshw -C disk; cat /etc/fstab
What is output?
Thanks
Thanks, here are the outputs:
-------
hemant@
*-disk
description: ATA Disk
product: SAMSUNG HS082HB
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: NL10
serial: S1GRJ16S313349
size: 74GiB (80GB)
*-cdrom
description: DVD-RAM writer
product: CD/DVDW TS-L632C
vendor: TSSTcorp
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
version: AS07
serial: [TSSTcorpCD/DVDW TS-L632CAS0702/
*-disk
description: ATA Disk
product: SAMSUNG HS082HB
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: NL10
serial: S1GRJ16S313349
size: 74GiB (80GB)
*-cdrom
description: DVD-RAM writer
product: CD/DVDW TS-L632C
vendor: TSSTcorp
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
version: AS07
serial: [TSSTcorpCD/DVDW TS-L632CAS0702/
# /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/sda6 during installation
UUID=613fddcf-
# swap was on /dev/sda7 during installation
UUID=41552315-
hemant@
Try:
sudo mkdir /media/cdrom0; gksudo gedit /etc/fstab
Add this line:
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,
Save the new file, you can now insert a CD and run:
sudo mount /media/cdrom0
Should be ok.
delance (olivier-delance) said : | #4 |
Even if fstab manages well this CD drive, it's not its job.
Could you also convert this question as a bug against packet "udev", which is supposed to manage removable media.
Only the author of question can convert question to a bug.
It is, ifthe device is listed in the file, it can be mounted that way. This is the method being used by linux for AGES
If you read:
https:/
You will see it, as well as:
http://
So YES, it IS it's job. It will make it work.
delance (olivier-delance) said : | #6 |
I will retrieve reference in documentation, but since 10.10, management of CD should shift from fstab to udev.
I would prefer it remains in fstab, as I lnow fstab and not udev.
Thanks. I do not understand the discussion, but I tried the above solution:
---------
sudo mkdir /media/cdrom0; gksudo gedit /etc/fstab
Add this line:
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,
Save the new file, you can now insert a CD and run:
sudo mount /media/cdrom0
-------
It worked the first time. However after I disconnected and reconnected the usb cd drive it fails to mount or read the CD.
I even tried to mount it again but fails. Here is the copy of command and message on the terminal.
-------
hemant@
mount: special device /dev/scd0 does not exist
-------
I have another question: Is it expected to every time mount the usb cd drive through terminal? in 9.04 the usb cd drive would get detected automatically.
How do I convert this into a bug? Should I?
(I tried to find a suitable way to convert the question into a bug. I could not figure it out.)
With the entry in fstab it will automount. Before you removed the cd from the pc did you use the OS to eject the disk?
No, I could not see eject or unmount option in cd the Ubuntu gui. I am not good in commands. I manually ejected the cd and reinserted it. I also tried unplugging and plugging the usb cd drive.
I now see two cdrom0 entries in places menu and also inside 'computer' window. On attempting to open, one of them gives message
"mount: special device /dev/scd0 does not exist"
and the opens the file manager window without any files. (My test cd is almost full with files).
Please let me know if any more information is needed.
Thanks for your help.
I am wondering, if there is any solution on this.
There is no way by which my usb cd drive can be accessed from ubuntu 10.10. To me this seems rather strange and it seems I made a mistake by installing ubuntu 10.10 when 9.04 worked just fine.
I will greatly appreciate any help.
delance (olivier-delance) said : | #12 |
"I have another question: Is it expected to every time mount the USB CD drive through terminal? in 9.04 the USB CD drive would get detected automatically."
NO. A daemon (udevd or udiskd, don't know which one) should have detected both plug/unplug of USB CD drive and insertion/remove of CD inside/outside drive.
A trap is that you can both:
eject the CD disk
"eject" the USB CD drive (i.e. make a logical unplug)
The same issue existed in 9.10 with people who ejected USB SD card reader instead of SD card.
As I have not a USB CD drive, I can't check behavior (mine is broken!).
So we have two issues to check: one on USB CD drive and one on CD disk.
The "lsusb" command display, after a few seconds, the list of USB devices connected.
"sudo lshw -class cdrom" display the detected CD drive (a CD drive could be detected on USB, but not as CD drive).
Could you check that when you plug and unplug the CD drive (without any disk), it is correctly detected on hardware level .
If it works, we will have a look at CD disk management.
I had to do this on weekend since I leave the usb cd drive at home.
-------
The command lsusb returns this without cd drive plugged.
hemant@
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 13d3:3249 IMC Networks
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 10f1:1a08
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
-------
when the usb cd drive is plugged lsusb returns this
hemant@
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 13d3:3249 IMC Networks
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
Bus 001 Device 004: ID 10f1:1a08
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
-------
the command
sudo lshw -class cdrom
does not return any output when executed without the usb cd drive and when it is plugged. There was no cd in the drive.
The file manager shows cd\dvd drive when under 'computer' in the places menu, when tne drive is both unplugged and plugged. But the properties show it as an unknown type.
-------
Please let me know if you need any further information.
Thank you for your help.
More info:
When I insert a cd in the usb cd drive the cd\dvd icon in the 'computer' (places menu) disappears. It reappears when I remove the cd from the plugged drive.
delance (olivier-delance) said : | #15 |
I need to confirm some data. Could you post results of following procedure.
Unplug CD drive.
Run commands: echo "without"; sleep 30; sudo lsusb | grep "Genesys" ; sudo lswh | grep "TS-L632C"
Plug CD drive.
Run commands: echo "with"; sleep 30; sudo lsusb | grep "Genesys" ; sudo lswh | grep "TS-L632C"
Unplug CD drive.
Run commands: echo "without"; sleep 30; sudo lsusb | grep "Genesys" ; sudo lswh | grep "TS-L632C"
Plug CD drive.
Run commands: echo "with"; sleep 30; sudo lsusb | grep "Genesys" ; sudo lswh | grep "TS-L632C"
Please don't retype commands, but use copy/paste.
You should get:
without
with
Bus 001 Device 006: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
product: CD/DVDW TS-L632C
without
with
Bus 001 Device 006: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
product: CD/DVDW TS-L632C
delance (olivier-delance) said : | #16 |
Could you also insert a disk and provide result of command:
sudo lshw | grep "configuration: status="
usb cd unplugged -output
without
usb cd plugged -output
with
Bus 001 Device 006: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
with a cd in the usb cd drive -output
configuration: status=ready
The cd is still not seen in 'computer' under places menu.
I later realised that you had asked me to test unplugged and plugged conditions twice. I did this only once.
Do you want me do this twice and then the final test with cd plugged? Please let me know. I will repeat the test. (However I do not understand the purpose of identical tests)
delance (olivier-delance) said : | #19 |
Yes, it is to test all transitions from one state to another one.
Here are the outputs
hemant@
without
hemant@
with
Bus 001 Device 005: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
hemant@
without
hemant@
with
Bus 001 Device 006: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter
(
with cd in the drive)
hemant@
delance (olivier-delance) said : | #21 |
The Linux kernel is doing well. At least it detects on USB bus the insertion of USB CD drive.
Udisks is able to mount it.
http://
But kernel is supposed to raise an event via a software bus to device manager (udev), and this one is supposed to send another one to DeviceKit who will send another one to desktop manager (Gnome) who should display CD icon and add it in Places.
I think udisks is the software bus listened by desktop manager. Could you run "udisks --monitor" to see what happen when you plug USB CD drive, and when you insert a CD in it.
Bellow is what I get when I remove and then insert a USB key.
delance@
Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
removed: /org/freedeskto
removed: /org/freedeskto
added: /org/freedeskto
added: /org/freedeskto
job-changed: /org/freedeskto
changed: /org/freedeskto
job-changed: /org/freedeskto
Could you:
1-report result of command "ls /media"
2-insert a CD
3-report result of command "ls /media"
As I'm afraid is too technical for me, you can also convert this question into a bug.
Here are the results
without cd inserted
hemant@
cdrom0 New Volume
after inserting cd
hemant@
cdrom0 New Volume
hemant@
delance (olivier-delance) said : | #23 |
Could you check right access ? The meaningful part is "dr-x".
"d" means it's a directory (folder)
"r" means you can read this folder
"x" means you can go inside this folder
delance is my name. Check that DVD is not owned by root.
delance@
dr-x------ 4 delance delance 136 2006-02-09 03:26 ALIAS_SEASON_4_
If your rights are OK, I'm afraid issue is in Gnome layer (IHM) and you will have to raise a bug.
Else you can repost question, to catch attention of someone else, or go to ubuntuforums.org
I have the exact same issue,, did any find a solution?
delance (olivier-delance) said : | #25 |
Please open a new question
How and under what package the "new" question should be raised?
delance (olivier-delance) said : | #27 |
At top right of this Web page, you have "Ask a question".
To change packet assignment, click on yellow button at right of "for:" field.
Can you help with this problem?
Provide an answer of your own, or ask hemantkarandikar for more information if necessary.