maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   CSSU thumb and exhausted root file system space (https://talk.maemo.org/showthread.php?t=92113)

ymartin59 2013-12-21 16:39

CSSU thumb and exhausted root file system space
 
Hello,
I tried to update my N900 CSSU to CSSU thumb... but it failed because "/" file system was full.
I tried to free as much as possible space, removing packages consuming too much on "/" but it still lacks at least 40 Mb. Now the largest files are xul libraries from MicroB.
Is it a known problem ?
Is there any work-around ?

Thank you in advance
Yves

sixwheeledbeast 2013-12-21 16:53

Re: CSSU thumb and exhausted root file system space
 
Installing stuff from extras-devel is the usual cause.

Code:

df -h

iceskateclog 2013-12-21 17:00

Re: CSSU thumb and exhausted root file system space
 
I've got bitten recently by similar situation. All space was taken by offline imap support in Modest accounts. Check /home/user/.modest/cache directory with

Code:

du -hs  /home/user/.modest/cache
[edit] sorry, it was /home

ymartin59 2013-12-21 17:29

Re: CSSU thumb and exhausted root file system space
 
My "/" rootfs was 28 Mo free (over 228 Mo) before upgrading to CSSU thumb.
/var/lib/dpkg is 44 Mo heavy
I have deleted "/var/log/lastlog" - 8 Mo, probably lacks rotation. And also remove "/lib/modules/2.6.28.NIT.06" and /boot/multiboot/vmlinuz-2.6.28.NIT.06" (1.8 Mo)
Is it safe to remove "old" files from /var/lib/dpkg and /var/lib/apt ? (as far as I have a full backup)
I will now replay installation on my QA system... before production.
Thanks

sixwheeledbeast 2013-12-21 17:53

Re: CSSU thumb and exhausted root file system space
 
Multiboot is deprecated as it causes excessive wear on the flash memory.

I'd backup your data and do a full reflash as per

http://wiki.maemo.org/Reflash

ymartin59 2013-12-22 08:12

Re: CSSU thumb and exhausted root file system space
 
Thanks. multiboot was not the problem itself. I already replaced it by u-boot. But package "nitdroid-kernel" failed to uninstall because "nitdroid-installer" is no longer available (requires multiboot)
http://talk.maemo.org/showthread.php...96&postcount=8

I will avoid to reflash... until I am really desperate.

bozoid 2013-12-23 14:05

Re: CSSU thumb and exhausted root file system space
 
Hmm. First backup your entire N900.
You probably only need to mess with rootfs & not optfs.
rootfs is at / downwards. optfs is at /home, & /opt downwards.
When you install apps, many of them go under /usr/lib, /usr/bin & /usr/share. Try temporarily moving only app specific folders, new and large directories from those locations to say a temporary /opt/z directory. Do this until you have space to install CSSU thumb.

You can ignore this if you're not familiar.

kh

ymartin59 2014-01-05 07:33

Re: CSSU thumb and exhausted root file system space
 
I have also uninstalled bash4 and gdb, so that I have 36 Mb free on rootfs before upgrade.
But the upgrade process by "apt-get upgrade" still complains with "no space left on device"... after fixing with "dpkg --configure -a" and another "apt-get upgrade" it succeeded with only 3 Mb free on rootfs.

After reboot and some days, rootfs is now 38 Mb free. Strange, it looks like the upgrade requires a lot of temporary space that gets freed only with cron tasks.

My suspect is /var/lib/dpkg which was 44 Mb after the first upgrade failure and is now 16 Mb large.

marmistrz 2014-01-05 07:42

Re: CSSU thumb and exhausted root file system space
 
Do you have libicu48 installed?
Try to identify which directories use up most rootfs

michaaa62 2014-01-06 11:36

Re: CSSU thumb and exhausted root file system space
 
Quote:

Originally Posted by ymartin59 (Post 1403888)
I have also uninstalled bash4 and gdb, so that I have 36 Mb free on rootfs before upgrade.
But the upgrade process by "apt-get upgrade" still complains with "no space left on device"... after fixing with "dpkg --configure -a" and another "apt-get upgrade" it succeeded with only 3 Mb free on rootfs.

After reboot and some days, rootfs is now 38 Mb free. Strange, it looks like the upgrade requires a lot of temporary space that gets freed only with cron tasks.

My suspect is /var/lib/dpkg which was 44 Mb after the first upgrade failure and is now 16 Mb large.

If you do the upgrade via the X-Terminal, you will have to remove the downloaded packages manually:
Code:

sudo gainroot
apt-get clean

This is done by HildonApplicationManager, also via the auto-upgrade run in background or FasterApplicationManager.
Doing it manually may speed things up.

ymartin59 2014-01-06 20:16

Re: CSSU thumb and exhausted root file system space
 
I have no "libicu48" installed.
Top consumers on rootfs are:
- "microb" with both /usr/lib/microb-engine and /usr/share/microb-engine
- /usr/lib/locale
- /var/lib/dpkg

I cannot "apt-get clean" downloaded package during the upgrade... as they are required for the upgrade itself, which aborts because / is full. By the way, /var/cache/apt is already diverted to /opt/var/cache/apt so it does not impact rootfs.

michaaa62 2014-01-06 20:55

Re: CSSU thumb and exhausted root file system space
 
Please post the output of
Code:

df
mount
free
du -kx / | sort -n | tail -n 20
du -kx /home | sort -n | tail -n 20

to decide where to safely free some space.

Try to disable extras-devel and extras-testing repositories, if used to get some space due to a smaller packages listing.

shawnjefferson 2014-01-07 06:56

Re: CSSU thumb and exhausted root file system space
 
on this topic, can you safely move (and link) libflashplayer.so and libflashplayer.so.diverted to opt?

peterleinchen 2014-01-07 07:49

Re: CSSU thumb and exhausted root file system space
 
Quote:

Originally Posted by shawnjefferson (Post 1404429)
on this topic, can you safely move (and link) libflashplayer.so and libflashplayer.so.diverted to opt?

Yes, it is. And you only need to link to current library (you also may delete diverted, as you will never go back ? [still having it :)])

ymartin59 2014-01-25 20:51

Re: CSSU thumb and exhausted root file system space
 
I tried to disable most package repositories but it only affects APT.

So I diverted dpkg databases temporarily with:
Code:

mv /var/lib/dpkg /home/var-lib-dpkg
ln -s /home/var-lib-dpkg /var/lib/dpkg

After a successful one-pass upgrade to CSSU thumb and reboot, my rootfs has 57 Mb free, so I can move it back to its original position.
Many thanks for your help


All times are GMT. The time now is 00:07.

vBulletin® Version 3.8.8