LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-11-2006, 12:36 PM   #1
steveo_mcg
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, DSL, Debian
Posts: 18

Rep: Reputation: 0
Making an initrd for a squashfs


I've been playing with debootstrap and made my self a smallish base system which i want to install to a cf card, i had a look at squashfs and it seemed to fit the bill perfectly so i now have my little squash system. According to the how to i just copy it accross as is then use the start up scripts to mount it. This is where my depth ends, i assume i must now create an initrd (initramfs) which can mount the squash file on a loop back device and then make it the root fs. /boot is on hda1 and is ext2 and about 10mb the squashfs is on hda2 the kernel is a custom job based on the vanila kernel (not from apt). I would appreciate any help getting this going, baby steps please
 
Old 09-12-2006, 10:06 AM   #2
steveo_mcg
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, DSL, Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Appologies for the double post/free bump. I think i have worked out what i need to do but need some help to do it.

initramfs contains a (very) minimal fs
initramfs is mounted at /
boot script mounts the squashfs on /mnt/squish
script then chroots to /mnt/squish
from the chroot switch to init 5

So this work? Some advice implementing it would be appreciated.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
making initrd for kernel 2.6.13 and s-ata Kaffe Slackware 3 03-15-2006 03:49 PM
how to use initrd for making RAMdisk Boudewijn Debian 1 12-08-2004 03:34 AM
making kernel RPM. does not make initrd file mindcry Linux - Software 5 08-12-2004 10:20 PM
squashfs Vookimedlo Linux - Software 0 07-21-2004 01:02 PM
making an initrd file lyonsd Linux - General 4 03-14-2004 06:26 AM


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

Main Menu
 
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
Open Source Consulting | Domain Registration