bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-ddrescue] Improvement: Avoid rescuing empty space


From: Antonio Diaz Diaz
Subject: Re: [bug-ddrescue] Improvement: Avoid rescuing empty space
Date: Thu, 26 Dec 2024 19:38:44 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

Hi Robert,

Robert Heel wrote:
Thanks for the great project, it saved many bytes :-)

You are welcome! :-)

Huge HDDs are often not completely used, and the unused space is often
filled with zeros.
What about a config option to skip sectors filled with zeros (in the
same way skipping bad sectors) to avoid wasting time rescuing empty space?

As Robert Trevellyan points out, ddrescue already provides the option '--domain-mapfile'. All you need to do is to create a domain mapfile with a tool like partclone[1], and pass it to ddrescue using --domain-mapfile.

Of course, for this to work, the file system must not be (too) corrupt, or partclone won't be able to create the domain mapfile.

[1] https://partclone.org/features/

Hope this helps.

Merry Christmas,
Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]