Results 1 to 4 of 4
I wanted smaller boofiles on my USB stick so I cleverly did the following:
--copied INITRD.GZ to a workspace
--ungzipped it
--mounted the uncompressed INITRD as a loop device
--deleted ...
- 05-07-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 4
Shrink INITRD?
I wanted smaller boofiles on my USB stick so I cleverly did the following:
--copied INITRD.GZ to a workspace
--ungzipped it
--mounted the uncompressed INITRD as a loop device
--deleted some driver files I was sure I did not need
--made an image of the modified loop device [[dd if- loop device of=new image file]]
--compressed the new image with GZIP.
The new gzipped INITRD.GZ came out LARGER?? Why?
--Harry Wertmuller
- 05-07-2009 #2
Depending on what settings you used to re-create the initrd file, it may not have compressed it with the same intensity that the original was created with. In other words, although it has less data in it now, if it was not compressed as much as the original was, the file could potentially end up larger.
When I find myself burried in errors, Windows Help appears to me; speaking words of wisdom, Reboot!
- 05-08-2009 #3Just Joined!
- Join Date
- Apr 2009
- Posts
- 4
I used:
gzip -9 initrd
- 05-09-2009 #4
I don't know anything about how or why any method may or may not compress it to a certain extent, but it was just my gues that if it wasn't compressed as much, that it could possibly be larger, even with less data.
When I find myself burried in errors, Windows Help appears to me; speaking words of wisdom, Reboot!


Reply With Quote