df, mount and tmpfs - no disk usage stats
Natanael Copa
natanael.copa at gmail.com
Sat Jul 7 07:24:12 UTC 2007
On Fri, 2007-07-06 at 20:32 +0000, ross beazley wrote:
> Hi,
>
> im not sure this is the correct place to post as it could be some
> other system issue. I am trying to build an embedded system using
> busybox as the core of the server. I am not building against uclibc
> but the normal glibc (version 2.3.6). The problem I am having is with
> a tmpfs not showing how much free space there is, or infact how much
> space is used. I have a printer spool directory mounted there (its a
> samba print server), but its not working because the df check is
> failing :-/
>
> Iam using a 2.6.16.27 kernel and version 1.5.0 of busybox.
>
> Ive been googling to death for the last few days but cant find any
> hint as to what may be the problem.
>
> Ive mounted the tmpfs with a size option.
>
> The root fs is a squashfs and is monted in an initramfs and
> switch_rooted into.
>
> I need to use tmpfs as the writable parts of the system
>
> No tmpfs is mounted during the initramfs stage.
>
> I am able to write stuff into the tmpfs mounts.
>
> I dont really know where to start, from what i have seen in other
> busybox posts tmpfs is showing disk usage stats....
I run root as tmpfs on my uclibc/busybox distro.
> I must be doing something mega stoopid that ive totally overlooked it
>
Is /etc/mtab support enabled in busybox?
Is /proc is mounted?
Try to create a symblink: ln -s /proc/mounts /etc/mtab
Natanael
More information about the busybox
mailing list