Yes, I've seen that and copied that construction. It decreases in size (obviously), but still it is large. For example: the 'initrd' on the default SuSE boot disk is 562455 bytes. my created 'initrd' is 1141950 bytes. And that I found a huge difference... Regards Harry
-----Original Message----- From: Dave Smith [SMTP:Dave.Smith@st.com] Sent: Thursday, July 18, 2002 2:06 PM To: suse-linux-e@suse.com Subject: Re: [SLE] create initrd
On Thu, Jul 18, 2002 at 01:58:50PM +0200, berge@hitt.nl wrote:
Hi,
I want to make my 'own private' initrd.
I do this by creating an empty ramdisk (dd if=/dev/zero ....), mke2fs, and then loop mounting it. Next I can copy files to the mounted ramdisk and after unmounting the ramdisk I do a 'gzip -9 new_initrd'.
But, how is it possible that my initrd is *MUCH* bigger than the initrd on for example the SuSE bootfloppy? I know it uses minix as fs and not ext2, but that can't be the huge difference.
The SuSE script starts off by creating one initrd, then once it's done it, it works out how much space is actually used, then creates a new initrd of exactly that size (plus a bit of buffer). Therefore, the initrd created by the SuSE script is exactly the size it needs to be with no wastage.
HTH...
-- David Smith | Tel: +44 (0)1454 462380 Home: +44 (0)1454 616963 STMicroelectronics | Fax: +44 (0)1454 617910 Mobile: +44 (0)7932 642724 1000 Aztec West | TINA: 065 2380 GPG Key: 0xF13192F2 Almondsbury | Work Email: Dave.Smith@st.com BRISTOL, BS32 4SQ | Home Email: David.Smith@ds-electronics.co.uk
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the archives at http://lists.suse.com