[syslinux] GUID of a partition from Linux
H. Peter Anvin
hpa at zytor.com
Wed Nov 5 09:03:16 PST 2008
Geert Stappers wrote:
> Op 20081104 om 19:12 schreef Stewart Adam:
> <bigsnip/>
>> BTW - Is there an easy way to get the GUID of a partition from Linux?
>
>
> $ cd /dev/disk
> $ ls
> by-id by-label by-path by-uuid
> $ file by-uuid/*
> by-uuid/0ba23de7-4c30-48e0-951e-58699db87a05: symbolic link to `../../hda9'
> by-uuid/225216d1-43fd-4cfb-9e95-ce835a36875a: symbolic link to `../../hda1'
> by-uuid/772d7b15-c066-44d7-91d1-b34ee73b29e9: symbolic link to `../../hda8'
> by-uuid/a1c85cc8-3ca1-4eae-976a-55a4106513f0: symbolic link to `../../hda6'
> by-uuid/b5b47cca-3a22-439c-8e0c-408d8b37156d: symbolic link to `../../hda5'
> $
>
> That is not GUID, but I hope it helps,
> especial the development of syslinux on GPT systems.
>
No, that is the UUID/GUID of the filesystem inside partition, not of the
partition itself. You need a GPT partition table parser for that (which
is easy enough to write.)
-hpa
More information about the Syslinux
mailing list