From: lace <> Date: Tue, 6 Jun 2006 08:54:01 +0000 (+0000) Subject: Fixed size requirements. X-Git-Url: http://git.jankratochvil.net/?p=badblock-guess.git;a=commitdiff_plain;h=b1d726be4e97b55f4390e60873596659688d8e7d Fixed size requirements. - As bugreported by: Jeff --- diff --git a/README b/README index b02fc61..87a3a1d 100644 --- a/README +++ b/README @@ -56,10 +56,15 @@ Possible device cases (watch out for vs. differences!): drive in the system with the exactly same partition size is recommended - is a file: File must exist but it will be enlarged when - needed. Commands: - rm -f /tmp/hdc1.img; touch /tmp/hdc1.img - are recommended to specify file "/tmp/hdc1.img" for + is a file: File must exist and it must be at least the size + as . If it is larger, the trailing data will remain + unchanged. You can create blank file of size 123456789 by: + dd if=/dev/zero of=/tmp/outimg bs=1 count=1 seek=$[123456789-1] + The size of the original can be queried by: + hdparm -g + Be aware the size "sectors" is incorrectly the size in bytes, + depending on your Linux kernel version. dd(1) command above + requires the bytes size (use "bs=512" to use sectors value). All the numbers are always expressed as sector (that means 512 bytes) number/count!