You can use
It is worth adding the command for listing a single partition since this is not obvious without some knowledge of
On linux, you can check this via the
If you see something that includes:
You have a MBR style disk. Don't worry, this did not do any harm.
If you don't see this warning, you have a GPT disk, or a hybrid GPT/MBR disk. The later are used mostly on Apple machines intended to dual-boot versions of MS Windows which do not support GPT.
They may also be used in other situations where support for both styles is required.
As the OS was not specified, here is FreeBSD way of doing things.
All is done through the
To know more, all is in the
Above, I've got a drive with hybrid GPT+MS-DOS partitioning. In that case, the Linux kernel ignores the MS-DOS partitioning, which is why
That udisks-part-id tool is used to populate the udev database. So if you've got