Displaying 1 result from an estimated 1 matches for "img_ok_dir".
2004 Jan 13
3
RE: [OT] Re: Getting ext3 up and running
...s, changing
accordingly /etc/mkinitrd/mkinitrd.conf MKIMAGE variable and running
mkinitrd -o img_file /lib/modules/2.4.22-xfs
I obtain an about 3Mb compressed image file that uncompressed is about 8Mb.
Now you have to strip it to less than 4Mb uncompressed file.
mkdir /tmp/img_big_dir
mkdir /tmp/img_ok_dir
gzip -dc < img_file > /tmp/img_big
mount -o loop /tmp/img_big /tmp/img_big_dir
dd if=/dev/zero of=/tmp/img_ok bs=1024 count=4095
mkfs -t ext2 /tmp/img_ok (and confirm to proceed anyway)
mount -o loop /tmp/img_ok /tmp/img_ok_dir
cd /tmp/img_big_dir
remove stuff from img_big_dir (tm by Matt ;...