LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-01-2005, 07:40 PM   #1
darkarcon2015
Member
 
Registered: Jun 2004
Location: Potsdam, NY
Distribution: Fedora Core 6
Posts: 201

Rep: Reputation: 30
Mounting an *.iso...


I can't seem to mount them. I will do this:

Code:
mount -o loop -t iso9660 ISO_NAME.iso /mnt/cdrom
and then get this output:

Code:
ioctl: LOOP_SET_FD: Invalid argument
After reading a few other threads on this I did an "ls -R /dev | grep loop" and recieved this:

Code:
loop0
loop1
loop10
loop11
loop12
loop13
loop14
loop15
loop2
loop3
loop4
loop5
loop6
loop7
loop8
loop9
So I proceeded to "modprobe loop" and it said that it doesn't exist. I read that I have to make sure loopback filesystem support is compiled into my kernel but I couldn't find an option for it in the config. Where would this be or what am I doing wrong? Thanks a lot.
 
Old 02-01-2005, 07:46 PM   #2
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Rep: Reputation: 12
Were you root when you tried to modprobe loop ?

you can use cat /proc/devices and look for an entry like

7 loop

under Block Devices :

If it is not there then either the module is not loaded, or support is not built in.

if you haven't got the module did you compile it in ?

Dave
 
Old 02-02-2005, 05:59 AM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
------------
mount -o loop ISO_NAME.iso /mnt/cdrom
------------

that works here......
( be sure nothing else is mounted on /mnt/cdrom... )

egag
 
Old 02-02-2005, 06:15 AM   #4
d00msweek
Member
 
Registered: Jan 2004
Location: Cebu City, Philippines
Distribution: Slackware 10,Gentoo 2005.1,LFS
Posts: 92

Rep: Reputation: 15
or just make another directory in /mnt eg.

mkdir /mnt/iso
mount file.iso -o loop -t iso9660 /mnt/iso
 
Old 02-02-2005, 07:00 AM   #5
jawkins
LQ Newbie
 
Registered: Jan 2005
Location: London
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Quote:
Originally posted by egag
( be sure nothing else is mounted on /mnt/cdrom... )
You can mount over an already mounted directory.

Jim
 
Old 02-02-2005, 07:14 AM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
yep,

from man mount...
-----------
mount -t type device dir
This tells the kernel to attach the file system found on device (which is of type type) at the directory dir.

The previous contents (if any) and owner and mode of dir become invisible, and as long as this file system remains mounted, the pathname dir refers to the root of the file system on device.
-----------

...but you can't use what's mounted there.
but anyway good to know....

egag
 
Old 02-02-2005, 09:02 AM   #7
roninja
Member
 
Registered: Jan 2005
Location: Perth, Western Australia
Distribution: Slackware 10.2, LFS6.1.1
Posts: 41

Rep: Reputation: 15
In the kernel its under Block devices as Loopback device support
 
Old 02-02-2005, 02:43 PM   #8
darkarcon2015
Member
 
Registered: Jun 2004
Location: Potsdam, NY
Distribution: Fedora Core 6
Posts: 201

Original Poster
Rep: Reputation: 30
Yes, I was root user when I tried that :-\ I have also tried creating a new mountpoint, in my kernel configuration it says that it's built-in, and I have "7 loop" listed under Block Devices when I run "cat /proc/devices".

Last edited by darkarcon2015; 02-02-2005 at 02:45 PM.
 
Old 02-02-2005, 02:56 PM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
did you try without the " -t iso9660 " part...?

egag
 
Old 02-02-2005, 03:09 PM   #10
darkarcon2015
Member
 
Registered: Jun 2004
Location: Potsdam, NY
Distribution: Fedora Core 6
Posts: 201

Original Poster
Rep: Reputation: 30
Yes, same error.

EDIT *** SOLVED *** I had to copy the *.iso from my windows partition into my linux partition.

Last edited by darkarcon2015; 02-02-2005 at 03:15 PM.
 
Old 02-25-2005, 11:46 PM   #11
denning
Member
 
Registered: Jan 2004
Location: Oxford
Distribution: Slackware, Debian, Fedora, FreeBSD, NetBSD
Posts: 150

Rep: Reputation: 15
i face the same problem, except i am trying to mount initrd.img to edit the slackware installer.

I see 7 loop in /proc/devices, but keep getting either

root@fawkes:~# mount -o loop initrd.img /mnt/intrd/
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type

OR

root@fawkes:~# mount -o loop -t auto initrd.img /mnt/intrd
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type

I am using a vanilla Slackware 10.1 installation.
 
Old 02-26-2005, 12:37 AM   #12
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
If you mean the initrd.img for the CDROM from the isolinux directory, it's gzipped. Decompress it first, then mount it.
Code:
gzip -d -S .img initrd.img
mount -o loop initrd /mnt/loop
 
Old 02-26-2005, 04:10 PM   #13
denning
Member
 
Registered: Jan 2004
Location: Oxford
Distribution: Slackware, Debian, Fedora, FreeBSD, NetBSD
Posts: 150

Rep: Reputation: 15
omg. Thanks so much DaHammer!! I can now mod the slackware installer to my heart's content!
 
Old 06-16-2005, 09:27 PM   #14
IamI
Member
 
Registered: Mar 2004
Location: Dreary, Pennsylvania USA
Distribution: Slackware 10.2
Posts: 77

Rep: Reputation: 15
Quote:
Originally posted by darkarcon2015
Yes, same error.

EDIT *** SOLVED *** I had to copy the *.iso from my windows partition into my linux partition.


Sorry to reanimate this old thread's corpse, but I had the very same problem as darkacron2015, and the same solution worked for me as well. Basically all I wanted to do was watch a dvd iso located on my NTFS partition, but I ended up having to copy all four and a half gig of it to my home directory to do so.

I am curious: I've mounted numerous isos of various descriptions from my Windows partitions before, and now I can't seem to suddenly. Can somebody tell me what the explanation might be?
 
Old 10-25-2005, 06:01 PM   #15
jamessnell
LQ Newbie
 
Registered: Jul 2005
Location: Calgary Canada
Distribution: FC, SME, SuSE, IPcop
Posts: 3

Rep: Reputation: 0
I had the same problem..

I have loopback support built directly in to my kerenel, I even copied the iso to my local filesystem (though you shouldn't need to do this, it'll mount over nfs or smb just fine).. and yet I still couldn't get it to mount.. I specified the file system type, you normally don't really need to do this either.. It turned out it was simply a bad iso.. So, make sure you get the same results with other isos or try mounting them on other machines, just to save yourself some time. I rebuilt my kernel and wasted about 40mins on this one. Don't make the same mistake.. Though, if you're here, you probably have a 'real' problem.

Good luck,
J
 
  


Reply



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
Mounting iso image batev Slackware 11 10-20-2005 09:24 AM
Mounting iso image chadturner Linux - Newbie 11 09-08-2005 10:28 AM
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
Mounting ISO problem! c0nsur Debian 3 09-16-2004 12:50 PM
iso mounting enis2002 Slackware 4 04-16-2002 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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