Mạnh Cường
Member
How do you check if a drive is mounted?
Answer
To find out what drives are mounted you can check
/etc/mtab, which is a list of all devices mounted on the system. It can sometimes have various tmpfs and other things you aren’t looking for mounted too, so I reccomend cat /etc/mtab | grep /dev/sd to get only physical devices.
Answer
To find out what drives are mounted you can check
/etc/mtab, which is a list of all devices mounted on the system. It can sometimes have various tmpfs and other things you aren’t looking for mounted too, so I reccomend cat /etc/mtab | grep /dev/sd to get only physical devices.