Digging into a Red Hat bootnet.img image
Updated January 30, 2002
Created August 24, 2001


Related Web Pages
Please refer to rhdiskmod.html for complete information. That page will eventually replace this page.


UNPACK REPACK


Unpacking bootnet.img, initrd.img, and modules.cgz

#Insert the Red Hat CD-Rom disk 1.

mount /mnt/cdrom
mkdir /tmp/bootnet
cd /tmp/bootnet
cp /mnt/cdrom/images/bootnet.img .
mkdir bootnet.img.dir
mount bootnet.img bootnet.img.dir -o loop
cp bootnet.img.dir/initrd.img .
mv initrd.img initrd.gz
gunzip initrd.gz
mkdir initrd.img.dir
mount initrd initrd.img.dir -o loop
cp initrd.img.dir/modules/modules.cgz .
mv modules.cgz modules.cpio.gz
gunzip modules.cpio.gz
cat modules.cpio | cpio -idv

UNPACK REPACK


Repacking an initrd

find 2.4.7-2BOOT/ | grep -v "BOOT/$" | cpio -o -H crc >modules.cpio
gzip -9 -n modules.cpio
mv modules.cpio.gz modules.cgz
mv modules.cgz initrd.img.dir/modules/modules.cgz
umount initrd.img.dir
gzip -9 -n initrd
mv initrd.gz initrd.img
mv initrd.img bootnet.img.dir/initrd.img
umount bootnet.img.dir

#You are now ready to use your modified bootnet.img floppy image.



Homepage: http://geocities.datacellar.net/rlcomp_1999












1