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.

link|improve this question

72% accept rate
feedback

2 Answers

up vote 2 down vote accepted
df -k /home

and

mount
link|improve this answer
Thanks! "df -k" seems to do what I'm looking for. – Nick Sep 25 '09 at 22:30
feedback

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.

link|improve this answer
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 '09 at 22:33
For /etc/fstab, you're exactly correct. – Matt Sep 25 '09 at 22:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.