LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   /dev/hdc....CDROM? (https://www.linuxquestions.org/questions/linux-hardware-18/dev-hdc-cdrom-333142/)

wombat53 06-13-2005 12:56 PM

/dev/hdc....CDROM?
 
Hi group.
Is there - or should there be - a "cdrom" subdirectory/node under /dev/hdc or simply just under /dev?
I recently added append = "hdc=ide-scsi" to my lilo.conf, which got me into unwanted difficulties, and a recommendation was to rm CDROM and re-create it as a link to /dev/sr0....
Anyway, this was not helpful, so I backed out the change, removed the link, and the lilo.conf change, but I believe I still have problems with CDROM (is said to be busy when it is not, cannot eject).

I think I (may) need to re-create either a dir or node called cdrom under/dev.
Is this correct? If a node, what is the command please? I am not so familiar with mknod, major/minor devices.
Thank You
George

satinet 06-13-2005 03:45 PM

okay.

if u are using slackware 9.1 with a default kernel you are using linux 2.4 which requires that CDrom writing devices are emulated as scsi devices. which means that the hdc=ide-scsi thing is need in our lilo.conf. This will most likely created a device called /dev/sr0 or something like /dev/sa0. I'm sorry I can't remember which will to tail or cat to work this out. But in dev their won't be many devices like that. Then you need to created a sym link to it in /dev/ e.g ln -s /dev/sr0 /dev/cdrom. you can then add this to /etc/fstab.

something like:

/dev/cdrom /mnt/cdrom udf,iso9660 ro,user,noauto 0 0

It should be noted the devfs creates the nodes and devices and there is no need to manually create them.

if u are using a 2.6 kernel you don't need the ide=scsi emuation. It will simply be created as /dev/hdc and can be linked as such.there is no actual need to create this link if you set your /etc/fstab file correctly.2.6 uses udev btw

type uname -a to find your kernel version.

hope this helps.

wombat53 06-13-2005 04:02 PM

Satinet - This is very helpful; yes I am 9.1 with 2.4.22 kernel, hence the requirement for that addendum to lilo.conf.
Over the pond, over here, something really important is happening now...the M Jackson verdict<g>.
Let me ponder what you have written here.
Again.
Thanks
George

wombat53 06-14-2005 11:02 PM

satinet - regarding getting CDRW functionality under kernel 2.4.22, to implement the SCSI emulation, does one have to change the kernel or load any additional modules (over and above adding the "append=hdc=ide-scsi) to lilo.conf, and uncommenting the modprobe of the /sbin/modprobe ide-scsi line in rc.modules? I have done both of these, yet the module ide-scsi is no located, suggesting I may need to congigure some dynamically loadable modules (and yes, a symlink to setup, a mod to fstab, etc...but if the module is not there, these changes are moot). I have seen discussion of this on the web from 1999 thru 2004, and see different steps to take, both with and without module re-configuration and compile/make.
Thanks
George


All times are GMT -5. The time now is 10:22 AM.