Re: device node not created for usb DVD/CD drive
On 2010-03-13 20:26, Zhang Weiwu wrote:
When device is plugged:
$ dmesg | tail -n 9
usb 1-4: new high speed USB device using ehci_hcd and address 4
usb 1-4: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: CD-ROM PLEXTOR DVDR PX-716AL 1.02 PQ: 0 ANSI: 0 CCS
scsi 2:0:0:0: Attached scsi generic sg0 type 5
usb-storage: device scan complete
It's an external USB?
check device node:
zhangweiwu@casablanca:~$ ls /dev/sr*
ls: cannot access /dev/sr*: No such file or directory
zhangweiwu@casablanca:~$ ls /dev/sg*
/dev/sg0
Trying to use /dev/sg0 instead of expected /dev/sr0 in "thoggen" (DVD
ripping software), I was told /dev/sg0 is not a block device.
ls -aFl would show you why...
$ ls -aFl /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Mar 9 16:42 /dev/sr0
^
That "b" means "block mode".
$ ls -aFl /dev/sg0
crw-rw---- 1 root root 21, 0 Feb 13 08:39 /dev/sg0
^
You can thus guess that "c" means character mode.
I suspect some kernel module is missing,
Very well could be!
but being a amateur
Many long-timers with much experience are still amateur.
I don't
have a clue how to check which is missing.
$ lsmod | grep sr_mod
sr_mod 16148 0
cdrom 35016 1 sr_mod
So, if those modules aren't loaded:
# modprobe -v cdrom
That should pull in sr_mod. If not...
# modprobe -v sr_mod
# modprobe -v cdrom
$ uname -a
Linux casablanca 2.6.27.19-fulong2f #1 PREEMPT Wed Mar 11 07:22:32 CST
2009 mips64 GNU/Linux
What kind of h/w are you running? Some old SGI box?
--
Ron Johnson, Jr.
Jefferson LA USA
"If God had wanted man to play soccer, he wouldn't have given
us arms." Mike Ditka
Reply to: