Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Newbie Themer's Avatar
    Join Date
    Feb 2008
    Posts
    171
    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!

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    4
    I used:
    gzip -9 initrd

  4. #4
    Linux Newbie Themer's Avatar
    Join Date
    Feb 2008
    Posts
    171
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...