View Single Post
  #7  
Old 2010-01-28, 21:51
Rob1n Rob1n is offline
 
Join Date: Nov 2009
Location: Cambridge, UK
Posts: 3,617
Thanks!: 769
Thanked 2,412 Times in 1,382 Posts
Default Re: Is there no easy way to know what is consuming root?

I use the attached perl scripts (modified from others posted here) to do this - they'll report all packages using rootfs space, and how much they're using (or how much space a given package is using, in total or per file).

EDIT: I've updated the attachment. The new version now reads the dpkg data files directly instead of calling dpkg (which gives an enormous speedup), and also reports the display name as well as the package name (where available).

EDIT2: I've updated the code again, removing the hardcoded non-rootfs paths and instead using stat to check the device IDs for the rootfs and the filesystem the file is on. This means it will deal with any bind mounts, symlinks, etc. transparently. I've also moved the scripts to my webspace rather than having to keep them updated here. They can now be downloaded from http://www.robinhill.me.uk/maemo/package_sizes.html

Last edited by Rob1n; 2010-03-22 at 14:23.
Reply With Quote
The Following 6 Users Say Thank You to Rob1n For This Useful Post: