Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 2 down vote accepted
df -k /home

and

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

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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