Yaouh 0.5 out
Helge Hafting
helge.hafting at hist.no
Tue Mar 3 16:42:12 CET 2009
Carlo Minucci wrote:
> Richy ha scritto:
>
>> I think the problem ist "/" because
>>
>> "root at om-gta02 ~ $ df | tr -s ' ' | cut -d \ -f5 -s | tail -n +2
>> 44%
>> 0%
>> 0%
>> 70%
>> 1%
>> "
>
> maybe shr have different filesystem?
> past me the ouput of a simple df
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 252544 105564 146980 42% /
none 60400 48 60352 0% /dev
shmfs 60400 0 60400 0% /dev/shm
/dev/mmcblk0p1 7570580 2105620 5083420 29% /media/card
volatile 60400 116 60284 0% /var/volatile
But "df /" fails:
root at om-gta02 ~ $ df /
Filesystem 1K-blocks Used Available Use% Mounted on
Anyway, what is it for?
yaouh don't usually eat much disk space. It downloads a lot, but only
overwrites existing files. Well, the map may get somewhat more complex
with time, needing more space.
If you try to display free space on the device holding maps, don't use
"/". Many people have their maps on some partition on the sd card.
Yaouh already know the map directory, and can run "df" on that.
In my case:
$ df /media/card/kart
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mmcblk0p1 7570580 2105620 5083420 29% /media/card
The map directory is not a mount point, but "df" figures it out on its own.
If you need a report for "/", you have to extract it from "df" run
without parameters. Somehow, it fails on any directory on the root
filesystem.
Helge Hafting
More information about the community
mailing list