-   Linux - General (
-   -   How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? (

masmddr 01-10-2011 02:01 PM

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

Linux masARCH 2.6.36-ARCH #1 SMP PREEMPT Sat Jan 8 13:16:43 UTC 2011 i686 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz GenuineIntel GNU/Linux
I have an odd issue with a Samsung galaxy tab.
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 ?

AlucardZero 01-10-2011 02:11 PM

You can configure its fstab line starting with "UUID=xyzabc". See if that works.


UUID=5bbba6c03-f8d6-492f-aa7b-cf8f0a01da3d /              ext3    relatime,errors=remount-ro 0      1

masmddr 01-10-2011 02:26 PM

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:

UUID=A372-14DE /media/ASD vfat user,rw,uid=1000,gid=100,noauto 0 0
UUID=FFD2-07D5 /media/AHD vfat user,rw,uid=1000,gid=100,noauto 0 0

remmilou 01-10-2011 04:00 PM


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

masmddr 01-10-2011 08:38 PM

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 03:49 AM.