problem mounting cdrom in linux

nihil

Golden Member
Feb 13, 2002
1,479
0
0
i am relatively new to linux and came across this problem and i'm not realy sure what to do. when i go to mount my cdrom all it says is this mount: mount point /cdrom/ is not a directory. when i type ls / -la it comes up and says this ls: cdrom: Input/output error so as far as i know it is a directory and this is where i get stuck and ask for help cause i'm lost. :( this never happened before today. sorry if this is rather vague.

Edit: i recently changed some of the drives around on my ide channels, could that be part of the issue?

Editx2: when i mount the drive to another directory it works fine. slowly closing in, heh.

any help is greatly appreciated. :)
 

Priit

Golden Member
Nov 2, 2000
1,337
1
0
I'm not sure I fully understand what and where are you trying to mount but you might try following things:

Look where exactly you have /dev/cdrom linked ("ls -l /dev/cdrom"). If you changed your drive('s) configuration, it may point to nonexisting or wrong device (like HDD instead of CD-ROM).
If /dev/cdrom points to wrong device (like into /dev/hdb if you have CD-ROM as /dev/hdc), delete the symlink ("rm /dev/cdrom") and create a new one ("ln -s /dev/hdx /dev/cdrom").
Check your fstab file (probably in /etc folder). There should be information about where your CD-ROM should be mounted and what device it is. If fstab uses /dev/cdrom and you have fixed it like I described above and the mount point exists, then you shoud be OK. (You may also check that other lines in there are correct if you changed your HDD('s) IDE configuration).
If everything is OK, you should be able to mount/unmount your CD-ROM by simply writing "mount (umount) /dev/cdrom" (as a super user)

Hope that helps...
 

nihil

Golden Member
Feb 13, 2002
1,479
0
0
sweet. that was insanely easy to fix. i had a feeling it was the symlink but had no idea what to do about it. i will make note of this for future reference. thanks a lot man. :D