maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   rootfs help (https://talk.maemo.org/showthread.php?t=39801)

ndi 2010-01-08 23:06

rootfs help
 
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?

mikhmv 2010-01-09 00:59

Re: rootfs help
 
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 2010-01-09 11:09

Re: rootfs help
 
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.

emesem 2010-01-09 11:28

Re: rootfs help
 
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).

archebyte 2010-01-09 11:30

Re: rootfs help
 
try this in a root terminal to remove unused packages.
Code:

apt-get autoremove

Ghostface 2010-01-09 11:52

Re: rootfs help
 
You tried deleting everything in /var/cache/apt/archives/ yet ?

ndi 2010-01-09 12:59

Re: rootfs help
 
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?

mikhmv 2010-01-09 13:11

Re: rootfs help
 
Quote:

Originally Posted by ndi (Post 460964)
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.

archebyte 2010-01-09 13:22

Re: rootfs help
 
Quote:

Originally Posted by ndi (Post 460964)
apt-get --help suggests that the parameter I'm looking for is --autoremove.

sorry, that was a typo. I have edited the post.

Quote:

Originally Posted by ndi (Post 460964)
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 2010-01-09 13:31

Re: rootfs help
 
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.

archebyte 2010-01-09 13:37

Re: rootfs help
 
apt-get automatically does the dependency checking before providing the list of packages that will be removed. so in your case:

liblongcat0 -> ok to remove (installed from extras-testin)

the following are the qt libraries that were going to be removed. its safe to remove them because they are available from the repos.
libqt4-maemo5-core
libqt4-maemo5-gui
libqt4-maemo5-network
libqt4-maemo5-opengl
libqt4-maemo5-phonon
libqt4-maemo5-webkit
libqt4-maemo5-xml
libqt4-maemo5-xmlpatterns

ndi 2010-01-09 13:46

Re: rootfs help
 
Something odd has happened.

I had 17M free through reboot. After running apt-get and answering no (as posted) I humped to 23 then 28. Does it do something by just bein launched? maybe a stuck daemon? Odd.

Anyway, ran autoremove:

Do you want to continue [Y/n]?
(Reading database ... 25544 files and directories currently installed.)
Removing liblongcat0 ...
Removing libqt4-maemo5-webkit ...
Removing libqt4-maemo5-xmlpatterns ...
Removing libqt4-maemo5-phonon ...
Removing libqt4-maemo5-opengl ...
Removing libqt4-maemo5-gui ...
Removing libqt4-maemo5-xml ...
Removing libqt4-maemo5-network ...
Removing libqt4-maemo5-core ...
/home/user #

Nice.
DiskUsage reports 28 M free. Rebooting...

ndi 2010-01-09 13:59

Re: rootfs help
 
DiskUsage reports 32.1, root 36.3

Didn't exctly free 42M, it lied to me :) .

The difference was opted, right?

ndi 2010-01-09 14:02

Re: rootfs help
 
Quote:

Originally Posted by Ghostface (Post 460919)
You tried deleting everything in /var/cache/apt/archives/ yet ?

Already zero.

archebyte 2010-01-09 15:10

Re: rootfs help
 
Quote:

Originally Posted by ndi (Post 461030)
DiskUsage reports 32.1, root 36.3

Didn't exctly free 42M, it lied to me :) .

The difference was opted, right?

the rootfs is compressed. so you wont see the 42mb freed off it. glad there is now more breathing room in your device. :)

baron von bubba 2010-01-09 17:23

Re: rootfs help
 
Quote:

Originally Posted by Ghostface (Post 460919)
You tried deleting everything in /var/cache/apt/archives/ yet ?

if someone were to accidently delete the "partial" folder and "lock" from /var/cache/apt/archives/ what would be the consequences? :o

ndi 2010-01-09 17:34

Re: rootfs help
 
I have no idea what I'm saying but since downloads resume I'm gonna guess that's what the partial is there for. In which case, no resume on already-partial downloads. Aka, nothing.

Also, like many other apps, lock files are the Unix equivalent of the Windows' one-instance mechanisms. I'm guessing it'll recreate next session or can't delete if a session is in progress.

Should I be hinting people when I'm not sure myself? Don't answer that. But since removal has been suggested already and it is a cache, after all, I'm voting for safe.

ndi 2010-01-10 13:12

Re: rootfs help
 
Oh it's at it again.
I'm down to 17 M, again.

I installed and removed two apps, both claiming 180K range.

The autoremove claims that it has nothing to do.

dpkg listing of packages is even more confusing now, as it lists packages such as libqt4 as large, but not installed:

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

--snip--
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

Great. Let's see:
libqt4-webkit

/home/user # apt-get -s remove libqt4-webkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqt4-opengl libqt4-phonon
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
googlelatitude libqt4-webkit
0 upgraded, 0 newly installed, 2 to remove and 17 not upgraded.
Remv googlelatitude [0.3-9]
Remv libqt4-webkit [4.5.3~git20090723-0maemo4+0m5]

Ok, so it's in use, but no sweat, I had GLU before this began and I had 32M left. I skipped MPlayer because I want it and because it's optified anyway (i read that around).

Next it's libqt4-maemo5-webkit. Cue confusion:
/home/user # apt-get -s remove libqt4-maemo5-webkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libqt4-maemo5-webkit is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.

It's not there. Same goes for libicu40. I'm fairly sure posix was there by design, so where's my space?

Rebooting did nothing. I'm thinking a file system diff is my last chance. Since I know little about the OS, I'm thinking ls -R /> today.txt and then export the txt back to my Windows. Do this after a sudden increase and catch the files.

Anything less ... hacky?


All times are GMT. The time now is 21:59.

vBulletin® Version 3.8.8