LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-10-2011, 02:01 PM   #1
masmddr
Member
 
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
Quote:
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 02:06 PM.
 
Old 01-10-2011, 02:11 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,653

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
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
 
Old 01-10-2011, 02:26 PM   #3
masmddr
Member
 
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:
Quote:
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, 04:00 PM   #4
remmilou
LQ Newbie
 
Registered: Mar 2010
Location: Amsterdam
Distribution: Debian
Posts: 9

Rep: Reputation: 3
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
 
Old 01-10-2011, 08:38 PM   #5
masmddr
Member
 
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.
 
  


Reply


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 09:15 PM
command to display the device-fs-uuid-mount point htamayo Linux - Newbie 2 10-26-2010 03: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 07:57 PM
UUID device versus /dev abd_bela Debian 1 02-08-2009 03:13 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 09:41 PM


All times are GMT -5. The time now is 03:27 AM.

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