Changes between Version 15 and Version 16 of BadBlockHowto


Ignore:
Timestamp:
Mar 30, 2017, 9:41:25 AM (7 years ago)
Author:
Christian Franke
Comment:

Arithmethic Expansion $((expression)) is part of POSIX at least since 1997

Legend:

Unmodified
Added
Removed
Modified
  • BadBlockHowto

    v15 v16  
    10001000[=#footnote4 [4]] Important: set blocksize range is arbitrary, but do not only test a single block, as bad blocks are often social. Not too large as this test probably has not 0% risk.
    10011001
    1002 [=#footnote5 [5]] The rather awkward `expr 484335 + 100` (note the back quotes) can be replaced with `$((484335+100))` if the `bash` shell is being used. Similarly the last argument can become `$((484335-100))`.
     1002[=#footnote5 [5]] The rather awkward {{{`expr 484335 + 100`}}} (note the back quotes) can be replaced with `$((484335+100))` if `bash` or any [http://pubs.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_006_004 POSIX 1997+] compatible shell is being used. Similarly the last argument can become `$((484335-100))`.
    10031003
    10041004[=#footnote6 [6]] `testdisk` scans the media for the beginning of file systems that it recognizes. It can be tricked by data that looks like the beginning of a file system or an old file system from a previous partitioning of the media (disk). So care should be taken. Note that file systems should not overlap apart from the fact that extended partitions lie wholly within a extended partition table allocation. Also if the root partition of a Linux/Unix installation can be found then the `/etc/fstab` file is a useful resource for finding the partition numbers of other partitions.