check disk usage
Tino Keitel
tino.keitel at innominate.com
Fri Oct 18 04:25:14 EDT 2002
On Thu, Oct 17, 2002 at 13:58:46 -0700, Xiaogeng (Shawn) Jin wrote:
> Hi,
>
> My root filesystem is jffs2, which is mounted by kernel getting booting
> parameters "root=/dev/mtdblock3 rw" from the command line. I noticed
> that running 'df -k' only shows the usage of those devices that are
> mounted explicitly by 'mount' command but not the root filesystem. The
> following is the result of 'df -k' running on busybox-0.60.2.
>
> # df -k
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/mtdblock0 16384 688 15696 4% /usr
> /dev/mtdblock1 16384 5836 10548 36% /home
> /dev/mtdblock2 16384 652 15732 4% /var
>
> On a regular linux system, e.g. RedHat, we do get information about the
> usage of the root filesytem, right?
>
> Is this a problem? If it's is, is it related to jffs2 or busybox?
Have you checked the strace output of df -k? As far as I can see, it
looks in /proc/mounts. Maybe this is of some help to you.
Regards,
Tino
--
tino.keitel at innominate.com
dipl.-inf. Innominate Security Technologies AG
software engineer networking people
tel: +49.30.6392-3308 http://www.innominate.com/
More information about the linux-mtd
mailing list