no output from df
Stuart Hughes
stuarth at freescale.com
Tue Aug 15 10:32:33 UTC 2006
On Tue, 2006-08-15 at 11:32 +0200, Bernhard Fischer wrote:
> On Thu, Aug 03, 2006 at 02:05:18PM +0100, Stuart Hughes wrote:
> >
> >I'm using busybox-1.1.3 on powerpc board that is booted with an nfs root
> >filesystem and is running devfs (devfsd is started before mounting
> >filesystems).
> >
> >If I do a df, there is no output other than:
> >
> ># df
> >Filesystem 1k-blocks Used Available Use% Mounted on
[snip]
> >Does anyone know how to fix this?
>
> http://bugs.busybox.net/view.php?id=894
> http://bugs.busybox.net/view.php?id=145
>
> Please let me know what you came up with.
>
Hi Bernhard,
I think I'd still have a problem, even with the patch suggested if
id-894 was applied.
I submitted a patch to the list a little while back (to 1.1.3) which
looks like:
--- busybox-1.1.3/coreutils/df.c 2006-03-22 21:16:21.000000000 +0000
+++ busybox-1.1.3.modified/coreutils/df.c 2006-08-04
15:56:07.000000000 +0100
@@ -131,7 +131,7 @@
/* Adjusts device to be the real root device,
* or leaves device alone if it can't find it */
if ((device = find_block_device("/")) == NULL) {
- goto SET_ERROR;
+ device = "/dev/root";
}
}
The idea is even if no lookup can be found for /, a default of
"/dev/root" will be provided so there is some output.
I needed this because on the systems I'm using /dev/root seems to get
obscured (and never replaced) when devfs (or udev) start running.
Regards, Stuart
More information about the busybox
mailing list