meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
datarecovery [2016/08/17 08:17] – niziak | datarecovery [2025/01/31 10:08] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Data recovery ====== | ||
+ | |||
+ | <code bash> | ||
+ | hdparm -c0 /dev/sdi | ||
+ | hdparm -X1 /dev/sdi | ||
+ | hdparm -d0 /dev/sdi | ||
+ | echo 1 > / | ||
+ | </ | ||
+ | |||
+ | ===== fast erase whole disc ===== | ||
+ | |||
+ | search tags: " | ||
+ | |||
+ | <code bash> | ||
+ | sudo hdparm --user-master u --security-set-pass ABC /dev/sdX | ||
+ | sudo hdparm --user-master u --security-erase ABC /dev/sdX | ||
+ | |||
+ | # check if device security is "not enabled" | ||
+ | hdparm -I /dev/sdX | ||
+ | </ | ||
+ | |||
+ | |||
====== sata hotplug | ====== sata hotplug | ||
+ | |||
===== Plug ===== | ===== Plug ===== | ||
Line 14: | Line 37: | ||
<code bash> | <code bash> | ||
- | |||
- | |||
- | ====== safecopy ====== | ||
- | There are some predefined settings: | ||
- | * stage1: Preset to rescue most of the data fast, using no retries | ||
- | * stage2: Preset to rescue more data, using no retries but searching | ||
- | * stage3: Preset to rescue everything that can be rescued | ||
- | |||
- | In current working directory, safecopy will create files with badblocks map: stage# | ||
- | Typical usage is: | ||
- | <code bash> | ||
- | safecopy --stage1 /dev/source output.img | ||
- | safecopy --stage2 /dev/source output.img | ||
- | safecopy --stage3 /dev/source output.img | ||
- | </ | ||
- | |||
- | ===== on USB or erronous drives ===== | ||
- | To disable SATA low level operations: | ||
- | <code bash> | ||
- | safecopy --forceopen -L 0 --stage1 /dev/source / | ||
- | </ | ||
- | |||
- | ===== Continue interrupted copy ===== | ||
- | With -I parameter safecopy works in incremental mode. Position is detemined from //dest// file size. | ||
- | If //dest// is a block device parameter -c needs to be used: | ||
- | <code bash> | ||