Differences between revisions 1 and 16 (spanning 15 versions)
Revision 1 as of 2009-04-10 13:36:45
Size: 482
Editor: ?wekt
Comment:
Revision 16 as of 2009-05-31 09:38:17
Size: 2943
Editor: ?wekt
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
----
''Translation'' [[https://wiki.debian.org/de/FreeSpace|Deutsch]]
= Freeing Disk Space =
If you think you are running near the end of your disk space, this information may help you.
Line 5: Line 5:
If you are running near the end of your disk space, the information here may help you. Firstly confirm what devices you have, whether they are mounted or not. Run (as root or sudo) {{{
fdisk -l
}}} Then see which of those are mounted and what space is available on them by typing in a console {{{
df -hT
}}} or in X Windows, run the program {{{kdf}}}.

If you feel that you need to free up some space, here are a few tips and tricks.
Line 8: Line 14:
* aptitude -F '%I %p' search '~i'|egrep '^[0-9]+[\.,]?[0-9]*[MG]B'|sort -n
* wajig size
Using [[aptitude]]:
 {{{
aptitude -F '%I %p' search '~i'|egrep '^[0-9]+[\.,]?[0-9]*[MG]B'|sort -n}}}

Using [[DebMan:1/dpigs|dpigs]] (DebPkg:debian-goodies):
 {{{
dpigs -n50
}}}

Using DebPkg:wajig:
 {{{
wajig size}}}

== Tools to erase ==
=== files you do not want ===
 * DebPkg:bleachbit ([[DebianSqueeze|Squeeze]] and later)
 * DebPkg:localepurge

=== packages you do not want ===
 * DebPkg:debfoster
 * DebPkg:deborphan The textual user interface is provided by the program {{{orphaner}}}.

== Tools to alter files to reduce them ==
 * [[DebMan:1/strip|strip]] (DebPkg:binutils)
  * eg. {{{strip --strip-unneeded foo}}}
 * DebPkg:upx-ucl [[http://upx.sourceforge.net/|Ultimate Packer for eXecutables]]
Do not compress DebPkg:bash or your scripts will crash.
== Reduce data creation ==
Use the following line as your {{{/etc/rsyslog.conf}}} configuration file in order to not save logs but output them on virtual terminal 12:
 {{{
*.* -/dev/tty12}}}

On systems that have been running for some time you might consider stripping out old log files.

Note that localepurge is a package that will strip unwanted language versions from everything you install. If you want a new language in the future you will have to add the locale and then re-install the package.

You might consider running {{{ dpkg -l }}} periodically and manually going through it to see if there are packages which you never use. Alternately you can install the package popularity-contest and run {{{ popularity-contest | sort > popcon }}} This will list the packages in least-used order in a text file called ~/popcon. Then to actually remove some unwanted/unused package you can do {{{ aptitude purge -s <unwanted package> }}} to simulate the process and see what else is affected. You can answer yes to seemingly drastic removals because the {{{ -s }}} makes it simulate and report, not actually execute. Once you are happy with the consequences do {{{ aptitude purge <unused package> }}} and aptitude will still tell you what it's doing and what dependencies are affected, but when you say Yes, it will actually execute the removal.

Using a compressed filesystem can save a lot of space. Typically squashfs reduces space used by about 50%, but it is read-only.

ToDo - Check media compressions.

Translation Deutsch

Freeing Disk Space

If you think you are running near the end of your disk space, this information may help you.

Firstly confirm what devices you have, whether they are mounted or not. Run (as root or sudo)

fdisk -l

Then see which of those are mounted and what space is available on them by typing in a console

df -hT

or in X Windows, run the program kdf.

If you feel that you need to free up some space, here are a few tips and tricks.

Command line tools to see which package are using the most disk space:

Using aptitude:

  • aptitude -F '%I %p' search '~i'|egrep '^[0-9]+[\.,]?[0-9]*[MG]B'|sort -n

Using ?dpigs (debian-goodies):

  • dpigs -n50

Using wajig:

  • wajig size

Tools to erase

files you do not want

packages you do not want

Tools to alter files to reduce them

Do not compress bash or your scripts will crash.

Reduce data creation

Use the following line as your /etc/rsyslog.conf configuration file in order to not save logs but output them on virtual terminal 12:

  • *.* -/dev/tty12

On systems that have been running for some time you might consider stripping out old log files.

Note that localepurge is a package that will strip unwanted language versions from everything you install. If you want a new language in the future you will have to add the locale and then re-install the package.

You might consider running  dpkg -l  periodically and manually going through it to see if there are packages which you never use. Alternately you can install the package popularity-contest and run  popularity-contest | sort > popcon  This will list the packages in least-used order in a text file called ~/popcon. Then to actually remove some unwanted/unused package you can do  aptitude purge -s <unwanted package>  to simulate the process and see what else is affected. You can answer yes to seemingly drastic removals because the  -s  makes it simulate and report, not actually execute. Once you are happy with the consequences do  aptitude purge <unused package>  and aptitude will still tell you what it's doing and what dependencies are affected, but when you say Yes, it will actually execute the removal.

Using a compressed filesystem can save a lot of space. Typically squashfs reduces space used by about 50%, but it is read-only.

ToDo - Check media compressions.