Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-20-2005, 05:04 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Distribution: Ubuntu 6.06, usually with icewm
Posts: 4
Rep:
|
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?)
and here is my /etc/fstab:
$ cat /etc/fstab
LABEL=/1 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/ /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,users,kudzu 0 0
none /var/lib/jack/tmp tmpfs defaults 0 0
# /dev/hda1 /mnt/Win98 vfat defaults 0 0
# /dev/hda5 /mnt/Win98data vfat defaults 0 0
/dev/hdd /mnt/zip auto noauto,owner,exec,users 0 0
/dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
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:
$ sudo mount -t iso9660 -o loop ./FC3-i386-disc3.iso /mnt/cdrom/
$ ls /mnt/cdrom/
eula.txt RPM-GPG-KEY RPM-GPG-KEY-fedora-rawhide TRANS.TBL
Fedora RPM-GPG-KEY-beta RPM-GPG-KEY-fedora-test
GPL RPM-GPG-KEY-fedora RPM-GPG-KEY-rawhide
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!).
Any suggestions or ideas would be appreciated!
-Carl
|
|
|
|
03-20-2005, 05:27 PM
|
#2
|
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
Urgh!! If you're gonna post file output then put code brackets around it!!!:
Code:
LABEL=/1 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/ /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,users,kudzu 0 0
none /var/lib/jack/tmp tmpfs defaults 0 0
# /dev/hda1 /mnt/Win98 vfat defaults 0 0
# /dev/hda5 /mnt/Win98data vfat defaults 0 0
/dev/hdd /mnt/zip auto noauto,owner,exec,users 0 0
/dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
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).
Try that, see if it works:
mount -t iso9660 /dev/sr0 /mnt/cdrom
|
|
|
|
03-20-2005, 05:34 PM
|
#3
|
|
Member
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734
Rep:
|
it's
/dev/cdrecorder
no?
|
|
|
|
03-20-2005, 05:52 PM
|
#4
|
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
Quote:
Originally posted by t3gah
it's
/dev/cdrecorder
no?
|
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
|
|
|
|
03-20-2005, 11:25 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2004
Distribution: Ubuntu 6.06, usually with icewm
Posts: 4
Original Poster
Rep:
|
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!
- Carl
Last edited by cmbguy; 03-20-2005 at 11:30 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|