friedgold
Group: Members
Posts: 122
Joined: Mar. 2005 |
|
Posted: June 24 2005,13:48 |
|
From http://www.tldp.org/LDP/lfs/html/chapter06/aboutdebug.html
Quote | Most programs and libraries are, by default, compiled with debugging symbols included.
<snip>
As most people will probably never use a debugger on their system software, a lot of disk space can be regained by removing these symbols. To remove debugging symbols from a binary (which must be an a.out or ELF binary), run strip --strip-debug filename |
I thought I'd try this with DSL 1.2.1 to see if any space can be freed. Since DSL doesn't include strip I made the remaster on my Debian machine. I copied the contents of the KNOPPIX image to a source directory and then used:
Code Sample | cd /path/to/source/dir find {,usr/,usr/local/}{bin,sbin,lib} -type f -exec strip --strip-debug '{}' ';' |
I then recreated the KNOPPIX image using best compression. The difference in size is as follows:
Before - 49237759 bytes After - 48615540 bytes
i.e. a saving of just over 600Kb. I made a remaster using this new image and so far haven't detected any problems.
|