DebianThis forum is for the discussion of Debian 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.
I have some pdf's on a cdrom that I'd like to upload and read. However, I can't seem to mount the cdrom. I get:
mount failed. medium not found.
So I go in /etc/fstab and all my devices are listed in there and looks like it should according to the Debian User's guide. Any advice? Scratching my head.
First, run (as root) the "dpkg-reconfigure discover1" command and make sure that you haven't enabled discover to manage mount points automatically. (In my experience discover handles this poorly.)
Next, run the "ls /media" command and check that you've actually got the /media/cdrom0 directory that is mentioned in your /etc/fstab. If not, create it as root (mkdir /media/cdrom0). Also run the "ls -lFG /dev | grep cdrom" [notice: the first option is NOT big i, it's small L] command and check that you've got in the /dev directory a symlink cdrom0 that points to /dev/hdc and symlink cdrom that points to /dev/cdrom0. If not, create them as root (ln -s /dev/hdc /dev/cdrom0 && ln -s /dev/cdrom0 /dev/cdrom).
Next, run (as normal user) the "id" command and check that you are a member in the cdrom group. If not, run (as root) the "adduser your_username cdrom" command. Then change to normal user and check with "id" that you've done it correctly.
Then reboot, and you should be able to mount your first cdrom drive as normal user with the "mount /media/cdrom0" command (and unmount it with "umount /media/cdrom0"). You should also be able to eject an unmounted cdrom with the "eject" command.
If nothing else seems to work, you should at least be able to mount your cdrom (as root) with the "mount -t iso9660 /dev/hdc /media/cdrom0" command (assuming that you have the /media/cdrom0 directory).
Last edited by Dead Parrot; 11-05-2004 at 02:07 PM.
Thanks for the reply, I'll try it immediately. However, I just managed to succeed before logging on to linuxquestions. Here's what I did. I typed in:
mount /dev/hdd
then
cd /media/cdrom1
and that was it. I was then able to access my pdf's via both xpdf and gv programs. After I was done:
umount /dev/hdd
But I had to press my cdrom button to eject. No automatic. I am also going to try your recommendations and see how it goes. I always like to learn and try new things. Thank you again for your help.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
yeah, it's fine. don't mess with it. my command didn't work because you don't have the /mnt/cdrom directory. mount can usually guess the filesystem. you can mount according the settings in /etc/fstab by either the mountpoint or the device. in your case, mount /dev/hdd or mount /media/cdrom0 would work for that drive.
you could make a small script called whatever you wish, maybe "cdout" that contains
umount /dev/hdd
eject /dev/hdd
that would umount and eject for you
That's really cool. The script will kill two birds with one stone. lol. BTW, I have a dvd player that's separate from my cdrom. That's why it wouldn't detect, cause dvd=cdrom0. Works fine now with cdrom1. Thanks again folks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.