udev confusion

Joerg Balsiger joergbalsiger at yahoo.com
Tue Nov 29 12:49:31 PST 2005


--- Joerg Balsiger <joergbalsiger at yahoo.com> wrote:

> > But when I insert a data dvd and try to mount it with:
> >
> > mount -t auto /dev/dvd /media/dvd
> >
> > I'm told that it is not a block device (I've also tried
> >
> > mount -t auto /dev/sr0 /media/dvd
> >
> > but get the same error).

--- Dan Nicholson <dbn.lists at gmail.com> wrote:
 
> I'm shooting from the hip right now, but is it possible you do not
> have support for SCSI block devices compiled into the kernel (or
> available as a module)?  I know for IDE, you have to specify in the
> kernel config that you want support for this.  Of course, I don't
> remember the keys for these CONFIG lines.  Maybe you should look
> through your kernel config to make sure you have this.

I don't have CONFIG_BLK_DEV_IDESCSI enabled because the associated help text
says ide-scsi is no longer needed for cd writing applications (could it be that
it is needed for "dvd reading devices"? Not quite clear). I don't think my dvd
drive is an IDE ATAPI device and at any rate I don't use the hdx=ide-scsi
kernel command line. Here are the other SCSI options. 

#cat /boot-config-2.6.15-rc2-mm1 | grep SCSI

# CONFIG_BLK_DEV_IDESCSI is not set
# SCSI device support
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
# SCSI support type (disk, tape, CD-ROM)
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
# SCSI Transport Attributes
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# SCSI Transport Layers
# SCSI low-level drivers
# CONFIG_ISCSI_TCP is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
CONFIG_SCSI_DPT_I2O=m
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
CONFIG_SCSI_QLA2XXX=y
# CONFIG_SCSI_QLA21XX is not set
# CONFIG_SCSI_QLA22XX is not set
# CONFIG_SCSI_QLA2300 is not set
# CONFIG_SCSI_QLA2322 is not set
# CONFIG_SCSI_QLA6312 is not set
# CONFIG_SCSI_QLA24XX is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
# PCMCIA SCSI adapter support
# CONFIG_PCMCIA_NINJA_SCSI is not set
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
 
> It seems that udev is working if you have the device /dev/sr0 and
> symlink /dev/dvd.  What does ls -l /dev/sr0 give you?

#ls -l /dev/sr0
ls: /dev/sr0: No such file or directory

So udev didn't recognized my rule and created /dev/sr1, yet trying to manually
mount with 

$mount -t auto /dev/sr1 /media/cdrom 

still tells me it is not a block device.

The only way I can get it to work (some progress!) is with the udev rule

KERNEL="sr*", NAME="hdc", SYMLINK="dvd"

and

mount -t auto /dev/hdc /media/cdrom

But that does not identify a unique device and involves /dev/hdc, which I'd
rather not touch.

Thanks for the hint, though !!


		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/



More information about the lfs-support mailing list