mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joachim Breuer <jmbreuer@gmx.net>
To: "qwerty314" <qwerty314@voila.fr>
Cc: "linux-kernel" <linux-kernel@vger.kernel.org>
Subject: Re: devfs cdrom mount pb
Date: Wed, 28 Aug 2002 18:12:56 +0200	[thread overview]
Message-ID: <m365xvnerb.fsf@terra.fo.et.local> (raw)
In-Reply-To: <H1K50B$AC854D30BB224167685C29984508D6D1@voila.fr> ("qwerty314"'s message of "Wed, 28 Aug 2002 16:16:59 +0200")

"qwerty314" <qwerty314@voila.fr> writes:

> My linux box was runing fine till I decide to try devfs on RH7.3
> with 2.4.18-3 kernel after some adjustments everything is nearly OK
> with the new /dev concepts but when I try to mount a cdrom it says
> that the device is not a block device.  cat /proc/scsi/scsi gives :
>
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>   Vendor: PLEXTOR  Model: CD-R   PX-W1610A Rev: 1.02
>   Type:   CD-ROM                           ANSI SCSI revision: 02
> Host: scsi0 Channel: 00 Id: 01 Lun: 00
>   Vendor: SAMSUNG  Model: CD-ROM SC-152C   Rev: CS05
>   Type:   CD-ROM                           ANSI SCSI revision: 02
>
> and ls -l /dev/scsi/host0/bus0/target1/lun0/* gives
> crw-rw-rw-    1 root     root      21,   1 jan  1  1970
> /dev/scsi/host0/bus0/target1/lun0/generic
>
> quid?
> why has my cdrom entry switched from a block to a character device
> and how to cure it ?

You do not have the sr_mod module loaded; thus /dev/scsi/<address>/
only contains the "generic" device node, not the "cdrom" block device
node.

Either load sr_mod from a startup script (/etc/rc.modules comes to
mind), or set up the devfs module autoloader appropriately.

The device to be used for mounting is /dev/scsi/<address>/cdrom, not
/dev/scsi/<address>/generic. The generic device is "only" used for
special-purpose commands, such as for scanners or CD writing. Those
special commands are not block-level, thus "generic" is a character
device.


So long,
   Joe

-- 
"I use emacs, which might be thought of as a thermonuclear
 word processor."
-- Neal Stephenson, "In the beginning... was the command line"

      reply	other threads:[~2002-08-28 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-28 14:16 qwerty314
2002-08-28 16:12 ` Joachim Breuer [this message]

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=m365xvnerb.fsf@terra.fo.et.local \
    --to=jmbreuer@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=qwerty314@voila.fr \
    /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

all inboxes | Powered by JetHome®