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
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.
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.
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.
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 03:15 PM.|