![]() |
how to use UUID on fstab and grub
hello
i would like to find out how to change my system so that it would use UUID/labels instead of the BUS locations (eg: /dev/sda1). i did find a lot of bits - but not a proper article on how to do this. could someone post a link or an explanation on how to do this? thanks, Nicolas |
Code:
blkidThen edit your /etc/fstab changing the Code:
/dev/sdXYCode:
UUID=Then, if you are using grub2, you just have do Code:
update-grubchanging Code:
root=/dev/sdXYCode:
root=/dev/disk/by-uuid/whatever-blkid-outputs-here |
[solved]
many thanks,
clear and concise. fantastic.. |
You're welcome.
Glad to be of help. EDIT: You may also have to update your initramfs after you make the changes. Code:
update-initramfs -u -k all |
| All times are GMT -5. The time now is 06:16 PM. |