When you restore (also booted from another operating system)Ĭhange directory to the top of the partition where you want to extract from the tarfile sudo tar -xvf /path-to/ You canĬreate a tarball, a tarfile of the whole file system,Ĭreate a new partition with a file system with the size that you wantĮxtract the directory tree with all the files from the tarball.īoot from another operating system, so that the partition to be copied is not active, and run tar with elevated permissions, for exampleĬhange directory to the top of the partition that you want to copy sudo tar -cvzf /path-to/. If you want a smaller size of the partition after the imaging and restore operation, you should work at the file level. It also means that the image will be smaller than if the free drive space is also copied.īut when you restore the content of the image into a partition, the target must be a partition of the same size, so if you want the size of the target smaller after the restore operation, you must use another method. Clonezilla is smart enough to copy only the blocks from the partition that are marked as used by the file system, which makes it faster than dd. You can use Clonezilla and create a Clonezilla image, which is a directory with a set of files, where the biggest files are compressed.
0 Comments
Leave a Reply. |