Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-23-2002, 08:17 PM   #1
LQ Newbie
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 9

Rep: Reputation: 0
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

Old 02-23-2002, 10:37 PM   #2
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Forgive me for asking but did you do it all as root?
Old 02-24-2002, 02:18 AM   #3
LQ Newbie
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, I was logged in as root.
Old 02-24-2002, 05:46 AM   #4
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
well, make sure you have actually removed the link properly, alternatively, just force the link with

ln -sf /dev/hdc /dev/cdrom
Old 02-24-2002, 08:02 PM   #5
LQ Newbie
Registered: Feb 2002
Distribution: Mandrake 8.1
Posts: 9

Original Poster
Rep: Reputation: 0
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!!
Old 04-18-2002, 06:02 PM   #6
LQ Newbie
Registered: Apr 2002
Location: OHIO
Distribution: slackware 8.0
Posts: 26

Rep: Reputation: 15
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.


Old 04-19-2002, 09:15 PM   #7
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30

Have you tried using the force option with rm (use with care!):

rm -f /dev/cdrom


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can "root" unlock a locked screen in Gnome? AZ_Rider Linux - Newbie 5 11-30-2011 02:28 AM
Passing groupadd to execv() returned error msg: "file already locked." walwali Programming 9 11-22-2010 07:36 AM
k3b: "error decoding audio tracks" and "could not unlock cd driver" lefty.crupps Linux - Software 7 10-13-2005 12:29 PM
Is software "locked" in a stable distro release? ColKurtz Linux - Newbie 2 02-14-2005 11:54 PM
"unlock" ctrl-alt-del raysr Linux - Newbie 6 05-07-2004 12:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration