LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-05-2009, 08:34 AM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

Rep: Reputation: 31
How to tell what disk and partition a label points to


How do I tell what disk and partition a label points to.

I'm new to using labels, I've always used device names such as /dev/sdb3 or /dev/sda1. I have inherited a new system that uses labels extensively. I have looked at e2label and tune2fs but can't seem to find out how to determine where a label points to.

This new machine has several mounts such as /DATA1 mounting to /DATA1 but have no idea which partition on which disk this is.

Thank you for any help.
 
Old 03-05-2009, 08:51 AM   #2
healyma
Member
 
Registered: Feb 2009
Location: Mayo, Ireland
Distribution: LFS 6.4; Debian 5.4; Mythbuntu & Kubuntu 10.04
Posts: 49

Rep: Reputation: 18
Hi,
Are the contents of /dev/disk any use

Mark
 
Old 03-05-2009, 09:07 AM   #3
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

Original Poster
Rep: Reputation: 31
Not really. /dev/disk tells me what devices I have such as /dev/sda9 but it does not relate that device to a label
 
Old 03-05-2009, 09:45 AM   #4
biggerbug
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 2
Hi,

You can see to which device a label links to, using this command:
ls -l /dev/disk/by-label/
This directory stores labels of partitions, if any, which are actually links to the real devices (sda1, etc).

cheers.
 
Old 03-05-2009, 11:03 AM   #5
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

Original Poster
Rep: Reputation: 31
You are correct. I was looking in the wrong dir. I was looking in /dev/disk/by-path. DUH.

Thank you
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool to change the label of a NTFS disk/partition lothario Linux - Software 3 11-04-2012 09:30 AM
GUID Partition Table / Disk Label Slipstream2006 Suse/Novell 2 07-13-2007 06:53 AM
F7 Disk Label Question punt Fedora 6 06-20-2007 04:32 PM
Disk label problem Juniper34 *BSD 2 08-21-2003 06:01 AM
Disk label strangeness? MadCactus Linux - General 2 08-13-2003 12:24 PM


All times are GMT -5. The time now is 01:25 PM.

Main Menu
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