I would like to have some details about how the --retrim option works in gnu ddrescue.
Does it behave the same way as the regular trimming?
AFAIK, in the first trimming phase, the utility goes to the first sector and to the last sector and read the sectors one by one forward and backward until it reaches bad sectors.
If --retrim behaves the same way, i don't see any advantage since the same areas would be marked as bad.
Asked
Active
Viewed 2,817 times
1
Othman
- 155
- 2
- 6
1 Answers
3
gddrescue normally trims once and won't retry by default if you ran the gddrescue command again with the same log file.
The --retrim flag just tells gddrescue to try trimming again. The retry might result in more successful trims, according to the official documentation:
--retrimMark all failed blocks inside the rescue domain as non-trimmed before beginning the rescue. The effect is similar to '
--retry-passes=1', but the bad sectors are tried in a different order, making perhaps possible to rescue some of them.
Deltik
- 19,603
gddrescuehave defined a feature called "scraping". You can read about it in the documentation. – Deltik Sep 28 '15 at 07:55