It is said that udev create symbolic links identifying the actual device and /dev/disk/by-uuid is an example.
[root@centos1 by-uuid]# pwd
[root@centos1 by-uuid]# ls -l
total 0 lrwxrwxrwx 1 root root 10 Jun 26 00:59 4cfc879d-1d4e-4289-856c-5f532a74bb2d -> ../../sda
Does the above means that a) /dev/sda is pointing to uuid 4cfc879d-1d4e-4289-856c-5f532a74bb2d
b) uuid 4cfc879d-1d4e-4289-856c-5f532a74bb2d is pointing to /dev/sda ?
If the answer is a, i always thought that link are suppose to be from left to right ? and how will someone reference the uuid to go to /dev/sda ? Also i thought /dev/sda is suppose to be dynamically added by udev and its naming is base on some rules.
If the answer is b, then where is sda pointing to ? It is said that the kernel add devices to the /dev/ folder dynamically and with udev we can persist of the naming of the devices in it.
[root@centos1 dev]# pwd
[root@centos1 dev]# ls -lt sda
brw-rw---- 1 root disk 8, 0 Jun 26 00:59 sda
I tried to find the rules in /etc/udev/rules.d/ but to no avail. I am on CentOS.
I am trying at /lib/udev/rules.d/, but can't see the rules that add sda into /dev/