Reply
Thread Tools
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#1
Hi.

Having a lil trouble with rootfs. Yes I installed apps from devel. Yes I read the other threads. My issue is this:

Along the way, my phone keeps adding to rootfs. Even though older versions of software that weren't optified now are space doesn't seem reclaimed.

I don't even have that much installed, Disk Usage shows some 10-15M free depending on boot time, and the wiki says about 100. I saw people here with over one hundred installed that claim 60.

Something's fishy. Looking at Disk Usage graph I see nothing odd. The here-and-there stuff from OpenTTD and a few files from themes. Huge hogs were the /usr/lib, then /home/opt/qt4-maemo5/lib, then /usr/share/icons/hicolor, some Python folders and last some apt cache. Other than that nothing big, just pieces of seemingly needed stuff.

How did I get this usage? I'm guessing updated packages that never got files removed?

I have less than 30 apps listed and most are real small, like rdesktop (500k), VNC, wifiinfo, stuff that adds up to like 45 megs in package size in "uninstall". But 20 MB is MPlayer and I read it's optified. Also, many other large programs are optified. Even so, should have at least 20 free, not 12?

I don't get it, if I uninstall ALL apps and reinstall, would that get me back my space? Or is it lost to updating apps? I thought the packaging system took care of stray files.

Does anyone have a clue how much a new N900 have free and about what size is each big folder? Perhaps a Disk Usage screen?

I hate flashing.

Oh, and, is QT and Python supposed to be in there?

How can I find out how much (ish) is each app/package taking up? I saw a script around but it's perl and I can't even tell if I'm perl-able.

Oh, and, I rate at zero/10 on Linux but at around 9-10/10 on Windows (IT guy), so I have the concept of file and editing, CLI, etc but no concept of Unix folder structure. Where do I look?
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#2
1. install rootsh
2. open x-term
3. sudo gainroot
4. dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n | more

You will get sorted list all installed packages with sizes in Kb. You will get page by page. for next page press "space" for exit "q"
if you want to export list to file use:

dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n >> FileName

for looking file use
cat FileName | more
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#3
4044 microb-engine-common
4172 libxerces27
4188 python2.5-minimal
4304 reflect
5288 libqt4-maemo5-xmlpatterns
5320 openttd-opengfx
5372 gstreamer0.10-ffmpeg
5504 libgtk2.0-0
5564 nokia-maps-core
5676 openttd-data
6276 osso-icons-default
6388 mc
6484 omap3430-dsp-libraries-ti
6572 hildon-theme-beta
6760 adobe-flashplayer
7856 hildon-theme-alpha
8032 nokia-maps-ui
8868 libc6
8884 dtg
9780 python2.5
11692 libqt4-maemo5-gui
12292 microb-l10n
13276 libqt4-gui
13584 cmt-firmware-rx51
15640 microb-engine
16304 posix-locales
16576 libicu40
18252 libqt4-maemo5-webkit
18612 mplayer
20744 libqt4-webkit

No hint on optification.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 118 | Thanked: 45 times | Joined on Dec 2009 @ Germany
#4
Be aware of what you are doing - use on your own risk:

http://talk.maemo.org/showthread.php?t=37629 provides a script somewhere which could help you.
http://talk.maemo.org/showthread.php...142#post429142 provides a script which could release some space (if you have not already done that).

Last edited by emesem; 2010-01-09 at 11:30.
 
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#5
try this in a root terminal to remove unused packages.
Code:
apt-get autoremove

Last edited by archebyte; 2010-01-09 at 13:20. Reason: remove -> autoremove
 

The Following User Says Thank You to archebyte For This Useful Post:
Posts: 43 | Thanked: 3 times | Joined on Jul 2008 @ Vienna
#6
You tried deleting everything in /var/cache/apt/archives/ yet ?
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#7
thanks, archebyte.

Excuse the possible typos and layout, I'm on the device.

apt-get --help suggests that the parameter I'm looking for is --autoremove. Using that instead. Sudoing that.

The following packages will be REMOVED:
liblongcat0 libqt4-maemo5-core libqt4-maemo5-gui
libqt4-maemo5-network libqt4-maemo5-opengl libqt4-maemo5-phonon
libqt4-maemo5-webkit libqt4-maemo5-xml libqt4-maemo5-xmlpatterns
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
After this operation, 42.9MB disk space will be freed.
Do you want to continue [Y/n]? n

Shoul I go ahead? Are those packages needed there if not needed now? As in, maybe needed later and not in repos?
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#8
Originally Posted by ndi View Post
thanks, archebyte.

Excuse the possible typos and layout, I'm on the device.

apt-get --help suggests that the parameter I'm looking for is --autoremove. Using that instead. Sudoing that.

The following packages will be REMOVED:
liblongcat0 libqt4-maemo5-core libqt4-maemo5-gui
libqt4-maemo5-network libqt4-maemo5-opengl libqt4-maemo5-phonon
libqt4-maemo5-webkit libqt4-maemo5-xml libqt4-maemo5-xmlpatterns
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
After this operation, 42.9MB disk space will be freed.
Do you want to continue [Y/n]? n

Shoul I go ahead? Are those packages needed there if not needed now? As in, maybe needed later and not in repos?
You can remove it if you don't use this packages by self. This packages was installed when you install some other packages (they was in dependency). Now you already removed packages which depend on them. It is mean packages which will be removed is library which not used by any other packages.
 

The Following User Says Thank You to mikhmv For This Useful Post:
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#9
Originally Posted by ndi View Post
apt-get --help suggests that the parameter I'm looking for is --autoremove.
sorry, that was a typo. I have edited the post.

Originally Posted by ndi View Post
Shoul I go ahead? Are those packages needed there if not needed now? As in, maybe needed later and not in repos?
yes. shouldn't be a problem. they will get re-installed if you install some app that depends on them. The qt libraries for some reason aren't being installed on the eMMC. hopefully in the future, they will.
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#10
I understand that they aren't used now.

What I'm asking is: can this remove default packages that shipped with maemo and are not in the repos. Would this keep me from fulfilling dependencies later, because they were supposed to be there.

I know I make little sense, I'm out of my element here.

Say I ship a device with packages a,b,c,d included, and install x, depends on a,b,c and y. Note that d is now unlinked. If removed, app z might depend on d but d is not there and it's not in the repos because it should be there by default.

Can this happen? Or are all libs in the repos?

edit: posted at the same time. thanks. going ahead.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.

Last edited by ndi; 2010-01-09 at 13:33. Reason: synch posted
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:58.