LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 10-09-2005, 07:20 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
mounting ISO image


Hi folks,

BLFS 6.1

I tried to mount the ISO image with following command without success;

# mount /path/to/cdimage.raw -t iso9660 -o loop /mnt/mount_point
Code:
mount: could not find any device /dev/loop#
I could not find out what was wrong. Pls advise.

Remark: the cdimage can be burnt on CD without problem

B.R.
satimis
 
Old 10-09-2005, 10:19 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
From the mount man page:
Quote:
The standard form of the mount command, is
mount -t type device dir
Although it's possible to put options at the end of the command, you probably can't break apart the "device dir" sequence.
In other words, your command should be:
Code:
mount -t iso9660 -o loop /path/to/cdimage.raw /mnt/mount_point
or
Code:
mount /path/to/cdimage.raw /mnt/mount_point -t iso9660 -o loop
 
Old 10-09-2005, 11:34 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi ciotog,

Tks for your advice.

Quote:
your command should be:
Code:
mount -t iso9660 -o loop /path/to/cdimage.raw /mnt/mount_point
# mount -t iso9600 -o loop /home/satimis/cdimage.raw /mnt/cdimage/
Code:
mount: could not find any device /dev/loop#
Quote:
or
Code:
mount /path/to/cdimage.raw /mnt/mount_point -t iso9660 -o loop
# mount /home/satimis/cdimage.raw /mnt/cdimage/ -t iso 9660 -o loop
Code:
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount
The mounting command posted on my first posting worked on other Linux distro but not on BLFS 6.1

I suspect it is the problem of loop device support. Reading "/usr/src/linux-2.6.11.12/.config" following were found
Code:
# CONFIG_BLK_DEV_LOOP is not set
CONFIG_CC_ALIGN_LOOPS=0
# modprobe loop
Code:
FATAL: Module loop not found.
Any folk on the forum has met this problem before? Shall I set "CONFIG_BLK_DEV_LOOP=y (or m)"?

TIA

B.R
satimis
 
Old 10-09-2005, 02:10 PM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Quote:
# mount /home/satimis/cdimage.raw /mnt/cdimage/ -t iso 9660 -o loop
didn't work because of the space between iso and 9660.
Quote:
Shall I set "CONFIG_BLK_DEV_LOOP=y (or m)"?
Absolutely. I should have caught that in the first place...
 
Old 10-09-2005, 11:02 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi ciotog,

Quote:
didn't work because of the space between iso and 9660.Absolutely.
Sorry, that was my typing mistake.

Quote:
I should have caught that in the first place...
I made some search before postinng. I suspected whether I overlooked some other advices on google search. I have been using my command line posted on the first posing for prolonged time without problem. It is still working on chroot FC3, the host. Then I started to wonder whether the commands have been changed on the latest version of "cdrecord".

Anyway tks again for your advice.

BR
satimis
 
Old 10-15-2005, 04:18 PM   #6
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 93

Rep: Reputation: 20
Obviously you don't have /dev/loop# , because linux clearly says so
You can however create them by hand. Use this command
mknod /dev/loop0 b 7 0
mknod /dev/loop1 b 7 1
In the same way you can create loop2 and up.

It is nice command to use on some rare occasions when the loopdevices don't exists,
but it probably won't be any good when you don't have loopdevices configured in your kernel.
 
Old 10-16-2005, 08:16 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi hoes,

Quote:
Obviously you don't have /dev/loop# , because linux clearly says so
You can however create them by hand. Use this command
mknod /dev/loop0 b 7 0
mknod /dev/loop1 b 7 1
In the same way you can create loop2 and up.
Tks. That is what I was searching for apart from recompiling kernel. I'll test them on next occasion because the kernel already recompiled.

Why it needs more than one loop, "loop0", "loop1", "loop2", etc. Whether after running them "mount -t iso9660 -o loop /path/to/cdimage.raw /mnt/mount_point" will work.

Others noted with thanks.

BR
satimis
 
Old 10-17-2005, 11:26 AM   #8
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 93

Rep: Reputation: 20
> Why it needs more than one loop, "loop0", "loop1", "loop2", etc. Whether after running them
> "mount -t iso9660 -o loop /path/to/cdimage.raw /mnt/mount_point" will work.

It needs more than one loopdevices for mount severalfiles at once, but normally (with udev I guess) the loop devices will be started by mount. (Mostly with a limitation of 8 loopdevices)
 
Old 10-19-2005, 09:08 AM   #9
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi hoes,

Tks for your explanation.

Previously on recompiling kernel it came to my notice that "loop" must be compiled as modules. If just enabled it;
Code:
<*> Loopback device support
("Block devices"subsection). It won't work.

satimis
 
Old 10-19-2005, 01:52 PM   #10
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 93

Rep: Reputation: 20
Does Loop also give error when you boot?
It does so by me. After reading this I check my config of my debian kernel and my LFS kernel and see the following: LFS has loopdevices configured in the kernel and Debian has a module.
Maybe that causes my error.
Pity that I haven't yet tried my loopdevices under LFS(always work in a chroot)

I will check this case too one time, but thanks for pointing to this,
Hoes
 
Old 10-22-2005, 01:45 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi hoes,

BLFS 6.1

Something strange happened here.

I tried to enable "loop" with;

# mknod /dev/loop0 b 7 0
(no printout)

# mount cdimage /mnt/blfs/ -o loop
Code:
mount: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop')
# modprobe loop
Code:
FATAL: Module loop not found.
Then recompiled kernel and enabled "loop" as module;
Device drivers --> Block devices -->
<M> Loopback device support

saved and ran
# make
# make modules_install

After rebooting PC, ran;
# modprobe loop
Code:
FATAL: Module loop not found.
Also triied selecting
<*> Loopback device support
and rebooted PC.

Problem remained the same
# mount cdimage /mnt/blfs/ -o loop
Code:
mount: could not find any device /dev/loop#
Any advice

TIA

BR
satimis
 
Old 10-22-2005, 02:07 PM   #12
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 93

Rep: Reputation: 20
First of all:
After installing modules you need to make sure you install modules for the loaded kernel:
If you use kernel 2.6.11-12-LFS-Local than you should make sure you are building and installing modules for this kernel.

Secondly:
There's a list of all modules which can be loaded. Maybe you forget to update this list.
Run the command: depmod to create this list for your current kernel.

Good Luck,
Hoes
 
Old 10-22-2005, 08:15 PM   #13
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi hoes,

Tks for your advice.

Yes I did all. I spent a whole day to test them (sound and loop modules) without result. My discovery is "sound" module can't co-exist with "loop" modules. Either enable "sound" as module or "loop" as module, not both of them. Otherwise both died.

I hacked some information from Internet. I'll test them later.

BR
satimis
 
  


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
Mounting iso image batev Slackware 11 10-20-2005 10:24 AM
Mounting iso image chadturner Linux - Newbie 11 09-08-2005 11:28 AM
Mounting ISO image CD/DVD fireedo Suse/Novell 9 05-05-2005 04:07 AM
Problems mounting an image .iso kroy Linux - Software 5 04-11-2005 11:15 AM
mounting ISO from an image true_atlantis Linux - Newbie 2 01-20-2004 11:29 AM


All times are GMT -5. The time now is 08:17 PM.

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