LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mount external USB cdrom drive (https://www.linuxquestions.org/questions/linux-hardware-18/mount-external-usb-cdrom-drive-213468/)

rickenbacherus 08-04-2004 04:29 PM

Mount external USB cdrom drive
 
I can't for the life of me figure out how to mount this drive. Here's what I have:

lsusb
Bus 001 Device 003: ID 05e3:0701 Genesys Logic, Inc. Optical Device
Bus 001 Device 002: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 001 Device 001: ID 0000:0000

cdrecord -scanbus
scsibus0:
0,0,0 0) ' ' 'CRW-5224A ' '1.20' Removable CD-ROM

# fdisk -l

Disk /dev/hda: 6448 MB, 6448619520 bytes
240 heads, 63 sectors/track, 833 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 33 249448+ 83 Linux
/dev/hda2 34 162 975240 83 Linux
/dev/hda3 163 227 491400 83 Linux
/dev/hda4 228 833 4581360 5 Extended
/dev/hda5 228 292 491368+ 83 Linux
/dev/hda6 293 486 1466608+ 83 Linux
/dev/hda7 487 615 975208+ 83 Linux
/dev/hda8 616 833 1648048+ 83 Linux

Disk /dev/hdb: 1281 MB, 1281982464 bytes
64 heads, 63 sectors/track, 621 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 242 487840+ 82 Linux swap
/dev/hdb2 243 621 764064 83 Linux

With a perfectly mountable data disc in the drive:

# mount /dev/scd0 /cdrom
mount: /dev/scd0 is not a valid block device
atilla:/home/glenn# mount /dev/scd1 /cdrom
mount: /dev/scd1 is not a valid block device
atilla:/home/glenn# mount /dev/scd2 /cdrom
mount: /dev/scd2 is not a valid block device
atilla:/home/glenn# mount /dev/sr0 /cdrom
mount: /dev/sr0 is not a valid block device
atilla:/home/glenn# mount /dev/sr1 /cdrom
mount: /dev/sr1 is not a valid block device
atilla:/home/glenn# mount /dev/sr2 /cdrom
mount: /dev/sr2 is not a valid block device
atilla:/home/glenn# mount /dev/sg0 /cdrom
mount: /dev/sg0 is not a block device
atilla:/home/glenn# mount /dev/sg1 /cdrom
mount: /dev/sg1 is not a block device
atilla:/home/glenn# mount /dev/sg2 /cdrom
mount: /dev/sg2 is not a block device

lsmod
/snip/
usb_storage 27648 0
uhci_hcd 30224 0
usbcore 104164 6 usbmouse,usbkbd,usb_storage,uhci_hcd
sg 30240 0

The drive works fine but damned if I can figure this one out. Thanks for any ideas. :)

Ambrosia 08-04-2004 04:49 PM

I think you're missing the sr_mod module (for using /dev/scd* devices). See if you have it, or if scsi cd-rom support is activated in your Kernel.

rickenbacherus 08-04-2004 09:55 PM

You were spot on. That dit it. Thanks! :)

fulanolinux 05-29-2006 07:12 PM

Hello all,

In my case I had to recompile the kernel in order to add scsi device support (scsi cdrom support), which adds module sr_mod (check with modprobe -l or lsmod if you already have it), since usb devices are accessed via scsi devices.
After that (make xconfig, make modeles_install) , reboot and mounted /dev/scd0 on /mdeia/dvdrecorder (or any other mount point).
mount -t iso9660 /dev/scd0 <mountpoint>
In some cases, depending on the number of usb devices attached, the device id may differ from scd0, being another number. In such case, use lsusb (figure out bus and device ids), /proc/scsi files, /var/log/messages.
regards,
F.


All times are GMT -5. The time now is 11:20 PM.