bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] Suggestion: Image size vs. source size sanity check


From: Andrew Burgess
Subject: Re: [Bug-ddrescue] Suggestion: Image size vs. source size sanity check
Date: Wed, 20 Apr 2011 08:20:27 -0700

On 04/20/2011 07:44:25 AM, Burkart Lingner wrote:

Obviously, what I just described was clearly a usage error on my part. Nevertheless I think ddrescue could be improved to help users not to make the same mistake. It could read the size of the image from the log file and then, if it doesn't match the size of the source device, show a warning like "You said you'd like to image /dev/sda whose size doesn't match that of the existing image. Are you sure you want to continue? (y/n)"

there's also blkid that can help identify disks.
(its what newer distributions use to match disks to filesystems in /etc/fstab)
and a libblkid that makes it easy to use from C



reply via email to

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