Other Partition UUID

I'm trying to set up a Grub Menuentry for Super Grub2 according to these instructions

Code:
menuentry "Super GRUB2 Disk" {
search --no-floppy --label boot --fs-uuid --set=root PUT-THE-UUID-PARTITION-HERE
set isofile=/boot/super_grub2_disk_hybrid_2.02s10-beta5.iso
loopback loop $isofile
configfile (loop)/boot/grub/loopback.cfg
}

Where, using FreeBSD, should I find the partition UUID? I'm assuming that the UUID would be the same under FreeBSD as Linux...
 
Look in /dev/gptid for the partition's UUID (or gpart list|fgrep uuid). But from that option --fs-uuid I guess you want the filesystem's UUID? That could be in the output of dumpfs(8) (for UFS) or zfs get guid <poolname/bootfs>.
EDIT P.S.: a zpool(8) also has an UUID.
 
Will I have a /dev/gptid on a Linux or FAT partition? or is there a place where all the UUIDs for all the partitions are stored?
 
I mainly use FreeBSD but I have Linux and Fat partitions...
gpart show da0:-
Code:
         40       1024    1  bios-boot  (512K)
       1064    4194304    2  freebsd-ufs  (2.0G)
    4195368   10485760    3  freebsd-ufs  (5.0G)
   14681128   10485760    4  linux-data  (5.0G)
   25166888        984       - free -  (492K)
   25167872      32768    5  linux-data  (16M)
   25200640   10485760    6  linux-data  (5.0G)
   35686400   20971520    7  linux-data  (10G)
   56657920  104857600    8  ms-basic-data  (50G)
  161515520    1048576    9  freebsd-ufs  (512M)
  162564096    2097152   10  freebsd-ufs  (1.0G)
  164661248    2097152   11  freebsd-ufs  (1.0G)
  166758400  104857600   12  freebsd-ufs  (50G)
  271616000   10485760   13  ms-basic-data  (5.0G)
  282101760    2097152   14  freebsd-ufs  (1.0G)
  284198912    8388608   15  freebsd-swap  (4.0G)
  292587520    4194304   16  freebsd-ufs  (2.0G)
  296781824  146800640   17  freebsd-ufs  (70G)
  443582464    2097152   18  linux-data  (1.0G)
  445679616    4194304   19  linux-data  (2.0G)
  449873920  175268488       - free -  (84G)
gpart show -r da0:-
Code:
         40       1024    1  21686148-6449-6e6f-744e-656564454649  (512K)
       1064    4194304    2  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (2.0G)
    4195368   10485760    3  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (5.0G)
   14681128   10485760    4  0fc63daf-8483-4772-8e79-3d69d8477de4  (5.0G)
   25166888        984       - free -  (492K)
   25167872      32768    5  0fc63daf-8483-4772-8e79-3d69d8477de4  (16M)
   25200640   10485760    6  0fc63daf-8483-4772-8e79-3d69d8477de4  (5.0G)
   35686400   20971520    7  0fc63daf-8483-4772-8e79-3d69d8477de4  (10G)
   56657920  104857600    8  ebd0a0a2-b9e5-4433-87c0-68b6b72699c7  (50G)
  161515520    1048576    9  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (512M)
  162564096    2097152   10  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (1.0G)
  164661248    2097152   11  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (1.0G)
  166758400  104857600   12  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (50G)
  271616000   10485760   13  ebd0a0a2-b9e5-4433-87c0-68b6b72699c7  (5.0G)
  282101760    2097152   14  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (1.0G)
  284198912    8388608   15  516e7cb5-6ecf-11d6-8ff8-00022d09712b  (4.0G)
  292587520    4194304   16  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (2.0G)
  296781824  146800640   17  516e7cb6-6ecf-11d6-8ff8-00022d09712b  (70G)
  443582464    2097152   18  0fc63daf-8483-4772-8e79-3d69d8477de4  (1.0G)
  445679616    4194304   19  0fc63daf-8483-4772-8e79-3d69d8477de4  (2.0G)
  449873920  175268488       - free -  (84G)

I read somewhere that '-r' shows UUID but it looks like a lot of theses partitions have the same value, so that doesn't sound right.
 
That's the UUID of the partition type. Please look ls -l /dev/gptid.
man gpart|fgrep -- '-r'
Code:
                   -r          Show raw partition type instead of symbolic
                               name.
 
Back
Top