i don't think that's a bug.

On 11/11/2012 01:40 PM, Kurt Roeckx wrote:
> I had a failing disk and wanted to put things on a new disk that
> happens to be smaller.  I started by creating a clone, and then
> tried to restore it on the new disk.
> 
> I get the message: "ERROR: Output device too small (X) to fit the
> NTFS image (Y)."

which is sensible, you cannot 'apply' a clone on a physically too small
disk.

> So then I tried to run ntfsresize on the image file, which also
> fails.

did you use a lo device and let ntfsresize operate on the device node?

or, if it's not for a forensic use case (in which you simply wouldn't
use a smaller than the original disk anyway in the first place), in your
situation it would be better to format the new disk and copy (as in 'cp
-a', not as in 'dump') the contents from the loop-mounted image over.

> So I would like to have an option to either resize on restore on
> resize an image file.

in the light of kiss, i don't think it makese sense to add such
functionality in ntfsclone as the desired behaviour can be easily
acchieved by combining standard linux mechanisms.

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baum...@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to