LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-20-2005, 05:04 PM   #1
cmbguy
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu 6.06, usually with icewm
Posts: 4

Rep: Reputation: 0
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
 
Old 03-20-2005, 05:27 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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
 
Old 03-20-2005, 05:34 PM   #3
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
it's

/dev/cdrecorder

no?
 
Old 03-20-2005, 05:52 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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
 
Old 03-20-2005, 11:25 PM   #5
cmbguy
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu 6.06, usually with icewm
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount iso 'could not find any loop device' dethree Slackware 1 06-23-2005 01:14 AM
mounting .iso as a real cdrom... Bob Vila Linux - General 11 06-04-2005 08:08 AM
Trying to install Suse9.2: Have iso on hard drive..now what? When mounting, loop eror CrewXp SUSE / openSUSE 6 04-07-2005 03:07 PM
Gentoo. Problems with the loop device when mounting an iso file Snerkel Linux - Software 4 11-26-2004 03:34 PM
Cannot mount more than 8 iso image files as loop device marsim Debian 4 11-09-2004 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration