0

Is there a command that tells you the device name (ie. "/dev/sda1"), when you give it a mount point (ie. "/home")?

I'm running Ubuntu Server 9.04.

2 Answers 2

2
df -k /home

and

mount
0
4

df, mount, or just cat /etc/fstab.

If the actual physical device is hidden behind software RAID (eg, you see /dev/md), then cat /proc/mdstat will uncover that layer.

And if there's a blanket of LVM (eg, you see something like /dev/LogVol00), use pvdisplay.

2
  • 1
    when you use cat though, doesn't it just tell you what's supposed to be mounted, not what actually is? If you had a typo in /etc/fstab, the entry would be there, but the device might not actually be mounted due to the error.
    – Nick
    Sep 25, 2009 at 22:33
  • For /etc/fstab, you're exactly correct.
    – Matt
    Sep 25, 2009 at 22:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .