LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01: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 01:06 PM.
 
Old 01-10-2011, 01:11 PM   #2
AlucardZero
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.

Example:
Code:
UUID=5bbba6c03-f8d6-492f-aa7b-cf8f0a01da3d /               ext3    relatime,errors=remount-ro 0       1
 
Old 01-10-2011, 01: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, 03:00 PM   #4
remmilou
Member
 
Registered: Mar 2010
Location: Amsterdam
Distribution: MX Linux (21)/ XFCE
Posts: 211

Rep: Reputation: 69
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, 07: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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:45 PM.

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
Open Source Consulting | Domain Registration