LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount cd images in redhat 9 (https://www.linuxquestions.org/questions/linux-newbie-8/mount-cd-images-in-redhat-9-a-71072/)

Greggen 07-08-2003 04:17 PM

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

sergkh 07-08-2003 04:55 PM

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

Greggen 07-08-2003 05:30 PM

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

MasterC 07-08-2003 07:08 PM

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

Greggen 07-08-2003 07:25 PM

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)

DrOzz 07-08-2003 10:53 PM

yah i get the same error when i try to mount iso images also...i can't figure it out.

v00d00101 07-08-2003 11:12 PM

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.

DrOzz 07-08-2003 11:19 PM

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.

Electro 07-08-2003 11:24 PM

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.

v00d00101 07-08-2003 11:25 PM

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.

DrOzz 07-08-2003 11:26 PM

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

v00d00101 07-08-2003 11:33 PM

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.

DrOzz 07-08-2003 11:37 PM

brw-rw---- 1 root disk 7, 0 Aug 30 2002 /dev/loop0
and the file is an iso.

Greggen 07-08-2003 11:39 PM

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

sergkh 07-08-2003 11:51 PM

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


All times are GMT -5. The time now is 01:46 AM.