This article will show how to use persistent naming with UUID.
Adding disk controller or new hard disk may result on a different device mapping on next reboot, for example
/dev/sda can switch with
In order to avoid theses issues, we will use persistent naming.
In this article, you'll need ...
... Oracle Linux 7 installed (see oel7 installation here)
... root access is needed
Create disk partitions
On the new disk
/dev/vdc, we will create one partition.
UUID are usually generated when create a filesystem on the disk partition.
As root, extract id as follow:
Add to /etc/fstab
Next, you just need to add or modify the existing line in
/etc/fstab as below:
Please leave comments and suggestions,
Persistent block device naming (wiki.archlinux.org)
Enjoyed this article? Please like it or share it.