linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Reich <ryanr@uchicago.edu>
To: linux-kernel@vger.kernel.org, linux-hotplug-devel@lists.sourceforge.net
Subject: Udev thinks my cdrom is a char device?
Date: Sun, 30 May 2004 20:54:52 +0000	[thread overview]
Message-ID: <20040530205450.GA2747@ryanr> (raw)

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

             reply	other threads:[~2004-05-30 20:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-30 20:54 Ryan Reich [this message]
2004-05-31  1:35 ` Udev thinks my cdrom is a char device? Horst von Brand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040530205450.GA2747@ryanr \
    --to=ryanr@uchicago.edu \
    --cc=linux-hotplug-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).