LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2005, 04:10 AM   #1
Kabuto
Member
 
Registered: May 2004
Location: Istanbul, Turkey
Distribution: Gentoo as host OS and Redhat as guest OS
Posts: 34

Rep: Reputation: 15
mount a ISO file


I'm trying to mount a ISO image. However I get mount: Not a directory when I do mount -o loop suse/SU920.001.iso /mnt/iso1/ (by the way I am root, I am in /root and there is a suse/ in it and /mnt/iso1/ exists too).

What to do about this?
 
Old 03-17-2005, 04:22 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Have a try with: mount -o loop ./suse/SU920.001.iso /mnt/iso1
 
Old 03-17-2005, 04:31 AM   #3
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Dont you need to put also "-t iso9660"?
 
Old 03-17-2005, 04:41 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Quote:
Originally posted by enemorales
Dont you need to put also "-t iso9660"?
just tried it, no!

EDIT: and now I also know why

excerpt from 'man mount':
Code:
              The  type  iso9660 is the default.  If no -t option
              is given, or if the auto  type  is  specified,  the
              superblock is probed for the filesystem type (adfs,
              bfs, cramfs, ext, ext2, ext3, hfs,  hpfs,  iso9660,
              jfs,  minix, ntfs, qnx4, reiserfs, romfs, udf, ufs,
              vxfs, xfs, xiafs are  supported).   If  this  probe
              fails,   mount   will   try   to   read   the  file
              /etc/filesystems,  or,  if  that  does  not  exist,
              /proc/filesystems.   All  of  the  filesystem types
              listed there will be tried, except for  those  that
              are  labeled  "nodev" (e.g., devpts, proc and nfs).
              If /etc/filesystems ends in a line with a single  *
              only, mount will read /proc/filesystems afterwards.

Last edited by abisko00; 03-17-2005 at 04:46 AM.
 
Old 03-17-2005, 05:25 AM   #5
Kabuto
Member
 
Registered: May 2004
Location: Istanbul, Turkey
Distribution: Gentoo as host OS and Redhat as guest OS
Posts: 34

Original Poster
Rep: Reputation: 15
I tried what abisko00 said, and what enemorales said, and the result is the same
 
Old 03-17-2005, 05:31 AM   #6
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 34
Re: mount a ISO file

Quote:
Originally posted by Kabuto
I'm trying to mount a ISO image. However I get mount: Not a directory when I do mount -o loop suse/SU920.001.iso /mnt/iso1/ (by the way I am root, I am in /root and there is a suse/ in it and /mnt/iso1/ exists too).

What to do about this?
Am I correct that suse is in the /root directory? If so try this:
Code:
#mount -o loop /root/suse/suseSU920.001.iso /mnt/iso1
I'm pretty sure you don't need -t iso9660
 
Old 03-17-2005, 05:45 AM   #7
Kabuto
Member
 
Registered: May 2004
Location: Istanbul, Turkey
Distribution: Gentoo as host OS and Redhat as guest OS
Posts: 34

Original Poster
Rep: Reputation: 15
Re: Re: mount a ISO file

Quote:
Originally posted by n0xvb
Am I correct that suse is in the /root directory? If so try this:
Code:
#mount -o loop /root/suse/suseSU920.001.iso /mnt/iso1
I'm pretty sure you don't need -t iso9660
I tried that too
 
Old 03-17-2005, 05:51 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Is it possible that you have a split iso, which needs to be joint with its second half first? It's just a thought because of the 001 in the filename.
 
Old 03-17-2005, 05:54 AM   #9
Kabuto
Member
 
Registered: May 2004
Location: Istanbul, Turkey
Distribution: Gentoo as host OS and Redhat as guest OS
Posts: 34

Original Poster
Rep: Reputation: 15
It's the ISO of the first CD of SuSE 9.2
 
Old 03-17-2005, 05:55 AM   #10
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 34
Do you have a loop device? Try
Code:
mknod /dev/loop0 b 7 0
Then try the mount command again
 
Old 03-17-2005, 05:59 AM   #11
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Please post the output of:

ls -l /mnt | grep iso
ls -l /root/suse
and the exact mount command you used.
 
Old 03-17-2005, 06:01 AM   #12
Kabuto
Member
 
Registered: May 2004
Location: Istanbul, Turkey
Distribution: Gentoo as host OS and Redhat as guest OS
Posts: 34

Original Poster
Rep: Reputation: 15
mknod /dev/loop0 b 7 0
mknod: `/dev/loop0': File exists
 
Old 03-17-2005, 06:03 AM   #13
Kabuto
Member
 
Registered: May 2004
Location: Istanbul, Turkey
Distribution: Gentoo as host OS and Redhat as guest OS
Posts: 34

Original Poster
Rep: Reputation: 15
linux:~ # ls -l /mnt | grep iso
drwxr-xr-x 2 root root 48 Mar 16 15:46 iso1
drwxr-xr-x 2 root root 48 Mar 16 15:46 iso2
drwxr-xr-x 2 root root 48 Mar 16 15:46 iso3
drwxr-xr-x 2 root root 48 Mar 16 15:46 iso4
drwxr-xr-x 2 root root 48 Mar 16 15:46 iso5
linux:~ # ls -l /root/suse
total 3326036
drwxr-xr-x 2 root root 208 Mar 17 09:49 .
drwx------ 21 root root 776 Mar 17 11:35 ..
-rw-r--r-- 1 root root 680998182 Mar 16 15:29 SU920.001.iso
-rw-r--r-- 1 root root 680778840 Mar 16 15:31 SU920.002.iso
-rw-r--r-- 1 root root 682724127 Mar 16 15:35 SU920.003.iso
-rw-r--r-- 1 root root 679814427 Mar 16 15:37 SU920.004.iso
-rw-r--r-- 1 root root 678212685 Mar 16 15:41 SU920.005.iso
 
Old 03-17-2005, 06:19 AM   #14
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I simulated this on my machine (SuSE 9.1) with the same filenames. It worked!
Code:
linux:~ # mount -o loop ./suse/SU920.001.iso /mnt/iso1
linux:~ # cd /mnt/iso1
linux:/mnt/iso1 # ls
.  ..  boot  content  media.1  suse
The iso file is the mini-installation.iso that I renamed to SU920.001.iso
 
Old 03-17-2005, 06:22 AM   #15
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Quote:
Originally posted by abisko00
[B]just tried it, no!

EDIT: and now I also know why

[...]
Good to know it. I'll save some typing next time

The error message doesn't lead to this, but could it happen that the ISO is corrupted? Did you download them? If the webpage provides the MD5 sums you can run "md5sum yourisofile.iso" to compare them.

Other choices. Do you have another ISO that mounts?

it looks like I've more questions than answers

Last edited by enemorales; 03-17-2005 at 06:25 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount as a device: mount dvd-iso file in /dev/dvd sadarax Linux - General 21 02-02-2011 11:59 PM
How to mount ISO file not as root? Starch Linux - Newbie 1 01-29-2005 05:15 PM
cant mount iso file lemuel Linux - Newbie 9 01-27-2005 01:03 AM
Could not mount .iso file subaruwrx Linux - General 2 12-30-2004 09:20 AM
Mount ISO file rafaelcl *BSD 7 02-16-2003 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:21 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