LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to mount iso9660 on non-optical drive (https://www.linuxquestions.org/questions/linux-software-2/unable-to-mount-iso9660-on-non-optical-drive-448349/)

derrekito 05-25-2006 03:01 AM

Unable to mount iso9660 on non-optical drive
 
I am currently having problems mounting iso9660 files on my box.
Code:

#mount -t iso9660 -o loop /file.iso /mnt/iso/
mount: not a directory

I am currently running the 2.6.16.18 kernel (however I was still having this issue on my older kernel)
the files I am attempting to mount are DVD sized.
thanks in advanced!

rjwilmsi 05-25-2006 08:29 AM

I think you're giving the arguments in the wrong order. Try
Code:

mount -t iso9660 myfile.iso /tmp/myfile -o loop

derrekito 05-25-2006 01:19 PM

Nope still getting the same error :(. Thanks for the quick reply though.

derrekito 05-27-2006 02:25 PM

Alright so I type in
still getting
Code:

#mount -t iso9660 /file.iso /mnt/iso -o loop
mount: Not a directory

I have suspicions that it has to deal with the size of the iso, however I was under the impression the the newer 2.6 kernels (mine being 2.6.16.18) fixed that problem.
For the record both the iso file and the mount point exist... so any ideas?

derrekito 05-27-2006 02:42 PM

Alright I was playing around with it and here is a list of all the things I tried so far, just in case it helps with determining the problem, or help keep from asking redundant questions.
Code:

#isoinfo -d -i '/file.iso'
CD-ROM is in ISO 9660 format
System id:
Volume id:
Volume set id:
Publisher id:
Data preparer id:
Application id:
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 2294400
NO Joliet present
NO Rock Ridge present

Code:

#mount -t iso9660 '/file.iso' /mnt/iso -o loop=/dev/loop0
mount: Not a directory

I then decided to make sure everything is where it's suppose to...
Code:

#/file.iso/
bash: /file.iso: File too large

Code:

#/mnt/iso
bash: /mnt/iso: is a directory

According to http://ou800doc.caldera.com/en/NET_n..._err_msgs.html a "mount: Not a directory" indicates that "The local path is not a directory. Check the spelling in your command, and run ls to check if local path is a directory or not." however this is not the case, both path and file exist.
I HOPE this helps, and thanks so much in advanced!

soulxcavtor 05-27-2006 03:28 PM

I may have 2 solutions

Whenever I try to mount loop an image I use this syntax

mount -o loop -t iso9660 /img.iso /mnt/destination/

Also sometimes when I try to mount the file using this command it says my cdrom drive doesnt ecxist

mount -o loop -t iso9660 /img.iso /mnt/cdrom instead I must include a / at the end of the place im mounting to like /mnt/cdrom(/) without the parenthesis instead of /mnt/iso do /mnt/iso/ and try the format i used above also...

Good luck?

derrekito 05-27-2006 03:37 PM

I tried:
Code:

#mount -o loop -t iso9660 "/file.iso" /mnt/iso/
mount: Not a directory


Juki 05-27-2006 03:41 PM

have you compiled loopbackdevice either in kernel or as module?

# grep CONFIG_BLK_DEV_LOOP /usr/src/linux/.config
CONFIG_BLK_DEV_LOOP=m

if = m

then
#modprobe loop
or
#insmod loop
as root of course

if = y
then you have some other problem which needs to be sorted out

derrekito 05-27-2006 03:44 PM

Yes the loopbackdevice has been compiled into the kernel.
Code:

#grep CONFIG_BLK_DEV_LOOP /usr/src/linux/.config
CONFIG_BLK_DEV_LOOP=y


Juki 05-27-2006 03:49 PM

are you sure that the iso image is of correct format?

can you download any other iso image and try to mount that?

derrekito 05-27-2006 05:16 PM

My suspicions were correct, it is the size of the ISO not the ISO file itself, so far I am unable to mount any of my ISO that were ment for DVDs (4.7 gigs), however I was able to mount an ISO that was about 180 MB just fine. I know older kernels had an issue with size, however I am using a newer kernel, and I actually had upgraded from 2.6.15.4 kernel because of this issue just to be safe(I am now using 2.6.16.18). Any ideas?

derrekito 05-27-2006 06:22 PM

I just downloaded an ISO manager program called KISO and it spits out "Value too large for defined data type" error with any of my large ISO files. I don't know how to fix this. Anyone know of any issues mounting large ISO files?

derrekito 05-27-2006 10:58 PM

This brings me back to an error I was getting earlier
Code:

#/file.iso
bash: /file.iso: File too large

So it seems that my computer is unable to use large ISOs. :( I am unable to find anything related on the matter.

derrekito 05-27-2006 11:14 PM

I have idetified the issue at last! So I figured out that the ISOs I was attempting to mount were not infact actual ISOs but instead UFS. So I am a the moment recompiling my kernel with UFS support and if it works I will post the entire fix after this.

cs-cam 05-27-2006 11:23 PM

DVDs use a different filesystem to CDs as you've obviously just discovered.


All times are GMT -5. The time now is 07:30 PM.