Mounting multiple loop-devices via BB

Alexander Krause alexander.krause at erazor-zone.de
Tue May 9 12:43:27 UTC 2006


Hi,

I'm trying to mount a second loop device in a chroot but mount seems to be 
confused.

The bootup works like this:

echo "mounting boot device (${BOOTDEV})..."
mount $BOOTDEV /boot -o rw

echo "mounting static device (${STATIC})..."
mount /boot/$STATIC /static -o ro,loop

echo "mounting dynamic device (${DYNAMIC})..."
mount $DYNAMIC /dynamic -o rw

echo "merging /dynamic and /static into /vertex..."
mount -t unionfs -o dirs=/dynamic=rw:/static=ro unionfs /vertex

echo "changing root and starting init..."
cd /vertex
pivot_root . mnt/stage1
exec chroot . /bin/sh <<- EOF >/dev/console 2>&1
exec $VINIT $CMDLINE
EOF

Now i'd like to mount another loop...

Geode /boot $ mount stage3-python-2006.05.05.squash /mnt/stage3/python/ -o 
loop,ro        
mount: Couldn't setup loop device
mount: Mounting (null) on /mnt/stage3/python/ failed: No such file or 
directory

BusyBox v1.1.2 with linux-2.6.17-rc2 is running on my device.
And yes, i do have another /dev in my chroot ;-)

I'm not quite sure what to do next.... any suggestions would be nice.

-- 
Alexander Krause
Amtmann-Kästner-Platz 11
99091 Erfurt, Germany

Mail alexander.krause at erazor-zone.de
Tel. +49 (179) 4725826



More information about the busybox mailing list