What is the easiest way to match a mount point to a device?
Say I have to work on an unknown systems with multiple hard drives. I know it has the primary system on /dev/sda. What is the easiest way (without checking /etc/fstab or /etc/mtab) to check to see what /dev/* is mounted where?
In otherwords, is there a command I can run that will say /dev/sda1 is mounted to /, /dev/sdb1 is mounted to /media/Data, /dev/sdc1 is mounted to /home/user/backups/, and /dev/sdc2 is mounted at /var/www/usb/? Know what I mean? |
Hello worm5252,
use Code:
df -h |
it will look like this:
Code:
$ df -h Code:
$ cat /etc/fstab |
Thanks, I use du but I never use df. That's why I did not know.
|
All times are GMT -5. The time now is 05:11 PM. |