User:Caze

(rootfs size problems)
(rootfs size problems)
Line 2: Line 2:
== rootfs size problems ==
== rootfs size problems ==
-
The filesystem rootfs, mounted in /, is a speciel partition of 227,8 mb containing some preinstalled programs, global configuration info and data. Some apps from "maemo extra devel" will also install there. A notable example is Abiword, which currently uses up 10mb on rootfs. You can check how much space is consumed totally by entering "df -h" in xTerminal (usually the first line of output). Even better, use storageuse, which shows a red circle and via "Scan Packages" function shows also which apps use what, where rootfs usage is in red. When you reflash, rootfs will be reset also (of course). But you would rather try the methods suggested in [[Free up rootfs space]], e.g., having rootsh installed, in xTerminal:
+
The filesystem rootfs, mounted in /, is a speciel partition of 227,8 mb containing some preinstalled programs, global configuration info and data. Some apps from "maemo [[Extras-devel|extra devel]]" will also install there. A notable example is Abiword, which, sadly being unoptified yet, [http://talk.maemo.org/showpost.php?p=568907&postcount=32 currently] uses up 10mb on rootfs. You can check how much space is consumed totally by entering "df -h" in xTerminal (usually the first line of output). Even better, use storageuse, which shows a red circle and via "Scan Packages" function shows also which apps use what, where rootfs usage is in red. When you come close to 100%, a lot of mischief can happen, e.g., you may get "write error - write (28 no space left on device)" when trying to access extras devel in Program Manager.
 +
 
 +
How to free space? When you reflash, rootfs will be reset also (of course). But you would rather try the methods suggested in [[Free up rootfs space]], e.g., having [[Root_access#rootsh|rootsh]] installed, in xTerminal:
  root
  root
Line 8: Line 10:
  apt-get autoclean
  apt-get autoclean
-
There is also a nice script by [[User:Tanner]], which i have modified to include some more directories:
+
There is also a nice script by [[User:Tanner]] (see also [http://talk.maemo.org/showpost.php?p=429142&postcount=6 another one], and a [http://sumoudou.org/%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ARepartition%20the%20Nokia%20N900.html more radical] repartitioning method), which i have modified to include some more directories:
  #!/bin/sh
  #!/bin/sh
Line 40: Line 42:
  chmod +x thisscript.sh
  chmod +x thisscript.sh
  ./thisscript.sh
  ./thisscript.sh
 +
 +
== remote desktop ==
 +
ssh, telnet, vnc (multiple alternatives) and rdesktop (for w2k/nt) work (among others, i suppose). also, logmein [http://community.logmein.com/logmein/board/message?board.id=30&view=by_date_ascending&message.id=776#M776 should].

Revision as of 16:08, 20 March 2010

Here I will note some things concerning diverse stuff around maemo on n900 that might come in handy later for me. Or maybe for you.

rootfs size problems

The filesystem rootfs, mounted in /, is a speciel partition of 227,8 mb containing some preinstalled programs, global configuration info and data. Some apps from "maemo extra devel" will also install there. A notable example is Abiword, which, sadly being unoptified yet, currently uses up 10mb on rootfs. You can check how much space is consumed totally by entering "df -h" in xTerminal (usually the first line of output). Even better, use storageuse, which shows a red circle and via "Scan Packages" function shows also which apps use what, where rootfs usage is in red. When you come close to 100%, a lot of mischief can happen, e.g., you may get "write error - write (28 no space left on device)" when trying to access extras devel in Program Manager.

How to free space? When you reflash, rootfs will be reset also (of course). But you would rather try the methods suggested in Free up rootfs space, e.g., having rootsh installed, in xTerminal:

root
apt-get clean
apt-get autoclean

There is also a nice script by User:Tanner (see also another one, and a more radical repartitioning method), which i have modified to include some more directories:

#!/bin/sh
# N900 script to safely free space on rootfs
# (c) 2010 by Thomas Tanner <tanner@maemory.com>, modified by Caze (http://wiki.maemo.org/User:Caze)
# licensed under GPLv3
# move root stuff to /home
dirs="usr/share/icons usr/share/nokia-maps usr/share/pixmaps usr/share/hildon-welcome usr/share/themes usr/share/fonts usr/share/locale usr/lib/locale var/lib/apt"
#optional: var/lib/dpkg
if test -d /home/var/cache/apt; then
  # keep existing apt cache
  rm -rf /var/cache/apt
  ln -s /home/var/cache/apt /var/cache/apt
else
  dirs="$dirs var/cache/apt"
fi
(cd / && du -sc $dirs)
for d in $dirs; do
    test -L /$d && continue
    echo moving /$d
    rm -rf /home/$d
    mkdir -p /home/$d
    cp -a /$d /home/$d/..
    rm -rf /$d
    ln -s /home/$d /$d
done

i suggest you copy this to in some texteditor on your pc, save it, copy it to n900 connected via usb (don't save on fat partition on sd card but on ext3 partition somewhere else), disconnect, having installed rootsh, start xTerminal on n900, cd to where you saved the script,

root
chmod +x thisscript.sh
./thisscript.sh

remote desktop

ssh, telnet, vnc (multiple alternatives) and rdesktop (for w2k/nt) work (among others, i suppose). also, logmein should.