------------------------------------------------ https://en.wikipedia.org/wiki/Universally_unique_identifier blkid provides UUID info in 5 fields: 8-4-4-4-12 # UUID 5 hexadecimal fields: 8-4-4-4-12 --> sudo blkid /dev/sda1: UUID="01234567-0123-0123-0123-0123456789ab" TYPE="swap" PARTUUID="600f5607-01" /dev/sda2: UUID="9dfb0ac4-3c93-4c88-9f0b-533ca7332efe" TYPE="ext4" PTTYPE="dos" PARTUUID="600f5607-2" /dev/sda3: UUID="41369f78-d14c-4423-b8f8-ef4bf91a66ff" TYPE="ext4" PARTUUID="600f5607-03" /dev/sdb1: UUID="d26018fa-6c45-4eff-b306-fef732f5f084" TYPE="ext4" PARTUUID="b30aafa3-eef5-4c79-ab5-704f18e4c2b8" TO CREATE a Filesystem with a UUID mkfs.ext4 -U 01234567-0123-0123-0123-0123456789ab /dev/sdb2 /etc/fstab: 01234567-0123-0123-0123-0123456789ab /files ext4 acl,user_xattr 1 1 ------------------------------------------------ root@linuxbox [/boot/grub2] ------------------------------------------------ --> history 1 2016-12-07 09:10:27 cd /boot/grub2/ 2 2016-12-07 09:10:28 ll 3 2016-12-07 09:10:33 grep UUID * 4 2016-12-07 09:10:40 more /etc/fstab 5 2016-12-07 09:10:53 grep UUID /etc/fstab 6 2016-12-07 09:27:32 fdisk -l 7 2016-12-07 09:27:56 history ------------------------------------------------ root@linuxbox [/boot/grub2] ------------------------------------------------ --> grep UUID * grep: backgrounds: Is a directory grep: fonts: Is a directory grub.cfg: linux /boot/vmlinuz-4.1.31-30-default root=UUID=9ddb0ac4-3c93-4c88-9f0b-533ca7332efe resume=/dev/sda1 splash=silent quiet showopts grub.cfg: linux /boot/vmlinuz-4.1.31-30-default root=UUID=9ddb0ac4-3c93-4c88-9f0b-533ca7332efe resume=/dev/sda1 splash=silent quiet showopts grub.cfg: linux /boot/vmlinuz-4.1.27-27-default root=UUID=9ddb0ac4-3c93-4c88-9f0b-533ca7332efe resume=/dev/sda1 splash=silent quiet showopts grep: i386-pc: Is a directory grep: locale: Is a directory grep: themes: Is a directory ------------------------------------------------ root@linuxbox [/boot/grub2] ------------------------------------------------ --> grep UUID /etc/fstab UUID=901d5c24-225b-47a0-ae55-85520a6f8f61 swap swap defaults 0 0 UUID=9ddb0ac4-3c93-4c88-9f0b-533ca7332efe / ext4 acl,user_xattr 1 1 UUID=41369c78-d14c-4423-b8f8-ea4bf91a66ff /home ext4 acl,user_xattr 1 2 ------------------------------------------------ root@linuxbox [/boot/grub2] ------------------------------------------------ --> fdisk -l Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x600b5607 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 12064767 12062720 5.8G 82 Linux swap / Solaris /dev/sda2 * 12064768 95956991 83892224 40G 83 Linux /dev/sda3 95956992 976773119 880816128 420G 83 Linux Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: C5E737A3-8865-4A88-B692-FA4D19E98724 Device Start End Sectors Size Type /dev/sdb1 2048 976773134 976771087 465.8G Linux filesystem |
The Art of Linux System Administration published by O'Reilly Media Study Guide for the LPIC-2 Certification Exams |
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |