LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 07-11-2009, 12:35 PM   #1
glass931
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?
 
  


Reply

Tags
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 02:42 AM
losetup in initrd lordikc Linux - Kernel 0 01-28-2008 09:04 AM
losetup problems during encryption!!! raklo Linux - Software 43 02-08-2007 12:06 AM
losetup with a HUGE offset eantoranz Linux - Software 0 12-08-2005 11:17 AM
Using losetup to create an encrypted image. drminix Linux - Security 2 06-20-2005 03:17 AM


All times are GMT -5. The time now is 02:28 AM.

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