MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My Mandrake 10.1 works fine for quite a while now.
However, yesterday when I wanted to read a CD, I received
an error message about a missing device.
I looked into this and found these two symbolic links pointing
to each other:
/dev/hdb -> ide/host0/bus0/target1/lun0/cd
/dev/ide/host0/bus0/target1/lun0/cd -> ../../../../../hdb
I don't know what caused this. It used to work fine, but the last
time I used the CD drive was a couple of months ago.
/etc/fstab contains this line:
/dev/hdb /mnt/cdrom auto umask=0022,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
I'm guessing that I need to use mknod to recreate one of
these, but I don't know the major & minor numbers that I
need to use. I failed to find them on the web or on the Mandriva
web site.
What are the numbers to use here?
Or, alternatively, is there some tool in Mandrake 10.1
that will recreate the missing device file?
No, don't! /dev/ and /mnt/ are two entirely different things!
I don't have linux at hand, but you can easily fix it.
Look at your hda device, IIRC it is:
/dev/ide/host0/bus0/target0/disk or something like that. hdb is the same except it is target1.
The hints above gave me more ideas what to search for.
I asked Google about Linux device numbers and found a HOWTO that
references a file /usr/src/linux/Documentation/ide.txt
I do not have the kernel source tree, but I did find a version of this file
on the web. It appears that the numbers for device hdb are 3,64
so the command I needed to fix this is "mknod cd b 3 64". The whole
fix is therefore:
$ su
# cd /dev/ide/host0/bus0/target1/lun0
# rm cd
# mknod cd b 3 64
To access the file system on the CD that is in the drive, I had to mount it:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.