df -a

Clem Taylor clem.taylor at gmail.com
Tue Feb 26 21:31:55 UTC 2008


On Thu, Nov 15, 2007 at 3:44 AM, Denys Vlasenko
<vda.linux at googlemail.com> wrote:
>  I removed special-casing of rootfs and /dev/root from df.

This is causing problems for my startup scripts in my attempted move
to 1.9.1. I was using df to map '/' to the mounted device
(/dev/mtdblock0 or /dev/mtdblock1). With the new df, '/' shows up
twice once as rootfs and once as /dev/root. I think the device lookup
and special case handling of '/' was actually useful. I still haven't
found an acceptable workaround to discover this mapping.

busybox 1.9.1 df:
Filesystem                Size      Used Available Use% Mounted on
rootfs                   14.0M     11.1M      2.9M  79% /
/dev/root                14.0M     11.1M      2.9M  79% /
/dev/mtdblock3          164.0k    164.0k         0 100% /identity
/dev/mtdblock4            3.3M    320.0k      2.9M  10% /nv

busybox 1.5.0.svn df:
Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock0           14.0M     10.6M      3.4M  76% /
/dev/mtdblock3          164.0k    164.0k         0 100% /identity
/dev/mtdblock4            3.3M    292.0k      3.0M   9% /nv

2.6.24 /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / jffs2 ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/mtdblock3 /identity cramfs ro 0 0
/dev/mtdblock4 /nv jffs2 rw 0 0



More information about the busybox mailing list