Re: dd on Familiar 0.8.4 doesn't accept "1K" as a value for "bs" option

From: Marcus Brown <marcusbrutus_at_internode.on.net>
Date: Sun, 18 Feb 2007 07:23:01 +1100

Altoine Barker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Maybe it is case sensitive. Try "k" instead of "K". HTH
>
> - -Altoine
>
> l:x wrote:
>> Hello,
>>
>> I'm trying to install Familiar onto my iPAQ H2210 using the guide
>> (http://handhelds.org/moin/moin.cgi/HpIpaqH2200LAB).
>>
>> I use Familiar 0.8.4 on a SD card to dump the backed up
>> PocketPC/Bootloader from CF to the SD card because I don't have a CF
>> reader in my laptop.
>>
>> Backing up PocketPC and the second bootloader to a CF using d2s (minicom
>> over USB craddly) was no problem. Dumping PocketPC to a file using dd
>> (on my iPAQ) either.
>>
>> The problem occured when trying to dump the second bootloader from the
>> CF to a file using "dd if=/dev/hda of=2ndstage.rescue bs=1K count=1280".
>> This returned "dd: Invalid number '1K'".
>>
>> So I checked the manual and it states that you can use a number followed
>> by K, so I don't get it why it returns an error.
>>
>> I suppose that 1K equals 1024, so I used the following command instead:
>> "dd if=/dev/hda of=2ndstage.rescue bs=1024 count=1280".
>>
>> I hope this has the same result... Can anyone confirm this, please?
>>
>> Kind regards,
>> Niels R.
>>

marcus_at_h2215:~$ \
dd_units="xM c w b kB K MB M GB G T P E Z Y"; \
busybox_units="c w b k M G"; \
for unit in $dd_units $busybox_units; \
do echo "UNIT $unit"; \
dd if=/dev/zero bs=1$unit count=1 | \
dd of=/dev/null bs=1; \
done

UNIT xM
dd: invalid number `1xM'
0+0 records in
0+0 records out
UNIT c
1+0 records in
1+0 records out
1+0 records in
1+0 records out
UNIT w
1+0 records in
1+0 records out
2+0 records in
2+0 records out
UNIT b
1+0 records in
1+0 records out
512+0 records in
512+0 records out
UNIT kB
dd: invalid number `1kB'
0+0 records in
0+0 records out
UNIT K
dd: invalid number `1K'
0+0 records in
0+0 records out
UNIT MB
dd: invalid number `1MB'
0+0 records in
0+0 records out
UNIT M
1+0 records in
1+0 records out
1048576+0 records in
1048576+0 records out
UNIT GB
dd: invalid number `1GB'
0+0 records in
0+0 records out
UNIT G
dd: memory exhausted
0+0 records in
0+0 records out
UNIT T
dd: invalid number `1T'
0+0 records in
0+0 records out
UNIT P
dd: invalid number `1P'
0+0 records in
0+0 records out
UNIT E
dd: invalid number `1E'
0+0 records in
0+0 records out
UNIT Z
dd: invalid number `1Z'
0+0 records in
0+0 records out
UNIT Y
dd: invalid number `1Y'
0+0 records in
0+0 records out
UNIT c
1+0 records in
1+0 records out
1+0 records in
1+0 records out
UNIT w
1+0 records in
1+0 records out
2+0 records in
2+0 records out
UNIT b
1+0 records in
1+0 records out
512+0 records in
512+0 records out
UNIT k
1+0 records in
1+0 records out
1024+0 records in
1024+0 records out
UNIT M
1+0 records in
1+0 records out
1048576+0 records in
1048576+0 records out
UNIT G
dd: memory exhausted
0+0 records in
0+0 records out

M.
Received on Sat Feb 17 2007 - 15:23:13 EST

This archive was generated by hypermail 2.2.0 : Sat Feb 17 2007 - 15:24:20 EST