I've been using parted-magic to backup my computers' system disks for a while.
So far I've been using either sfdisk or sgdisk for saving the partition table; most of the time, if sfdisk fail I'm using sgdisk and everything works, but I got a new notebook with a 32 GB flash storage (seen as /dev/mmcblk0) and I cannot really understand what is going on.
As you can see in the screen capture bellow, sfdisk did work, but the label of the device is "GPT"... So I tried using sgdisk, which ended up in a lot of "Error 38 when determining sector size"
I thought that because the "disk" was small, they had used an "old style" MBR partition table, but after some googling I tried the command "gdisk -l" and it says it does have a GPT partition table.
To make things a little more weird, now "sgdisk --backup" seems to work without any error...
So my questions are:
- What is the best way to determine the type of partition table of a new computer (and to backup/restore it)?
- Why is there no longer "error 38" messages with sgdisk? (did I accidentally modify something on the partition?)
- How can I check that a sgdisk backup file is correct? (with sfdisk, this was an ascii file so you could just look into it, but it doesn't seems to work with sgdisk)
- Bonus: What is the difference between sgdisk and gdisk?

