Adalbert Hanßen wrote:
Jean-Pierre,
thank you for your analysis. Yes and unfortunately, the partition on
my backup disk is formatted as vfat in order to make it accessible
from Windows and from Linux. fsarchiver did not encounter such
problems since it always splits its result files in pieces of at most
2.1GB.
A year ago I made an image of my Windows-10-partition using
fsarchiver. (Fortunately I never needed to backup from it.) This image
consisted of 7 files, 14.4GB altogether.
fsarchiver could make this image, unlike now with the current state of
Windows-10 where it stumbles upon some strange files and directories
which ntfs-3g does not cope with.
Unfortunately I have not seen an option of ntfsclone to split its
output into a bunch of files with consecutive numbers, similar to the
way fsarchiver does it.
I have heard about a command split. Would it work to pipe the output
like this
sudo ntfsclone --save-image --output - /dev/sda2| split -b 2G -
W530_sda2_Windows-10-System_2019-09-24.ntfsclone
*Would this be the right command for that purpose?* (I have never used
split before and of course I want to be sure that the created image
really works)
I have not used split either since it was required for posting
files through mail (which was initially limited to 50K).
I made a try, and it apparently works :
sudo ntfsclone --save-image --output - /dev/sda2 | gzip | split -b 2G -
sda2.clone.gz
this will produce several files : sda2.clone.gza, sda2.clone.gzb, etc.
which you can cat for restoring :
cat sda2.clone.gz* | gzip -d | sudo ntfsclone -r -o /dev/sda2 -
Note : I have no experience restoring Windows to a different
device. There might be driver issues for booting.
Would you please share your findings ?
Jean-Pierre
Kind regards
Adalbert Hanßen
Am 24.09.19 um 14:03 schrieb Jean-Pierre André:
Adalbert Hanßen wrote:
I want to replace my hard disk by a SSD and therefore I want to
clone the Windows-10 partition of my double boot computer using
ntfsclone.
I tried to do so, basically using the command
sudo ntfsclone --save-image --output
W530_sda2_Windows-10-System_2019-09-24.ntfsclone /dev/sda2
I encounter these messages
ntfsclone v2015.3.14AR.1 (libntfs-3g)
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 104857595904 bytes (104858 MB)
Current device size: 104857600000 bytes (104858 MB)
Scanning volume ...
100.00 percent completed
Accounting clusters ...
Space in use : 36123 MB (34,4%)
Saving NTFS to image ...
100.00 percent completed
Syncing ...
ERROR(27): fflush: Die Datei ist zu groß
After it, there is a file
-rw-r--r-- 1 v v 4294967295 2019-09-24 09:58
W530_sda2_Windows-10-System_2019-09-24.ntfsclone
Does this file really contain an image on which I might rely?
Probably not. The output appears to be stuck at 4GB,
you probably used an output file system which is limited
to 4GB, such as vfat.
What is wrong here?
The expected output size is around 36GB, and you need
an output file system which supports such size. This means
virtually anything except vfat.
How to proceed?
If you are storing into a USB key (factory formatted as vfat),
reformat it as ntfs (or ext4, etc.).
You can also reduce the output size by compressing the output,
however as most Windows 10 system files are already
compressed, the compression rate will not get under 50%.
sudo ntfsclone --save-image --output - /dev/sda2 | gzip > sda2.clone.gz
As you target restoring to a SSD, remember to partition
the SSD with the same size as the original (204800000 sectors)
Jean-Pierre
Kind regards
Adalbert Hanßen
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel