December 15

Linux: Searching for a UUID

I ran into a situation where after restoring a linux filesystem and fixing grub the UUID for the swap partition was no longer being recognized.

Using blkid and the partition dev location I was able to retrieve the new UUID and replaced the incorrect one in /etc/fstab

eg. blkid /dev/sda4
UUID=”2db3acb7-cfe7-455c-8d88-da4f00011b3d” TYPE=”swap”

Copyright 2021. All rights reserved.

Posted December 15, 2011 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B