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 |
try changing /dev/cdrom to /dev/hdc
|
I did try that beforehand. It doesnt work. |
Try runig this (as root):
Code:
ln -s /dev/hdc /dev/cdrom |
|
I guess after doing a ln -s /dev/hdc /dev/cdrom, things appear to work. I will reboot and check again. |
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! |
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 |
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? |
In that case I suggest the second method I outlined. It will work no matter what; don't worry about udev or devfs.
hs |
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 10:08 AM. |