Jump to: navigation, search

Linux Mint: Disk image

182 bytes added, 16 January
Instructions for disk image preparation:
1. * Obtain Linux workstation PC. Any recent Linux distribution is ok 2. * Open the terminal and print current partitions
$ cat /proc/partitions
3. * Attach the disk you are going to clone to the workstation PC and print with some suitable adapter (for example M.2 SATA SSD to USB 3.0 adapter)* Print detected partitions again:
$ cat /proc/partitions
In the example above attached disk named /dev/sdf and it has 4 partitions: /dev/sdf1, /dev/sdf2, /dev/sdf3, /dev/sdf4
4. * Open the terminal and save disk layout using fdisk tooland blkid tools:
$ echo -e "O\nfdisk.layout\nq\n" | sudo fdisk /dev/sdf
# review fdisk.layout file
$ cat fdisk.layout
label: dos
/dev/sdf3 : start= 6055936, size= 194560, type=4
/dev/sdf4 : start= 6250496, size= 976896, type=83
5. Open the terminal and save disk layout using blkid tool:<pre>$ sudo blkid /dev/sdf* -s UUID -s TYPE > blkid.layout # review blkid.layout file
$ cat blkid.layout
/dev/sdf1: UUID="34b4205b-d2b9-4e50-9ea1-c559fdab97d3" TYPE="ext4"
6. * Ensure disk partitions are unmounted (on some systems they can be mounted automatically)<pre>$ sudo umount /dev/sdf*</pre> * Save filesystem from each disk partition using partclone tool and compress using lz4 tool.
Partclone tool supports ext2/3/4, ntfs, fat and many other filesystem types, you can clone disks with Linux or Windows installations
Install required cloning software: "liblz4-tool" and "partclone"
$ sudo partclone.ext4 -c -s /dev/sdf4 | lz4 > part4.ext4.partclone.lz4
7. * Calculate md5 for files you've prepared
$ md5sum *.layout part*.partclone.lz4 > md5sum
8. * Send us the fdisk.layout, blkid.layout, part*.partclone.lz4 files and the md5 file