meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| datarecovery [2016/08/16 21:13] – created niziak | datarecovery [2025/01/31 10:08] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | 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> | <code bash> | ||
| - | safecopy | + | hdparm |
| - | safecopy | + | hdparm |
| - | safecopy | + | hdparm |
| + | echo 1 > / | ||
| </ | </ | ||
| - | ===== on usb drives | + | ===== fast erase whole disc ===== |
| - | Not all USB adapters can handle SATA low level operations. | + | |
| + | search tags: " | ||
| <code bash> | <code bash> | ||
| - | safecopy | + | sudo hdparm |
| + | sudo hdparm --user-master u --security-erase ABC /dev/sdX | ||
| + | |||
| + | # check if device security is "not enabled" | ||
| + | hdparm -I /dev/sdX | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ====== sata hotplug | ||
| + | |||
| + | ===== Plug ===== | ||
| + | |||
| + | <code bash> | ||
| + | echo 0 - 0 > / | ||
| + | </ | ||
| + | |||
| + | Rescan all ports: | ||
| + | < | ||
| + | exec tee / | ||
| + | </ | ||
| + | ===== Unplug ===== | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | |||