Udev thinks my cdrom is a char device?
I don't use my CD-ROM drive too often, and in fact I think the last time I did was 4 April, to make a backup; at the time I was running 2.6.4, patched with supermount and bootsplash. Now I run 2.6.5, and I find the following odd situation in /dev:
# ls -l /dev/hd* brw-rw-rw- 1 root root 3, 0 May 13 07:18 /dev/hda brw-rw-rw- 1 root root 3, 1 May 13 07:18 /dev/hda1 brw-rw-rw- 1 root root 3, 64 May 13 07:18 /dev/hdb brw-rw-rw- 1 root root 3, 65 May 13 07:18 /dev/hdb1 brw-rw-rw- 1 root root 3, 66 May 13 07:18 /dev/hdb2 brw-rw-rw- 1 root root 3, 69 May 13 07:18 /dev/hdb5 brw-rw-rw- 1 root root 3, 70 May 13 07:18 /dev/hdb6 brw-rw-rw- 1 root root 3, 71 May 13 07:18 /dev/hdb7 brw-rw-rw- 1 root root 3, 72 May 13 07:18 /dev/hdb8 crw-rw-rw- 1 root root 22, 0 May 30 15:41 /dev/hdc
It's probably not just me that hdc (my CD-ROM) should be a block device. I use udev to manage /dev but I haven't touched a line of any script in months; deleting and recreating the device with udev reproduces the problem. If I manually create /dev/hdc with mknod -m 666 /dev/hdc b 22 0 I can read the disc in the drive. The directory /sys/block/hdc exists and contains a device, but for some reason udev makes a char device anyway.
No other block device has this problem (i.e. I have been able to boot my computer from a hard disk); what's going on here?
Signature · 13 lines
Ryan Reich [email protected] ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Ryan Reich
I don't use my CD-ROM drive too often, and in fact I think the last time I did was 4 April, to make a backup; at the time I was running 2.6.4, patched with supermount and bootsplash. Now I run 2.6.5, and I find the following odd situation in /dev:
# ls -l /dev/hd*
[...]
Quoted 1 line
crw-rw-rw- 1 root root 22, 0 May 30 15:41
/dev/hdc
Filesystem corruption of some kind (or somebody remade the device wrongly). Kernel has nothing to do with it.
Signature · 15 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel