You have to run dd if=/dev/sda4 of=/home/mint.bin bs=512 count=1 this command exactly after linux installation has finished without any reboots.
If installing ubuntu , once you have finished installing , click on
continue testing, mount the target drive and then make the copy of the sectors.
Refer my answer here : https://superuser.com/a/1603062/777184
If you don't have any data rescue reasons, you have two safe options to deal with MBR and GPT:
GParted which will change MBR or GPT (or both) and move the data if it is needed.
fdisk on Linux system and resize2fs before or after the partitions change.
But if you don't worry about the data (it is backed up/does not exist on this drive) you can try to ...
The first thing you must do is identify what type of boot system you have on the PC: The older, MBR; now sometimes called BIOS boot, schema, is a lot easier to deal with than the newer UEFI boot system on GPT formatted devices.
Go to my web page, An Examination of The Microsoft® Windows™ 7, 8 and 10 GPT 'Protective' MBR and EFI Partitions, and look at the ...