[BusyBox] dd permission denied problem!

Matt Kraai kraai at alumni.carnegiemellon.edu
Tue Jan 16 15:18:59 UTC 2001


On Tue, Jan 16, 2001 at 03:57:39AM -0800, kent robotti wrote:
> There's no problem with the 2.2.18 kernel,
> but with the 2.4.0 kernel there's this
> problem.
> 
> This is dd from the latest cvs bb.
> 
> dd if=/dev/zero of=/dev/null bs=1k count=1
> 
> dd: /dev/null: permission denied
> 
> losetup /dev/loop0 foo
> dd if=/dev/zero of=/dev/loop0 bs=1k count=1
> dd: /dev/loop0: permission denied
> 
> There's no problem using the gnu dd with
> kernel 2.4.0.

I'll assume you've checked that the permissions of /dev/null
and /dev/loop0 allow write access.  Given that, my guess is that
the ftruncate call is failing.  Would you please test again,
adding conv=notrunc to the command line?

Matt





More information about the busybox mailing list