2009年10月26日 星期一

Use ntfs-clone to backup to / restore from an image

==== save image ======
robert@robert-desktop ~/Test $ sudo ntfsclone --save-image --output clonentfs.img /dev/sdb2
ntfsclone v2.0.0 (libntfs 10:0:0)
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 8044322816 bytes (8045 MB)
Current device size: 8044323840 bytes (8045 MB)
Scanning volume ...
100.00 percent completed
Accounting clusters ...
Space in use : 864 MB (10.7%)
Saving NTFS to image ...
100.00 percent completed
Syncing ...

====== restore =========
robert@robert-desktop ~/Test $ sudo ntfsclone --restore-image --overwrite /dev/sdb2 clonentfs.img
ntfsclone v2.0.0 (libntfs 10:0:0)
Ntfsclone image version: 10.0
Cluster size : 4096 bytes
Image volume size : 8044322816 bytes (8045 MB)
Image device size : 8044323840 bytes
Space in use : 864 MB (10.7%)
Offset to image data : 56 (0x38) bytes
Restoring NTFS from image ...
100.00 percent completed
Syncing ...

==== Error if you restore a smaller partition =====
robert@robert-desktop ~/Test $ sudo ntfsclone --restore-image --overwrite /dev/sdb2 clonentfs.img
ntfsclone v2.0.0 (libntfs 10:0:0)
ERROR: Output device is too small (3708230144) to fit the NTFS image (8044323328).

沒有留言:

張貼留言