Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-10-2011, 01:01 PM   #1
Registered: Jun 2005
Location: Israel
Distribution: Arch Linux
Posts: 92

Rep: Reputation: 16
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 ?

Last edited by masmddr; 01-10-2011 at 01:06 PM.
Old 01-10-2011, 01:11 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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
Old 01-10-2011, 01:26 PM   #3
Registered: Jun 2005
Location: Israel
Distribution: Arch Linux
Posts: 92

Original Poster
Rep: Reputation: 16
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
Old 01-10-2011, 03:00 PM   #4
Registered: Mar 2010
Location: Amsterdam
Distribution: Debian Sid / XFCE
Posts: 100

Rep: Reputation: 42

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
Old 01-10-2011, 07:38 PM   #5
Registered: Jun 2005
Location: Israel
Distribution: Arch Linux
Posts: 92

Original Poster
Rep: Reputation: 16
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ALERT! /dev/disk/by-uuid/.... does not exist. Dr. opping to a shell! Deimon Linux - Kernel 1 01-05-2011 08:15 PM
command to display the device-fs-uuid-mount point htamayo Linux - Newbie 2 10-26-2010 02:44 PM
ALERT! /dev/disk/by-uuid/ #### does not exist ubuntu 1:1.10.2 -1ubuntu7 please help pinged Linux - Laptop and Netbook 25 04-13-2009 06:57 PM
UUID device versus /dev abd_bela Debian 1 02-08-2009 02:13 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration