View Single Post
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#10
@ pichlo:
Here is the snippet from a ssh session running that script:
Nokia-N900:~# cd /home/user/MyDocs/Recovery/
Nokia-N900:/home/user/MyDocs/Recovery# sh movetoopt.sh
rootfs before:
Filesystem Size Used Available Use% Mounted on
rootfs 227.8M 136.0M 87.5M 61% /
0 usr/share/icons
7448 usr/share/nokia-maps
0 usr/share/fonts
12860 usr/share/locale
23352 usr/lib/locale
0 var/lib/apt
0 usr/share/themes
25648 var/lib/dpkg
0 var/cache/apt
69308 total
moving /usr/share/nokia-maps
moving /usr/share/locale
moving /usr/lib/locale
moving /var/lib/dpkg
success
rootfs after (after a reboot the actual free space will be shown):
Filesystem Size Used Available Use% Mounted on
rootfs 227.8M 120.6M 103.0M 54% /

Nokia-N900:/home/user/MyDocs/Recovery# reboot & exit
Connection to 192.168.49.249 closed.
root@asterix:/home/micha# n900


BusyBox v1.23.1 (Debian 1.23.1power2+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# cd /home/user/MyDocs/Recovery/
Nokia-N900:/home/user/MyDocs/Recovery# sh movetoopt.sh
rootfs before:
Filesystem Size Used Available Use% Mounted on
rootfs 227.8M 111.5M 112.1M 50% /
0 usr/share/icons
0 usr/share/nokia-maps
0 usr/share/fonts
0 usr/share/locale
0 usr/lib/locale
0 var/lib/apt
0 usr/share/themes
0 var/lib/dpkg
0 var/cache/apt
0 total
success
rootfs after (after a reboot the actual free space will be shown):
Filesystem Size Used Available Use% Mounted on
rootfs 227.8M 111.5M 112.1M 50% /
Nokia-N900:/home/user/MyDocs/Recovery#

All is fine with the localisation here.

The real sizes of above directories following symlinks:
Nokia-N900:~# du -Hs /usr/share/icons/ /usr/share/nokia-maps/ /usr/share/fonts /usr/share/locale /usr/lib/locale /var/lib/apt /usr
/share/themes /var/lib/dpkg /var/cache/apt/
6896 /usr/share/icons/
8296 /usr/share/nokia-maps/
3224 /usr/share/fonts
du: /usr/share/locale/it/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/nl/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/cs/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/pl/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/fr/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/de/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/sv/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/vi/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/ro/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
du: /usr/share/locale/zh_CN/LC_MESSAGES/libgpg-error.mo: Too many levels of symbolic links
15300 /usr/share/locale
23740 /usr/lib/locale
42028 /var/lib/apt
8892 /usr/share/themes
26004 /var/lib/dpkg
48564 /var/cache/apt/

Last edited by michaaa62; 2015-06-15 at 11:30. Reason: Readability
 

The Following User Says Thank You to michaaa62 For This Useful Post: