Victor, I'm sorry I couldn't get back to you last night. I know it's frustrating to try a couple of things, then wait a day, try a couple of things, wait two days....
Knoppix-installer made four entries in my /etc/fstab: 3 CD (1 audio) and 1 DVD, for a single CD/DVD drive. No other Linux has given me four. So that's a known quirk.
I suspect one of the problems is the transition from 3.4 to 3.6 kernels - 3.4 has one way of dealing with CD drives, and 3.6 adds another, and Knoppix lets you choose either kernel. So extra entries in /etc/fstab and /mnt may be there to cover all the possibilities. And to add confusion!
It might help to know which kernel is running. Find out with
$ uname -r
The uname command tells you a few tidbits about your system. Usa -a to see all the tidbits (none of the others should be relevant right now) and -h to see what all the pieces are.
And yes, knowing that the drive is working in another environment is important diagnostic info. I'm sorry, I forgot whether you know where it's physically wired in your computer. Are there other optical drives?
When the computer first powers on, the BIOS looks for drives and (by default, anyway) displays what it sees. The bootloader has to start with what the BIOS tells it, so if you have to troubleshoot back to that point, check the BIOS printout. It includes four IDE slots:
If you have one hard drive and one CD (that isn't a true SCSI drive), the standard places for them are HD at primary master and CD at secondary master. I've seen screwy setups, though.
- - primary master
- primary slave
- secondary master
- secondary slave
To investigate the mount errors, it will help to know all the identities that Linux has assigned that one drive. If it's in the secondary master position, it might be known as some variation on hdc.
Knoppix gave me all of these mount points for one drive:
Note that the link targets /mnt/auto/cdrom and /mnt/auto/cdromhdc don't actually exist on my system!
- - /cdaudio
- /cdrom
- /dvd
- /mnt/cdaudio
- /mnt/cdrom -> /mnt/auto/cdrom
- /mnt/cdromhdc -> /mnt/auto/cdromhdc
- /mnt/dvd
- /mnt/sr0
Putting mount points in the root directory is an annoying thing that Debian does. The sr* name is sometimes given to IDE CD drives.
It would also help to know all the device names that Linux is batting around internally. This isn't really possible, though, because by default Linux populates /dev with billions and billions of entries that might possibly be needed some day under one of the infinitely many situations where it gets installed.
But we can see what's been symlinked to what. To get a shorter list (that will include stuff besides your CD), type this:
$ ls -l /etc | grep "lr"
Here we're taking the output of ls and piping it to grep, which pulls out only the lines containing lr (like symlink lines, which start with those two characters).
You might see, as I did:
By themselves these lists of mount points and devices probably aren't useful - except to show that no attempt was made to organize the setup, and so users get to hunt all over the countryside to solve problems. Still, my symlinks that go off into the bit bucket are harmless ... unless Linux is trying to use them!
- - cdaudio -> /dev/cdrom
- cdrom -> /dev/hdc
- cdromhdc -> scdhdc
- dvd -> /dev/cdrom
- sr0 -> scd0 ... and so on through sr16 -> scd16
Now when you get hardware errors you can check what's where by running the commands on the spot. For example,
# ln -s /dev/scd0 cdrom tells you
file exists - but what does that mean?
What the command tries to do is create a new entry (file) in whatever directory you're in. You want this new entry to be called cdrom and to link symbolically to /dev/scd0.
An entry for /dev/scd0 must already exist to create the link, so the error isn't about /dev/scd0 itself.
Is the command telling you that there already is an entry called cdrom in the whatever directory? Is that right? Is it already a symlink to something else?
When you typed
# mount /cdrom
you got a very useless error message. By not specifying both the device and the mount point, you're telling the mount command to go look in /etc/fstab for the other piece.
But something's wrong - see what's actually mounted where with
$ mount
Is something else paired up with /cdrom or /dev/cdrom? What? Where? Are there symlinks that go out into space somewhere?
I'm sorry you're having a problem that's taking so long to track down. I hope I've given you some ideas and tools for looking into this one, but also into other hardware problems that may come up.
Let us know, okay?
-- Ed


Reply With Quote










