Skip to contentSkip to conversation

not reading contents of cd-rom

DISCUSSION S. Barret Dolph 3 participants 5 messages Feb 8, 2004

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · S. Barret Dolph

Somehow, I have managed to make my CD invisible.

I do have the directory mnt/cdrom but nothing is shown there. (using Midnight Commander.)

Am I right in assuming that you meant to type /mnt/cdrom ?

While this is a traditional mount point for CDs, not all systems automount CDs there (in fact, in my personal experience, CDs usually do *not* automount on Linux systems).

First thing ... with an iso9660-filesystem CD in the drive, enter (as root)

mount /dev/cdrom /mnt/cdrom

and see if that makes the CD "visible". (Or, if /dev/cdrom does not exist, usually as a symlink, replace it with the appropriate underlying device for the drive, for *example* /dev/hdc .)

If this command fixes the problem, you just need to make your system automount (and auto-umount) CDs. I'm kind of rusty on this myself -- I don't use automount here -- but there used to be two ways to do it ... via AMD (Auto Mount Daemon, a userspace process) and via autofs (a kernelspace method). I don't know if both are still in use ... on a quick search, I only found an old mini-HowTo ... while it referred to both, it was a couple of years old.

For more help, you'll need to tell us how your system was automounting before (assuming it was, of course, and that I haven't misunderstood you) as well as the usual basics of your setup.

If this command does not fix the problem, then you probably need to check that the CD drive itself is working and is recognized by your kernel. Details require a description of your setup. But one quick check is to see if a CD ripper (like cdparanoia) can read the CD drive.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 3 lines

Am I right in assuming that you meant to type /mnt/cdrom ?

Yes, my apologies...

I did this...

Quoted 1 line

mount /dev/cdrom /mnt/cdrom

and got mount: you must specify the filesystem type.

Quoted 7 lines

If this command does not fix the problem, then you probably need to check that the CD drive itself is working and is recognized by your kernel. Details require a description of your setup. But one quick check is to see if a CD ripper (like cdparanoia) can read the CD drive.

How do I check if the cd is recognized by the kernel? I am trying to install SourceMage so I must select all the hardware options for the kernel.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

Am Sonntag, 8. Februar 2004 08:58 schrieb S. Barret Dolph:

Quoted 7 lines

I did this...

Quoted 1 line

mount /dev/cdrom /mnt/cdrom

and got mount: you must specify the filesystem type.

Ok, then you should specify the filesystem:
mount -t iso9660 /devcdrom /mnt/cdrom

Quoted 4 lines

How do I check if the cd is recognized by the kernel? I am trying to install SourceMage so I must select all the hardware options for the kernel.

If the above doesn't work, it's possible, that your kernel lacks the needed modules.. If I understand you right, you compiled your own kernel, mabe you didn't enable iso9660 / joliet ?

Regards,
Micha
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
In reply to S. Barret Dolph
Quoted 8 lines · S. Barret Dolph
Quoted 1 line

Am I right in assuming that you meant to type /mnt/cdrom ?

Yes, my apologies...

I did this...

Quoted 1 line

mount /dev/cdrom /mnt/cdrom

and got mount: you must specify the filesystem type.

This pmay just mean that there is no entry in /etc/fstab for the CD drive. Check by looking for a line there that looks about like this one (some details may vary):

/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto 0 0

Now see if this works:

mount -t iso9660 /dev/cdrom /mnt/cdrom

If not, one of four things is wrong:

1. /dev/cdrom does not point to a working, physical CD device.

2. The kernel does not have CD-ROM support compiled in (or as a module).

3. The kernel does not have support for the iso9660 filesystem type.

4. The CD in the drive is not a valid data disk.

If you post again on this topic, please include the details of your setup; any diagnosis beyond this really requires knowledge of the physical and software details of the system, including

what type of CD drive
if IDE, what IDE device is it (hda, hdb, hdc, hdd) if SCSI, what scsi device is it
if something else (e.g., USB), the appropriate details
output of "ls -l /dev/cdrom"
possibly, output of "lsmod"
any relevant output in the dmesg buffer (see below) whatever the BIOS messages say about the CD drive before Linux boots what distro and kernel are involved

Quoted 7 lines
Quoted 4 lines

If this command does not fix the problem, then you probably need to check that the CD drive itself is working and is recognized by your kernel. Details require a description of your setup. But one quick check is to see if a CD ripper (like cdparanoia) can read the CD drive.

How do I check if the cd is recognized by the kernel? I am trying to install SourceMage so I must select all the hardware options for the kernel.

I'm unfamiliar with SourceMage so cannot tell you exactly how to do what you want using it. Assuming you have an ATAPI (IDE) CD drive, you want to make sure that

CONFIG_BLK_DEV_IDECD=y

is in the kernel's .config file. That handles the hardware part. For the filesystem (iso9660), you also need these lines:

        CONFIG_ISO9660_FS=y
        CONFIG_JOLIET=y

(the second is not essential but is a good idea).

To see if the existing kernel is recognizing the drive, check dmesg for a line similar to this one:

hdd: CD-RW BCE4012IM, ATAPI CD/DVD-ROM drive

How you check dmesg is a bit distro specific. On my (Debian-Sid) system, there is a file /var/log/dmesg that preserves the state of the dmesg buffer immediately after boot/init. If your distro doesn't do something similar, you'll have to check the buffer itself (with the command "dmesg") right after boot/init, before any messages of interest might be overwritten.

Finally, I suggested using ripping software on a music CD as a test. I repeat that suggestion.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs