On Sun, 13 Jan 2002 04:56, Rick Sivernell wrote:

>    I am having continual problems with cdroms. I have the following

> scsi id 4  42x scsi cdrom
> scsi id 5  Yamaha 6x4x16 cdwriter   
> hdc is a 52x ide cdrom drive

[snippetty hack]

Rick,

your problem is your misunderstanding of srX and scdX they are BOTH the same 
thing. Viz.

[root@RSivernell rick]# ll /dev/sc* | more
brw-rw-r--    1 rick     disk      11,   0 Oct 11 13:07 /dev/scd0
brw-rw-r--    1 root     disk      11,   1 Oct 11 13:07 /dev/scd1
brw-------    1 rick     root      11,   0 Oct 11 13:07 /dev/sr0
brw-------    1 rick     disk      11,   1 Oct 11 13:07 /dev/sr1

note the major / minor numbers? They are identical.

First.

modern distros deprecate the use of srX, get rid of them, literally. Promise 
from me that you can do no harm by deleting them.

2)
you don't appear to have /dev/scd2. Do a mknod

3)
ln -s /dev/srX /dev/scdX

iterate X 0, 1 and 2
----

Each of your cd roms (all THREE) will iterate scd0, scd1 and finally scd2. 
Which is what is *impossible* to say as it depends on the order of module 
load, AND, which gets mounted first. (Blame the crappy scsi framework on 
Linux for that one, it's a brothel)

As a fair and reasonable guess, your system (regardless of what you think you 
have in /etc/fstab) is as follows

scd0 = hdc (because of append statement)
scd1 = writer (lun #4)
scd2 = reader (lun #5)

> /dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,exec 0 0
> /dev/cdwriter /mnt/sr0 iso9660 ro,user,noauto,exec 0 0
> /dev/cdrom2 /mnt/scd1 is09660 ro,user,noauto,exec 0 0

so that YOU don't get confused, scrap out all references to srX in both the 
fstab, and, obviously, the /mnt folder, replace them with the direct scdX 
name.

again, scrap all symlinks to mysterious items like cdrom etc and use direct 
/dev/scdX's. By all means, change back after it's settled down, but first 
work in the literal world (kde makes special use of the name 'cdrom' 
incidentally)

*Temporarily* disable automounters

Finally, reboot, place a cd in each drive and mount each scdX to find out who 
is what. 

There *will be* a timing race between the hdc and the other devices. If it is 
mounted FIRST, it will *probably* affect the scdX order because it's device 
minor node doesn't get registered until the cdrom.o module is loaded. Thus, I 
don't want to complicate things here, but *if* it's mounted first it will be 
scd0, *if* not, it might be scd2. You are going to have to play.

All else fails?

post here

tail -50 /var/log/messages immediately after a reboot

-- 
http://linux.nf -- [EMAIL PROTECTED]

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to