View Single Post
Old 04-06-2012, 01:29 PM   #136
Junior Member
drogon began at the beginning.
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: kindle touch
Originally Posted by geekmaster View Post
It should have wiped the entire partition before the error message. If you do not want the error message, the quick and dirty way is to add 2>/dev/null to the end of the command.

The "right" way is more complicated (which I try to avoid whenever possible), and requires that you find out how many blocks your destination has. There are a number of ways to do that. Using "fdisk -l" is one of them (but those are 512-byte blocks, so you have to divide by 8 to get 4K blocks), or you can use "df" (but that gives 1K blocks so you need to divide by 4). Then you need to add the computed block count to the "count=" parameter of "dd".

As you can see, it is a lot more complicated than my one-line answer, which just ignores the "normal" error when the device gets full.

Another way would be just to write enough to "kill" the partition format, such as "count=1000" or something...

The point is to make the partition no longer mountable, so that the startup scripts will reformat that partition during the next reboot.

I do :
dd if=/dev/zero of=/dev/mmcblk0p3 bs=4K count=8184((End - Start)*8)
After doing that,it's working.However,I can't update my Kindle.It showed error 007.
drogon is offline   Reply With Quote