LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-25-2006, 03:01 AM   #1
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Rep: Reputation: 15
Question 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!

Last edited by derrekito; 05-27-2006 at 11:02 PM.
 
Old 05-25-2006, 08:29 AM   #2
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
I think you're giving the arguments in the wrong order. Try
Code:
mount -t iso9660 myfile.iso /tmp/myfile -o loop
 
Old 05-25-2006, 01:19 PM   #3
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
Nope still getting the same error . Thanks for the quick reply though.
 
Old 05-27-2006, 02:25 PM   #4
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
Unhappy

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?

Last edited by derrekito; 05-27-2006 at 11:02 PM.
 
Old 05-27-2006, 02:42 PM   #5
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
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!

Last edited by derrekito; 05-27-2006 at 11:01 PM.
 
Old 05-27-2006, 03:28 PM   #6
soulxcavtor
Member
 
Registered: May 2006
Location: USA.FLorida
Distribution: Mandriva 2006 PowerPack
Posts: 238

Rep: Reputation: 30
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?
 
Old 05-27-2006, 03:37 PM   #7
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
Unhappy

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

Last edited by derrekito; 05-27-2006 at 11:01 PM.
 
Old 05-27-2006, 03:41 PM   #8
Juki
LQ Newbie
 
Registered: Jun 2003
Location: Finland
Distribution: Gentoo
Posts: 4

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

Last edited by Juki; 05-27-2006 at 03:43 PM.
 
Old 05-27-2006, 03:44 PM   #9
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
Yes the loopbackdevice has been compiled into the kernel.
Code:
#grep CONFIG_BLK_DEV_LOOP /usr/src/linux/.config
CONFIG_BLK_DEV_LOOP=y

Last edited by derrekito; 05-27-2006 at 11:00 PM.
 
Old 05-27-2006, 03:49 PM   #10
Juki
LQ Newbie
 
Registered: Jun 2003
Location: Finland
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
are you sure that the iso image is of correct format?

can you download any other iso image and try to mount that?
 
Old 05-27-2006, 05:16 PM   #11
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
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?
 
Old 05-27-2006, 06:22 PM   #12
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
Exclamation

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?

Last edited by derrekito; 05-27-2006 at 10:29 PM.
 
Old 05-27-2006, 10:58 PM   #13
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

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

Last edited by derrekito; 05-27-2006 at 10:59 PM.
 
Old 05-27-2006, 11:14 PM   #14
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
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.
 
Old 05-27-2006, 11:23 PM   #15
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
DVDs use a different filesystem to CDs as you've obviously just discovered.
 
  


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 cd-rom... iso9660 is not listed in /proc/filesystems imi@tux Linux - General 5 05-15-2006 04:12 AM
Unable to mount drive. Markness Linux - Hardware 10 04-23-2006 01:03 PM
can only mount one optical drive still cjae Suse/Novell 2 03-29-2006 11:22 AM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM
automagically mount Magneto-Optical Drive? wytiger Fedora 0 07-27-2004 10:56 PM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration