LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-08-2003, 04:17 PM   #1
Greggen
LQ Newbie
 
Registered: Jul 2003
Location: sweden
Distribution: redhat 9
Posts: 24

Rep: Reputation: 15
Question mount cd images in redhat 9


Hi there.

I want to mount a cd image in linux but I just cant get it to work. I have tried to type:

mount -t iso9660 -o loop IMAGE.img /mnt/diabloii

But it just wont work. I get:

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems

What am I suppose to do? And please speak so a newbie understands =P

//Greggen
 
Old 07-08-2003, 04:55 PM   #2
sergkh
LQ Newbie
 
Registered: Jul 2003
Location: Ukraine
Distribution: Mandrake Debian
Posts: 15

Rep: Reputation: 0
use this
mount -t iso9660 -o ro,loop=/dev/loop0 image.iso /mnt/diabloii
are you sure that directory /mnt/diabloii present ?
sorry for bad english
 
Old 07-08-2003, 05:30 PM   #3
Greggen
LQ Newbie
 
Registered: Jul 2003
Location: sweden
Distribution: redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks

Tried that one now but without results =/ Still:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems

And yes, im sure that the directory is there (its even got "chmod 777").

//Greggen
 
Old 07-08-2003, 07:08 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Is something already mounted on that directory, to check use the 'mount' command:
mount

And it will display all your mounted devices and their mount points. Also, make sure you are doing this as root, normally users cannot mount things unless they are specified in /etc/fstab specifically.

One more thing, loopback support is in the kernel, I doubt you are having a problem with support from the kernel, but that's always something to look at.

Cool
 
Old 07-08-2003, 07:25 PM   #5
Greggen
LQ Newbie
 
Registered: Jul 2003
Location: sweden
Distribution: redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
Nope, nothing mounted in that dir. And I have tried to mount as root to. And well about the kernel I might add that Im on 2.4.20-18 becuz i cant get the nvidia drivers to work on 2.4.20-18.9. (if that helps with something i dont know)
 
Old 07-08-2003, 10:53 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
yah i get the same error when i try to mount iso images also...i can't figure it out.
 
Old 07-08-2003, 11:12 PM   #7
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
The nvidia prob is easily fixed, justy reinstall the driver again and it will rebuilf for the new kernel.

The mounting iso should be simple too, i did it a fair bit to install the redhat docs and some other stuff.

Stupid question, is the iso on a cdrom, and if so did u mount the cdrom first?

Just for stupidity sake, i tried the above instructions on my copy of redhat 9, mounted the redhat9 cd3 iso and they do work.

su

mount cd:

mount -t iso9660 /dev/hd? /mnt/cdrom
mkdir /iso-temp
cd /mnt/cdrom
mount -t iso9660 -o loop <imagename> /iso-temp

and it works ok.

Last edited by v00d00101; 07-08-2003 at 11:27 PM.
 
Old 07-08-2003, 11:19 PM   #8
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
by that comment, does the iso have to be on the cdrom...i was almost positive that it didn't have to be and this was the whole point to mounting an iso, but if i am wrong then enlighten me.
 
Old 07-08-2003, 11:24 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You have to specify the full path for the image. Also did you create the directory /mnt/diabloii .

dd or mkisofs doesn't work with copyrighted protection CDs. You have to use something else to copy it.

It could be a bad image.
 
Old 07-08-2003, 11:25 PM   #10
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
It should not matter where it is, i was just asking, since its a mistake some people may make.

But no, the iso can be anywhere. I just mounted a copy the docs.iso that was on my hdd, and had no probs.
 
Old 07-08-2003, 11:26 PM   #11
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
oh well, i just get the same error as that other d00d, when it says:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
 
Old 07-08-2003, 11:33 PM   #12
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
does /dev/loop0 exist?

also if the extension is .img try renaming it to .iso

For testing purposes, try mounting an iso on a cd. See if it works, if not you are gonna need to update your kernel.

OT: when u updated the kernel last time, why could you not rebuild the nvidia driver.

Last edited by v00d00101; 07-08-2003 at 11:38 PM.
 
Old 07-08-2003, 11:37 PM   #13
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
brw-rw---- 1 root disk 7, 0 Aug 30 2002 /dev/loop0
and the file is an iso.
 
Old 07-08-2003, 11:39 PM   #14
Greggen
LQ Newbie
 
Registered: Jul 2003
Location: sweden
Distribution: redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
v00d00: No, the img is on my fat32 partition (mounts on boot). And fot the nvidia thing i will try that now. But anyway the thing you said didnt work...same old error =/

//Gregg
 
Old 07-08-2003, 11:51 PM   #15
sergkh
LQ Newbie
 
Registered: Jul 2003
Location: Ukraine
Distribution: Mandrake Debian
Posts: 15

Rep: Reputation: 0
hm ....
first copy iso to ext2 or other linux partition
i think constructins
/mnt/ /mnt/
can't work fine
sorry morning income i want sleep
 
  


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
Mount more than 8 iso images el_pajaro! Debian 1 08-23-2005 10:51 AM
can't mount some initrd images?! citro Linux - General 3 06-10-2005 02:36 AM
Is there a way to mount clone-cd (.ccd .img .sub) images? Linux.tar.gz Linux - Software 8 06-03-2005 01:09 PM
How to mount ISO images 6u4nYu Linux - General 6 12-22-2004 09:02 PM
How to mount iso cd images SuperSadSmile Linux - General 4 02-20-2003 05:53 AM


All times are GMT -5. The time now is 01:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration