Skip to Content.
Sympa Menu

baslinux - Re: [BL] BL3.40 swapfile unknown option dd if=/dev/zero

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: "Sheldon Isaac" <SheldonIsaac AT MyRealBox.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] BL3.40 swapfile unknown option dd if=/dev/zero
  • Date: Tue, 07 Feb 2006 21:43:12 -0500

Folks, sorry to quote all this, but didn't want to risk confusion. See
bottom.

On 8 Feb 2006 at 2:17, sindi keesan wrote:
> On Wed, 8 Feb 2006 3aoo-cvfd AT dea.spamcon.org wrote:
>
> > sindi keesan wrote:
> >>
> >> dd if=/dev/zero of=swapfile bs=1024 count=32k
> >> The dd of BL3.40 is busybox and it did not work.
> >> unknown option dd if=/dev/zero
> >
> > I just tried it (in BL 3.40) and it works fine.
> > I suspect you made a typographical error.
>
> I just tried it again, from / on the Toshiba laptop, typed as above, and I
> made sure it is 'if=/dev/zero ...' (not \dev\zero...) and it is still an
> unknown option.
>
> Then I did a 'which dd' and it is in /bin (symlink to busybox). I did a
> cd to /bin and then './dd if=/dev/zero ....' and it worked.
> 'set' shows that bin is on the path and there is only that one dd.
>
> Why would dd not work from / in BL3.40? Is this some sort of quirk of
> busybox 1.01? Please try dd in / yourself. Other busybox programs that
> I tried work from / (telnet, route, wc, uname...).
>
> I was able to make the BL2 swapfile while in /. I will move it there
> unless it ought to be somewhere else, and point rc at it there.
>
> >> is there some other way to make a swapfile with BL3 itself other
> >> than adding a larger dd?
>
> > I just made a swapfile in BL3 using the existing dd.
>
> What directory were you in at the time? dd also does not work from /etc .

I booted BL 3.40, and changed to /

(By the way, 'which dd' says it's in /bin (symlink to busybox), just as you
found)

Then I did dd if=/dev/zero of=swapfile bs=1024 count=32k and ran out of
space. ( swapfile was about 28Mb)

So I deleted swapfile and changed the command to something like

dd if=/dev/zero of=swapfile bs=1024 count=20k

and it said something-or-other records in, something bla bla out.

And swapfile was there, about 20Mb ?

All this was while in /

I didn't check the path, but think it's still the original one of 3.40

Thanks,
Sheldon







Archive powered by MHonArc 2.6.24.

Top of Page