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. |
Hi,
Are the contents of /dev/disk any use Mark |
Not really. /dev/disk tells me what devices I have such as /dev/sda9 but it does not relate that device to a label
|
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. |
You are correct. I was looking in the wrong dir. I was looking in /dev/disk/by-path. DUH. :scratch:
Thank you |
All times are GMT -5. The time now is 07:17 AM. |