CDROM is "locked", can't unlock it
I had the same problem someone else on this board did, however that solution didn't work. Here is what the problem is:
ls -l /dev/cdrom lr-xr-xr-x 1 root root 16 Feb 23 19:14 /dev/cdrom (flashes red)-> ../cdroms/cdrom0(flashes red) The advise that was offered was to do the following code, which I did: rm /dev/cdrom && ln -s /dev/hdc /dev/cdrom This however returned: ln: `/dev/cdrom': File exists Which is weird, because I just removed it supposedly. So when I go into the directory using KDE (under dev) the icon for cdrom is the questionmark with a big lock on it, and it says the file type is unknown (though it has an arrow like it is a link). So I thought, ok, I'll delete it and then make the new link, no problem. Well when I delete it and try to make the link with the code ln -s dev/hdc /dev/cdrom it gives the same response, saying the file exists. An low and behold when I refresh the directory it's back! Apparently I just can't delete it. When I just click on it, it says I don't have permission. How do I remove this faulty link and put in the correct one? One thing that I might have done to mess it up is that initially I typed (forgot the space): rm /dev/cdrom && ln -s /dev/hdc/dev/cdrom Would that really have screwed all this up, or is it something else? Any help you can give is greatly appreciated!! I'm using madrake 8.1 Kristen |
Forgive me for asking but did you do it all as root?
|
Yes, I was logged in as root. :)
|
well, make sure you have actually removed the link properly, alternatively, just force the link with
ln -sf /dev/hdc /dev/cdrom |
that's the big problem here--I think, it WON'T remove it, even when it appears to have removed it, when I go back to the directory later it is back. I've tried rm from the command line, I go into kde and delete it, I even tried just renaming it but when I say:
ln -sf /dev/hdc /dev/cdrom it says: ln: creating symbolic link '/dev/cdrom' to '/dev/hdc': file exists and then when I go back to my dev directory that locked cdrom link is back again. I tried just clicking on the link to see what it would do and it says: "You do not have enough permissions to read file:/dev/cdrom" I am in root, which I thought was the highest level of permissions? When I check the permissions on the file all the boxes are checked under read write and execute for all three. The user is listed as root and the group is listed as root. Is there some sort of "override" or someting that I need to do to seriously stop this locked link from coming back so I can make the new one? I really appreciate your help with this frustrating problem!! Thanks!! |
I got the *exact* same problem....
Im having the same thing happening under MDK8.1.
The /dev/cdrom link points to ../cdroms/cdrom0 There is no /cdroms/cdrom0, the link flashes red. There is however a /dev/cdroms/cdrom6@ which points to ../ide/host0/bus1/target0/lun0/cd I tried changing the device under kscd to point to something else and every time it gives a signal 11 If anyone has...or already found a solution, or any ideas i could try that'd be sweet. Thanks Pathogenik |
thezerosystem,
Have you tried using the force option with rm (use with care!): rm -f /dev/cdrom |
All times are GMT -5. The time now is 03:29 PM. |