LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:35 AM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:45 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
Open Source Consulting | Domain Registration