[BusyBox] mount -o loop
tito
farmatito at tiscali.it
Thu Jul 11 14:34:03 UTC 2002
On Thursday 11 July 2002 21:52, you wrote:
> Yes, I have defined it in the Config.h
> also, I can do
> #losetup /dev/loop0 /myfile.looo
> #mount /dev/loop0 /mnt
> using the busybox builtins.
>
> the problem only shows when using mount the 'traditional' way, without
> using losetup to bind the loop device.
>
> Assaf
Can't explain why.
I don't use bb mount, but i compiled it in now
for testing with
#define BB_FEATURE_MOUNT_LOOP enabled
and if I do
busybox-0.60.3# gunzip initrd.gz
busybox-0.60.3# ln -s busybox mount
busybox-0.60.3# ./mount initrd -o loop mnt
busybox-0.60.3# ls mnt
bin/ dev/ etc/ floppy/ foozero home/ lib/ mnt/ proc/ root/ sbin@
tmp/ usr/ var/
it seems to work at least on my Mandrake8.2
Tito
PS: the support for loop devices have to be compiled also in kernel.
Check for
# Additional Block Devices
#
CONFIG_BLK_DEV_LOOP=m (or Y)
Bye
More information about the busybox
mailing list