LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   losetup in busybox (https://www.linuxquestions.org/questions/linux-desktop-74/losetup-in-busybox-739410/)

glass931 07-11-2009 11:35 AM

losetup in busybox
 
I need to create an initrd.gz for a 2.6 kernel which will pivot_root to a loop (a.k.a. loopback) root filesystem. This requires the losetup command. I've tried the mkinitrd script in both Debian 5 and Slackware 12. They both create an initrd.gz which can mount drives and install modules but cannot mount a loopdevice. The errors at bootup are 1) losetup: applet not found and 2)bio too big device loop0 (2 > 0). I've tried installing the losetup binary in the initrd.gz, but apparently its init calls all commands through busybox. Is there any way, short of recompiling busybox with the losetup applet, to link /dev/loop0 (which I've mknoded into /dev and chgmoded to 666 and chggrped to disk) to my root system image file so that I can mount on /mnt?


All times are GMT -5. The time now is 03:32 AM.