Discussion:
[BusyBox] mount loop devices
A.N.Davey at exeter.ac.uk ()
2003-07-19 13:33:05 UTC
Permalink
Hi all,

I might be going mad, but i'm sure i used to mount loop devices
normally with
# mount -t minix /home/ade/disk/initrd /mnt -o loop=/dev/loop0

tried this using busybox ... it says the Block device required.

looked at my /dev and sure enough the loop block device nodes are
there. read through the mount.c code, looks like is tries to find a
loop device for you, how nice, now i know that the =/dev/loopX is not
required i'll never put it in again. Is this the way the GNU mount
does it ? i like the auto loop idea .. but also would prefer the
option of saying which loop dev to use.
maybe others have noticed this and have commented on it, and my
ability to search email archives is rather lacking, i am very sorry
if this is the case.

love the hush shell btw.
- side note , is there anyway to see how much space each applet adds
to the busybox binary.

many thanks

ade

***@beth2.org.uk
***@ex.ac.uk
Michael Renzmann
2003-07-19 13:33:05 UTC
Permalink
Hi.
Post by A.N.Davey at exeter.ac.uk ()
I might be going mad, but i'm sure i used to mount loop devices
normally with
# mount -t minix /home/ade/disk/initrd /mnt -o loop=/dev/loop0
tried this using busybox ... it says the Block device required.
Ever tried:
mount /dev/loop0 /home/ade/disk/initrd -t minix
or
mount /dev/loop0 /home/ade/disk/initrd -t minix -o loop
?

IIRC this worked for me, and leaving away that option "-o loop" also
worked fine (but I'm not quite sure about the last one... is is some
time since I last done this with busybox).

Bye, Mike
A.N.Davey
2001-06-03 01:44:04 UTC
Permalink
Hi all,

I might be going mad, but i'm sure i used to mount loop devices
normally with
# mount -t minix /home/ade/disk/initrd /mnt -o loop=/dev/loop0

tried this using busybox ... it says the Block device required.

looked at my /dev and sure enough the loop block device nodes are
there. read through the mount.c code, looks like is tries to find a
loop device for you, how nice, now i know that the =/dev/loopX is not
required i'll never put it in again. Is this the way the GNU mount
does it ? i like the auto loop idea .. but also would prefer the
option of saying which loop dev to use.
maybe others have noticed this and have commented on it, and my
ability to search email archives is rather lacking, i am very sorry
if this is the case.

love the hush shell btw.
- side note , is there anyway to see how much space each applet adds
to the busybox binary.

many thanks

ade

ade at beth2.org.uk
a.n.davey at ex.ac.uk
Michael Renzmann
2001-06-03 04:14:30 UTC
Permalink
Hi.
Post by A.N.Davey at exeter.ac.uk ()
I might be going mad, but i'm sure i used to mount loop devices
normally with
# mount -t minix /home/ade/disk/initrd /mnt -o loop=/dev/loop0
tried this using busybox ... it says the Block device required.
Ever tried:
mount /dev/loop0 /home/ade/disk/initrd -t minix
or
mount /dev/loop0 /home/ade/disk/initrd -t minix -o loop
?

IIRC this worked for me, and leaving away that option "-o loop" also
worked fine (but I'm not quite sure about the last one... is is some
time since I last done this with busybox).

Bye, Mike

Loading...