OT: initrd help


Forum: Other Help Topics
Topic: OT: initrd help
started by: iconoclastus

Posted by iconoclastus on Dec. 18 2004,08:13
Hello,

I have looked for about an hour, and I have found lots of people talking about it, but nothing about how to do it.

Right now I am modifying a few things in a program called 'Offline Password Editor", a boot up disk that stores the root file system in initrd.gz.  I was able to pull the file system out by coping it to a floppy from within the program itself, however, after modifying everything that I wanted changed, I am at a loss on how to make the initrd file that is inside the initrd.gz.

Could someone point me to some information on this, as I can't find anything from google explaining it.

Thanks,
Michelle

Posted by iconoclastus on Dec. 18 2004,09:35
Hello again.

Okay, apparently I needed to refine my google search a little more.  I found my answer.

If anyone was wondering the same thing I was, here is what you do:
Code Sample

dd if=/dev/zero of=~/initrd count=2500 bs=1024
losetup /dev/loop0 ~/initrd
mke2fs /dev/loop0
mkdir /mnt/loop0
mount /dev/loop0 /mnt/loop0
cp -a initrd/* /mnt/loop0
umount /dev/loop0
losetup -d /dev/loop0


--Michelle

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.