/dev/cdrom is not a valid block device?
Hi all,
Shortly after recompiling my kernel (ignoring numerous warnings and errors therein), I tried to mount my CD drive in the normal way:
mount /mnt/cdrom
But I'm getting a ``mount: /dev/cdrom is not a valid block device''. Does anyone have any idea why this is appearing?
Thanks,
Yawar Amin
-
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
Quoted 4 lines · Amin
Hi all,
Shortly after recompiling my kernel (ignoring numerous warnings and errors therein),
If you saw an "error" then your compile woul;d have stopped period, warnings on the otherhand do NOT stop a compile, i expect you think a warning is the same as an error however this is not the case when compiling a program or a kernel.
Quoted 6 lines
I tried to mount my CD drive in the normal way:
mount
/mnt/cdromBut I'm getting a ``mount:
/dev/cdromis not a valid block device''. Does anyone have any idea why this is appearing?
You have forgotten to include cdrom support as per the CDROM-HOWTO. Or simply no iso9660 or cdrom support in your kernel or compiled as modules.
I cannot say more as you did not say if the device is a SCSI device IDE or whatever.
Quoted 8 lines
Thanks,
Yawar Amin
-
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
Signature · 9 lines
Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - 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
Quoted 5 lines · Amin
Hi all,
Shortly after recompiling my kernel (ignoring numerous warnings and errors therein), I tried to mount my CD drive in the normal way:
It is normal to get manay, many **warnings** while compiling a kernel. But if you got **errors**, you better go back and look at them. (Personally, I doubt you really did get errors, since they are supposed to cause the compile process to abort ... you cannot, in practice, "ignore" actual errors. But since I can't see through your eyes, I have only what you wrote to go on.)
Quoted 4 lines
mount
/mnt/cdromBut I'm getting a ``mount:
/dev/cdromis not a valid block device''. Does anyone have any idea why this is appearing?
The most likely cause is that you omitted some kernel driver needed to access the device when you recompiled your kernel.
Next most likely is that you compiled what you needed as a module, but the module is not loading. Check either /etc/modules or /etc/modules.conf (or maybe /etc/conf.modules ... distros vary a bit here) to see that you are loading everything you need to.
Next is that there is something wrong with the /dev/cdrom symlink. What does it point to, and is that the right real device? (BTW, I am assuming there is a CD with an iso9660 filesystem in the drive when you try to mount.)
Last (and least likely) is a problem in /etc/fstab. What does the line for /mnt/cdrom look like?
It is also possible that you missed some step in the process of configuring, compiling, and installing the kernel. Since your prior message indicated that you successfully installed the NIC module, I'm classing this as a remote possibility.
Like Richard, I cannot be more specific without knowing:
A. What sort of CD-ROM drive is involved (ATAPI, SCSCI, one of the ones that requires a special driver).
B. Where is it really mounted (not just a symlink).
C. What kernel options you selected relevant to whatever sort of drive it is. (For example, if it is an ATAPI drive, did you select "ide-cd" support when configuring the kernel?)
D. The basics: what distro, what version, and what kernel version.
-
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
Quoted 3 lines · Ray Olszewski
The most likely cause is that you omitted some kernel driver needed to access the device when you recompiled your kernel.
Ray, that was it exactly. I did indeed somehow manage to leave out support for my CD-ROM drive during the creation of the kernel configuration file. I guess this just goes to show that we have to be very careful when doing that. The option I think I left out by mistake was ``ATA/IDE/MFM/RLL support ---> IDE, ATA and ATAPI Block devices ---> Include IDE/ATAPI CDROM support''.
Anyway, I recompiled again, making doubly sure that everything was in order this time. I had previously gone to the CDROM-HOWTO, as Richard suggested, and decided that recompilation was the first thing to do.
Barring a few hitches, I got the new kernel working, and now I've got CD-ROM support as well. Thanks, everybody!
Yawar Amin
-
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