Active Topics

 



Notices


Reply
Thread Tools
Posts: 240 | Thanked: 68 times | Joined on Nov 2009
#1
Is there no easy way to know what is consuming root?
__________________
If I helped you, please use the Thank button.
 
casper27's Avatar
Posts: 839 | Thanked: 509 times | Joined on Jan 2009 @ UK southampton
#2
There is a App called Storage Usage that displays all applications. Simply press scan packages. Works pretty well. But I think its in Extras Dev so usual warnings apply. It has been pretty stable for me.
 
Posts: 240 | Thanked: 68 times | Joined on Nov 2009
#3
I had it but I find DiskUsage better and faster.. However, both only show total memory usage not what is on root
__________________
If I helped you, please use the Thank button.
 
casper27's Avatar
Posts: 839 | Thanked: 509 times | Joined on Jan 2009 @ UK southampton
#4
Have a look at /usr and /usr/lib folders in the App. You will find most programmes there that are not opt with size of memory usage.
 
Posts: 24 | Thanked: 8 times | Joined on Dec 2009
#5
start terminal, type "sudo gainroot" and then "du -hs *".
also check against "mount" which of those dir are effectively in the same partition as root (/home is big, but isn't).
also "df -k" is handy to know the amount of free/used space in every partition.
Anyway, most of the root space is consumed by /usr, and I wouldn't remove anything from there if I don't know exactly what it is.
 
casper27's Avatar
Posts: 839 | Thanked: 509 times | Joined on Jan 2009 @ UK southampton
#6
You can also use this script to find the top 50 space hogs

Code:
dpkg-query -W -f='${Installed-Size}\t${Package}\n' '*' | sort -n | tail -50
See this thread rootfs full
 
Posts: 3,617 | Thanked: 2,410 times | Joined on Nov 2009 @ Cambridge, UK
#7
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.
 

The Following 6 Users Say Thank You to Rob1n For This Useful Post:
Posts: 179 | Thanked: 49 times | Joined on Nov 2008
#8
Originally Posted by Rob1n View Post
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).
When i follow the instructions i get an error, i think i might be doing it wrong.

I've unzipped the files to a folder in MyDocs called "p"

This is the part i want to run...

Code:
checkpkgs.pl:

This script outputs a list of all packages containing files (excluding symlinks) in the rootfs, and the total size taken on the rootfs by the package. The display name for the package (if available) is given in brackets after the actual name.
so i tried to run it using

Code:
perl /home/user/MyDocs/p/checkpkgs.pl
but i get an error back...

Code:
Can't locate PkgSize.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/user/MyDocs/p/checkpkgs.pl line 7.
BEGIN failed--compilation aborted at /home/user/MyDocs/p/checkpkgs.pl line 7.
All i want to do is find out what i've installed thats taking up so much rootfs space. I only have 22mb left withextras-devel and extras-testing disabled. 10mb left when i enable extras-devel.
 
Posts: 3,617 | Thanked: 2,410 times | Joined on Nov 2009 @ Cambridge, UK
#9
Originally Posted by munkiii View Post
When i follow the instructions i get an error, i think i might be doing it wrong.

I've unzipped the files to a folder in MyDocs called "p"

This is the part i want to run...

Code:
checkpkgs.pl:

This script outputs a list of all packages containing files (excluding symlinks) in the rootfs, and the total size taken on the rootfs by the package. The display name for the package (if available) is given in brackets after the actual name.
so i tried to run it using

Code:
perl /home/user/MyDocs/p/checkpkgs.pl
but i get an error back...

Code:
Can't locate PkgSize.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/user/MyDocs/p/checkpkgs.pl line 7.
BEGIN failed--compilation aborted at /home/user/MyDocs/p/checkpkgs.pl line 7.
All i want to do is find out what i've installed thats taking up so much rootfs space. I only have 22mb left withextras-devel and extras-testing disabled. 10mb left when i enable extras-devel.
You'll need to be in the same directory to run it, so:
Code:
cd /home/user/MyDocs/p
perl checkpkgs.pl
It's probably best to output to an ordered file as well, so:
Code:
perl checkpkgs.pl | sort -rn > sizes.txt
You can then use "more sizes.txt" to read through the file - the largest rootfs users will be at the top.
 
Posts: 179 | Thanked: 49 times | Joined on Nov 2008
#10
Originally Posted by Rob1n View Post
You'll need to be in the same directory to run it, so:
Code:
cd /home/user/MyDocs/p
perl checkpkgs.pl
It's probably best to output to an ordered file as well, so:
Code:
perl checkpkgs.pl | sort -rn > sizes.txt
You can then use "more sizes.txt" to read through the file - the largest rootfs users will be at the top.
ah, i thought i could run it with the path.

also, i think the output to txt helped alot.

Right... here is the contents of the txt file.

Code:
17016	libqt4-webkit
16960	posix-locales
16480	libicu40
15548	microb-engine
10952	libqt4-gui
9288	pokerth-data
8404	libc6
7804	hildon-theme-alpha
6564	adobe-flashplayer
6544	maemo-icons-203
6544	hildon-theme-beta
6504	omap3430-dsp-libraries-ti
6316	nokia-maps-ui
5248	nokia-maps-core
4532	pokerth
4444	libgtk2.0-0
3644	microb-engine-common
3348	libqt4-core
3308	kernel-modules
3172	mc
2432	nokiamessaging
2396	libnss3
1960	libelementary0
1848	osso-sounds-ui
1844	chinese-font
1832	perl-base
1788	xserver-xorg-core
1780	skyhost-bin
1780	libx11-data
1760	libas-storage-0
1616	libssl0.9.8
1560	libglib2.0-0
1556	nokia-maps-maplets
1552	ioquake3
1536	opengles-sgx-img-common
1396	libqt4-network
1380	ui-fonts
1360	libtinymail-camel-1.0-0
1360	hildon-theme-marina (Theme Marina)
1352	apt
1304	libmagic1
1292	libvte4
1248	gstreamer0.10-nokia-speech
1216	omap3430-dsp-baseimage-ti
1196	tracker
1192	python2.5
1148	libxml2
1140	funambol-cpp-api
1136	as-daemon-0
1116	hal
1104	libas-protocol-0
1084	calendar-backend
1080	libasound2
1076	libsofia-sip-ua0
1060	osso-sounds-rtc
1052	libgstreamer0.10-0
1040	osso-pdf-viewer
1028	modest
1024	gnupg
1016	python2.5-minimal
1004	libpoppler0c2
972	shared-mime-info
968	libvorbisenc2
956	gstreamer0.10-plugins-good
948	gstreamer0.10-plugins-base
924	libx11-6
852	pulseaudio
844	libboost-regex1.38.0
828	libtelepathy-glib0
824	libstdc++6
800	libdb4.2
764	swi-prolog
756	gstreamer0.10-plugins-bad-extra
756	bluez
752	libclutter-1.0-0
744	eff-content-fonts
740	dpkg
728	osso-graphics-game-lmarbles
720	osso-graphics-game-mahjong
716	libgnutls26
712	libpango1.0-0
704	libexempi3
684	telepathy-gabble
680	libosso-abook
680	calendar
664	omap3camd
652	gstreamer0.10-wma
628	libqt4-phonon
624	testserver
616	passwd
616	mce
612	xournal
612	rtcom-messaging-ui
612	mediaplayer
612	libevas0
608	gtkhtml3.14
604	maesync-backend
596	osso-startup-wizard
592	libtheora0
592	libsqlite3-0
556	osso-graphics-game-chess
552	libgstreamer-plugins-base0.10-0
548	libqt4-dbus
548	hildon-application-manager
528	osso-wlan-security
524	calendar-ui
516	hildon-desktop
500	libetk0
496	e2fsprogs
488	maemosec-certman-common-ca
476	libhildon1
472	libqt4-svg
468	libosso-gnomevfs2-common
452	libclutter-0.8-0
432	libfreetype6
428	openssl
428	microb-eal
428	alsa-utils
424	vgba (VGBA)
424	osso-chess-ui
424	libgcrypt11
404	osso-calculator-engine
404	libgles1-sgx-img
400	ohm-plugins-misc
400	busybox
396	maemo-ringtones-203
392	libcairo2
392	gvfs
392	dbus
388	modest-nokiamessaging-plugin
384	libical
376	liboil0.3
364	openssh-server (OpenSSH Server)
364	libas-common-utils-0
352	xkb-data
352	libsndfile1
340	libqt4-xml
336	libncurses5
332	libtiff4
332	libosso-gnomevfs2-0
332	libnss3-certs
332	libgmime-2.0-2
328	osso-rss-feed-reader
328	libsdl1.2
324	x11-xkb-utils
324	wget
324	easy-deb-chroot (Easy Debian)
320	pulseaudio-module-nokia-voice
320	libxt6
316	telepathy-spirit
316	gstreamer0.10-plugins-bad
308	libpulse0
308	libmaesync
304	maemoblocks
304	libqt4-opengl
300	libipp-nokia
296	libgstfarsight0.10-0
292	libhildonfm2
292	camera-ui
288	libhildonmm
284	telepathy-ring
280	modest-providers-data-203
280	libxfont1
276	policy-settings-rx51
272	libqt4-sql
268	gpgv
264	gvfs-backends
260	tablet-browser-view
260	librtcom-call-ui0
260	libnl1
260	libedje0
252	libgles2-sgx-img
248	python-gst0.10
248	libsdl-mixer1.2
244	libsoup2.4-1
240	libmissioncontrol-server6
240	libcurl3
236	upstart
232	imageviewer
228	tablet-browser-ui
228	tablet-browser-bookmarks-203
224	libreadline5
224	icd2
224	hildon-thumbnail
216	osso-backup
216	libpixman-1-0
216	libdbus-1-3
212	libnspr4
208	rtcom-notification-ui
208	libreadline4
204	osso-lmarbles
204	hildon-home
204	evolution-data-server-addressbook-backend-telepathy
204	camel-as-provider-0
200	libespeak
200	dsme
196	wl1251-firmware
196	libgconf2-6
196	gst-nokia-wm
196	fontconfig
192	osso-addressbook
192	libebook
188	udev
188	libssoautologin
188	ke-recv
188	gnuchess
184	python-central
184	e2fslibs
180	osso-accounts-plugin-skype
180	libptypes
172	sudo
172	signond0
172	libzbar0
172	libtopos0
172	liblcms1
172	libezitext
172	libexif12
168	libfontconfig1
164	osso-maesync-ui
164	mtools
164	libgnomecanvas2-0
164	libconbtui0
164	browser-neteal
160	recorder (Recorder)
160	pulseaudio-module-bluetooth
160	openssh-common
160	libvorbis0a
160	libgtkadi1
160	gconf2
160	base-files
156	libenca0
152	telepathy-sofiasip
152	tablet-browser-controls
152	mafw-gst-renderer
152	libchamplain
148	softupd
148	osso-filemanager-ui
148	ncurses-base
148	libgvfscommon0
148	libgtkmozembed
148	gstreamer0.10-mkv
144	ssc-daemon
144	libwidgetutils
140	rtcom-abook-skype-plugin
140	maemo-launcher
136	mytube
136	libsharing0
136	libpng12-0
136	libecore0-x
136	libasound2-plugins
136	clinkc0
132	python-pygame
132	mymenu
132	matchbox-window-manager
132	libxkbfile1
132	dnsmasq
128	usbutils
128	dosfstools
128	alarmd
124	vncviewer
124	osso-sounds-game-chess
124	libwbxml2-0
124	libomxil-ti-components
124	libnice0
124	libjpeg62
124	libexpat1
120	osso-xterm
120	osso-mahjong
120	libedataserver
120	connui-iapsettings
116	rtcom-call-ui
116	osso-mission-control
116	osso-af-utils
116	module-init-tools
116	mediaplayerhomeapplet
116	mafw-tracker-source
116	libtinymail-1.0-0
116	libmcclient6
112	tracker-utils
112	osso-sounds-game-mahjong
112	mapbuddy (Map Buddy)
112	libcanberra0
108	witter
108	qtranslate (qTranslate)
108	libdbus-glib-1-2
108	gstreamer0.10-tools
108	bme-rx-51
104	osso-notes
104	maemosec-certman-tools
104	libtinymailui-gtk-1.0-0
104	librtcom-accounts-widgets0
104	libgupnp-1.0-2
104	libdres0
104	libatk1.0-0
104	clock-ui
100	tablet-browser-daemon
100	tablet-bookmark-manager
100	osso-sketch
100	libnips0
100	libmafw-shared0
100	libcumulus0
100	desktop-file-utils
96	wpeditor0
96	tweakr
96	lsof
96	libspeexdsp1
96	librtcom-eventlogger0
96	libloudmouth1-0
96	libeina0
96	libecore0
96	libconnui
96	evolution-data-server-addressbook
92	system-services
92	rtcom-presence-ui
92	pulseaudio-policy-enforcement
92	pulseaudio-module-nokia-common
92	libepsilon0
92	gstreamer0.10-hantro
88	obexd
88	mbarcode
88	libxcb1
88	libglade2-0
88	libedata-book
88	hildon-plugins-notify-sv
88	gstreamer0.10-ogg
88	ezitext-greek
88	as-config-applet-0
84	sharing-manager
84	osso-calculator-ui
84	osso-af-startup
84	libxmu6
84	libtotem-plparser12
84	libmaemosec0
84	libice6
84	libhildondesktop1
84	libelfg0
84	libboost-filesystem1.38.0
80	libpango1.0-common
80	libmatchbox1
80	libmaemosec-certman0
80	libicd-network-gprs
80	libgnome-menu2
80	libboost-thread1.38.0
80	libbluetooth3
80	libart-2.0-2
80	gstreamer0.10-x
80	gstreamer0.10-rm
76	telepathy-stream-engine
76	pulseaudio-module-nokia-music
76	libwildmidi0
76	libsim0
76	libmafw0
76	libhildon-fmmm
76	libecore0-con
76	libcsnet0
76	hildon-control-panel-personalisation
76	easy-chroot (Easy Chroot)
72	skyhost-vengine
72	maemo-input-sounds
72	librtcom-eventlogger-ui0
72	liblomesa0
72	libbz2-1.0
72	hildon-im-virtual-keyboard-layouts
72	gstreamer-tools
72	ezitext-german
72	ezitext-dutch
72	clockd
72	camelisync
68	zlib1g
68	xserver-xorg-video-fbdev
68	quick-launch
68	osso-wlan
68	libxft2
68	libdmtx0a
68	gtk2-engines-sapwood
68	gstreamer0.10-flac
68	flasher
68	ezitext-italian
68	ezitext-czech
68	alsa-policy-enforcement
64	tone-generator
64	sqlite3
64	rtcom-accounts-ui
64	python-imaging
64	pulseaudio-esound-compat
64	osso-rss-feed-reader-applet
64	modest-as-plugin-0
64	mafw-playlist-daemon
64	mafw-dbus-daemon
64	maemo-geolocation
64	maemo-applet-profiles
64	libsignon-glib0
64	libohm-plugin-core0
64	libhal1
64	libeet1
64	libecore0-evas
64	libconnui-cellular
64	libcityinfo0-0
64	hildon-im-keyboard-assistant-scv
64	hildon-control-panel
64	gstreamer0.10-theora
64	ezitext-norwegian
64	ezitext-finnish
64	ezitext-english-gb
64	ezitext-danish
64	connui-conndlgs-cellular
60	wiicontrol
60	pulseaudio-module-nokia-record
60	osso-applet-languageregional
60	osso-applet-display
60	ohm
60	maemo-statusmenu-volume
60	libxext6
60	libtelepathy-farsight0
60	libosso1
60	libisi1
60	hildon-im-fkb
60	gstreamer0.10-vorbis
60	gstreamer0.10-plugins-camera
60	gstreamer0.10-flv
60	fmtx-middleware
60	csd-gprs
60	csd-base
60	connui-conndlgs-wlan
60	connui-conndlgs-internet
56	udhcpc
56	tablet-browser-dialogs
56	sharing-dialog
56	osso-systemui
56	mini-rc
56	makedev
56	location-proxy
56	libtasn1-3
56	libsimpb0
56	librtcom-eventlogger-plugins0
56	libosso-gsf-1
56	libhildon-im-ui3
56	libalarm2
56	hildon-im-keyboard-assistant
56	gstreamer0.10-dsp
56	feedservice-plugin-fb (Facebook Desktop Widget)
56	ezitext-spanish-us
56	ezitext-spanish-es
56	ezitext-russian
56	ezitext-portuguese-pt
56	ezitext-polish
56	ezitext-french-fr
56	ezitext-english-us
56	desktop-cmd-exec (Desktop Command Execution Widget)
56	csd-call
56	as-utils
52	wappushd
52	rtcom-accounts-plugin-jabber
52	python-support
52	psswitcher (Phone Speakers Switcher)
52	profiled
52	osso-applet-notificationlight
52	operator-wizard-settings
52	ogg-support (Ogg Support)
52	mafw-upnp-source
52	maemosec-certman-applet
52	maemo-bluez-compat
52	libmaemosec-certman-applet0
52	libgdigicam0
52	libgcc1
52	hildon-status-menu
52	ezitext-swedish
52	ezitext-french-ca
48	ota-settings
48	osso-games-startup
48	osso-applet-textinput
48	netbase
48	load-applet (Load Applet)
48	libsms0
48	libqt4-sql-sqlite
48	libffi5
48	libclockcore0-0
48	libboost-iostreams1.38.0
48	hildon-input-method-framework
48	hald-addon-bme
48	battery
44	xml2wbxml
44	personal-gprs-mon (Personal Dataplan Monitor)
44	osso-memory-backend
44	osso-applet-screencalibration
44	osso-applet-memory
44	nokiamaps-navigation-provider
44	maemo-mapper (Mapper)
44	libpoppler0c2-glib
44	liblocation0
44	libcscall2
44	hildon-input-method-configurator
44	google-search-widget (Google)
44	connui-iapsettings-wlan
44	connui-conndlgs-bluetooth
44	connui-cellular-settings
40	ussd-widget
40	tablet-browser-widgets
40	sharing-service-flickr
40	sharing-account-manager
40	rtcom-accounts-plugin-sip
40	python-numeric
40	maesync-controller
40	libxi6
40	libsms-utils0
40	libsdl-image1.2
40	libprolog0
40	libiptcdata0
40	libicd-network-wlan
40	libhildonmime0
40	libhildon-thumbnail0
40	libhal-storage1
40	libblkid1
40	ke-recv-extra
40	iphbd
40	gstreamer0.10-mpegaudioparse-maemo
40	gnome-vfs-filechooser-backend
40	dbus-x11
40	conversations-inbox-widget (Conversations Inbox Desktop Widget)
40	clinkc-av-gnomevfs
40	browser-eal
36	vagalume (Vagalume)
36	swi-prolog-lib-core
36	status-area-applet-activesync-0
36	sleeper
36	sharing-service-ovi
36	osso-rss-feed-reader-lib
36	osso-bookmark-engine
36	ohm-plugin-resolver
36	libzeemote-conf (Zeemote Control Panel)
36	libxrender1
36	libxcursor1
36	libvolume-id0
36	libtrackerclient0
36	librest-0.6-0
36	libnavigation0
36	libgupnp-av-1.0-1
36	libgpx0
36	libgnomecanvas2-common
36	libembryo0
36	libcodelockui1
36	libbridge2
36	libaccounts0
36	gstreamer0.10-openmax
36	getbootstate
36	fm-boost
36	fiasco-flasher
36	evolution-data-server-addressbook-backend-sim
36	custom-operator-name-widget (Custom Operator Name Widget)
36	clipboard-manager
36	calendar-home-applet
32	xserver-xorg-input-evdev
32	tickstill (Tickstill)
32	sms-manager
32	showtime
32	rtcom-accounts-plugin-gtalk
32	personal-ip-address (Personal IP Address)
32	mafw-iradio-source
32	libusb-0.1-4
32	libsysfs2
32	libomxil-ti0
32	libltdl7
32	liblas1
32	libicd-network-wps
32	libhildon-time-zone-chooser0-0
32	libhildon-im-vkbrenderer3
32	libgtk2.0-bin
32	libgssdp-1.0-1
32	libcomapp0
32	libclutter-gtk-0.10-0
32	libcanberra-gtk0
32	initrd-progs
32	gypsy-daemon
32	fennec (Firefox)
32	feedservice
32	csd-sms
32	connui-statusbar-bluetooth
32	connui-conndlgs
32	bluemaemo (BlueMaemo)
28	tablet-browser-mediaplayer-plugin
28	storageusage (Storage Usage)
28	status-area-applet-battery
28	powatool (Powatool)
28	osso-systemui-tklock
28	osso-systemui-splashscreen
28	osso-systemui-powerkeymenu
28	osso-systemui-alarm
28	osso-applet-devicelock
28	osso-app-killer
28	osso-abook-home-applet
28	location-home-applet
28	location-daemon
28	libxrandr2
28	libvorbisfile3
28	libtinymail-maemo-1.0-0
28	libsm6
28	libpopt0
28	libopenobex1
28	libnotify1
28	libiw30
28	libicd-network-ipv4
28	libgpg-error0
28	libgdbm3
28	libevas0-engine-software-x11-16
28	libevas0-engine-software-x11
28	libedbus0
28	libdrm2
28	hildon-update-category-database
28	hildon-status-bar-usb
28	hildon-startup-progress
28	hildon-input-method
28	hildon-application-manager-settings-203
28	gprs-provisioning
28	fmms (fMMS)
28	decoders-support (Extra Decoders Support)
28	de-lite (De-Lite)
28	dbus-scripts
28	batterygraph (BatteryGraph)
28	base-passwd
28	autodisconnect (AutoDisconnect)
28	apt-transport-https
My problem now is that the total of those sizes add up to 315820. That converts to just under 308mb. The rootfs file size is only reported as 227.9mb when i do a "df -h" in xterminal.

Also, there only looks like 2 things in that list that i could remove, and thats the PokerTH's which would give me back around 13.5mb. Although, when i installed PokerTH, my rootfs didn't go down by anywhere near 13.5mb.

Is this script showing the rootfs and some other place?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:05.