Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 07-11-2009, 11:35 AM   #1
LQ Newbie
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
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?


busybox, initrd

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
how use cryptsetup and losetup azza Programming 2 07-05-2009 01:42 AM
losetup in initrd lordikc Linux - Kernel 0 01-28-2008 08:04 AM
losetup problems during encryption!!! raklo Linux - Software 43 02-07-2007 11:06 PM
losetup with a HUGE offset eantoranz Linux - Software 0 12-08-2005 10:17 AM
Using losetup to create an encrypted image. drminix Linux - Security 2 06-20-2005 02:17 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration