linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Udev thinks my cdrom is a char device?
@ 2004-05-30 20:54 Ryan Reich
  2004-05-31  1:35 ` Horst von Brand
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Reich @ 2004-05-30 20:54 UTC (permalink / raw)
  To: linux-kernel, linux-hotplug-devel

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?

-- 
Ryan Reich
ryanr@uchicago.edu


-------------------------------------------------------
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Udev thinks my cdrom is a char device?
  2004-05-30 20:54 Udev thinks my cdrom is a char device? Ryan Reich
@ 2004-05-31  1:35 ` Horst von Brand
  0 siblings, 0 replies; 2+ messages in thread
From: Horst von Brand @ 2004-05-31  1:35 UTC (permalink / raw)
  To: Ryan Reich; +Cc: linux-kernel, linux-hotplug-devel

Ryan Reich <ryanr@uchicago.edu> said:
> 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*

[...]

> 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.
-- 
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-31  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-30 20:54 Udev thinks my cdrom is a char device? Ryan Reich
2004-05-31  1:35 ` Horst von Brand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).