LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Debian: /dev/cdrom device does not exist (https://www.linuxquestions.org/questions/linux-hardware-18/debian-dev-cdrom-device-does-not-exist-304804/)

niru 03-22-2005 03:15 PM

Debian: /dev/cdrom device does not exist
 
:newbie: I have debian woody on my T42. Recently after an upgrade, my cdrom is not recognised. Below is a copy of my fstab and other useful inputs for experts.

/etc/fstab:

[SIZE=3][code]
# /media devices, user-mountable:
/dev/fd0 /media/floppy auto defaults,user,noauto 0 0
/dev/cdrom /media/cdrom iso9660 defaults,ro,user,noauto 0 0
/dev/sda /media/usb-floppy vfat defaults,user,noauto 0 0
/dev/sda1 /media/usb-storage vfat defaults,user,noauto 0 0
/dev/sda4 /media/usb-zip vfat defaults,user,noauto 0 0
/dev/sr0 /media/usb-cdrom iso9660 defaults,user,noauto 0 0


cat /proc/ide/hdc/model
HL-DT-STCD-RW/DVD DRIVE GCC-4242N


mount -t iso9660 /dev/cdrom /media/cdrom

Please help

cry0x 03-23-2005 12:30 AM

try changing /dev/cdrom to /dev/hdc

niru 03-23-2005 01:39 AM


I did try that beforehand. It doesnt work.

Cron 03-23-2005 02:07 AM

Try runig this (as root):
Code:

ln -s /dev/hdc /dev/cdrom

veerain 03-23-2005 02:09 AM

Is your ide-cd module loaded. lsmod to see it.

My site Veera's

niru 03-23-2005 02:33 PM


I guess after doing a ln -s /dev/hdc /dev/cdrom, things appear to work. I will reboot and check again.

niru 03-23-2005 02:49 PM


Well after a reboot, same problem appears.
I guess some sort of auto link or mount might help. Does any body know this.




Thank you all!

hshane 03-23-2005 07:47 PM

Are you using devfs or udev, per chance? If so you can alter the config files for whichever to automatically create the device on boot-up. Alternatively, a dirty method to fix this would be putting a script called e.g., cdrom in /etc/init.d/ that reads as follows:

#!/bin/sh
ln -s /dev/hdc /dev/cdrom
#EOF

...then making it executable:

# chmod u+x /etc/init.d/cdrom

...then using update-rc.d:

# update-rc.d cdrom.sh start 99 2 3 4 5 .

...where the # are obviously meant to be as root. A kludge of a way to do it, but fool-proof.

hs

niru 03-24-2005 10:01 AM


How do I check if its devfs or udev? I am total newbie to linux, so sorry for such naive questions. and which lines in which config files should be altered?

hshane 03-24-2005 06:52 PM

In that case I suggest the second method I outlined. It will work no matter what; don't worry about udev or devfs.

hs

Novarkingood 04-08-2005 03:02 PM

My solution to missing cdrom
 
I had the same problem. It turns out the /media/cdrom0 was missing.

/cdrom was linked to /media/cdrom which was linked to /media/cdrom0.

so I made the mount point (mkdir /media/cdrom0), then mounted it (mount -t iso9660 /dev/hdc /cdrom).

I hope that helped.

Novarkin....


All times are GMT -5. The time now is 06:08 PM.