![]() |
How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ?
Hello, I hope I am posing this in the right place.
I am using Arch linux Quote:
when I connect the device to the laptop it creates two nodes (/dev/sdb /dev/sdc/) but won't generate anything in /dev/disk/by-uuid. If I I do " blkid /dev/sdb" it will then appear in /dev/disk/by-uuid . This is somewhat a pain since the nodes often change and I much rather use uuid in fstab. Can anyone advice on how to skip the blkid part ? |
You can configure its fstab line starting with "UUID=xyzabc". See if that works.
Example: Code:
UUID=5bbba6c03-f8d6-492f-aa7b-cf8f0a01da3d / ext3 relatime,errors=remount-ro 0 1 |
Thank you for your replay.
Unfortunately that doesn't work as there is no entry for the device in /dev/disk/by-uuid, the the entry for the uuid is made only after I do blkid on the device or after I mount it some other way. fstab entries: Quote:
|
Hi,
Try the following: Give each partition a label and look for /dev/disk/by-label If that works, you can mount in fstab with LABEL= ... I prefer this, because it gives me more control than the auto generated UUID's. E.g. if you change a disk for a new one, just give it the old label. Remco Siderius |
Thank you.
Although I don't have /dev/disk/by-label , I used mtools (specifically mlabel) to label the two vfat partitions and replaced the UUID in fstab with the LABEL and now it works well. Thank you both for your help. |
| All times are GMT -5. The time now is 02:29 PM. |