can't mount cdrom (after mounting .iso once, using -o loop)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
can't mount cdrom (after mounting .iso once, using -o loop)
All of a sudden, about two days ago, I can no longer mount iso9660 cds to read them. Here is what I'm using, and the result:
$ mount /dev/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
Just today, after reading some posts on this site, I made some changes to the last line: I tried removing "udf," from just before "iso9660", and I changed "owner" to "user". I also looked in /dev and found that /dev/cdrom is a link to /dev/hdc (which is where it seems like it should be, since my cd burner is the master device on the 2nd IDE cable).
It seems like this started happening after I found out that you could mount .iso images that were files on your hard drive by using the -o loop option to the mount command. I tried it, and it does work (still does), here's an example I did just now:
My cdrom is actually a CDRW drive, a Plextor Plexwriter 8/4/32 A. Oh, and burning cds using cdrecord still works just fine (I think - I can't actually mount them to double-check!).
If you're using a 2.4 kernel and have scsi emulation enabled to write to CD then you should probably be mounting /dev/sr0 rather than /dev/cdrom (or you could symlink /dev/cdrom to /dev/sr0).
That's just a symlink like /dev/cdrom...it's going to point to either an emulated scsi device or in later kernels, an actual eide (ATAPI) writer. something like /dev/sr0 or /dev/hdc
Well, I tried your suggestion, using sr0, and I got the error message
Code:
mount: special device /dev/sr0 does not exist
I tried it with sr1, 2, and 3, too, (just to be sure) and got the same result. And yes, my /dev/cdrom is a symlink to /dev/hdc.
By the way, I just discovered that now I can't mount my flash card reader either (the one that's listed as /dev/sda1 in my fstab). I get a different error message:
Code:
mount: /dev/sda1 is not a valid block device
Oh, and sorry about not using the code brackets! I was wondering how people got those cool boxes around parts of their posts!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.