September 2022 Archives

Sat Sep 3 01:03:50 AM JST 2022

Setting grub to boot with UUID

Booting with grub using UUID

Sometimes, linux systems will switch the device corresponding to sda at boot. This simple procedure shows how to boot from a disk using UUID in order to always boot from the same device.

First, determine the device UUID with blkid.

Next, edit /etc/default/grub, adding the following line at the start with UUID information

GRUB_DEVICE_UUID="xxxx-xxxx-xxxx-xxxxxxx"

Lastly, update grub with

update-grub

Posted by Gernot Hassenpflug | Permanent link