Changes

Jump to: navigation, search

Linux Mint: Disk image

268 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
<pre>
$ cat /proc/partitions
</pre>
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:
<pre>
$ cat /proc/partitions
8 84 488448 sdf4
</pre>
* In the example above attached disk named /dev/sdf and it has 4 partitions: /dev/sdf1, /dev/sdf2, /dev/sdf3, /dev/sdf4* We will use the name /dev/sdf in this guide, it can be different in your case4. <br>* Open the terminal and save disk layout using fdisk tooland blkid tools:
<pre>
$ 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
</pre>
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"
</pre>
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
</pre>
7. * Calculate md5 for files you've prepared
<pre>
$ md5sum *.layout part*.partclone.lz4 > md5sum
</pre>
8. * Send us the fdisk.layout, blkid.layout, part*.partclone.lz4 files and the md5 file
352
edits