LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   List mounted filesystems (https://www.linuxquestions.org/questions/linux-newbie-8/list-mounted-filesystems-4175488648/)

HMW 12-20-2013 03:12 AM

List mounted filesystems
 
Hi all!

This is not a question, it is a ”protip”.

If you, like me, want to see exactly where your /home is mounted, or where that blasted usb stick ended up, you probably have used df, or dmesg or some other command.

Although they are great, I have a new favourite: blkid.

The output is awesome and easy to read, and provides all the info I need. So, try out:
Code:

sudo blkid -o list
In your terminal and see for yourself!
Code:

device    fs_type label    mount point    UUID
-------------------------------------------------------------------------------
/dev/sda1  ext4            /              11112c19-5b69-4c7a-8192-651623511111
/dev/sda5  swap            <swap>        11117218-32e8-4115-81cd-ff27ec311111
/dev/sda6  ext4            /home          1111a2dc-1704-41b5-8b69-2ee47ad11111

Merry Xmas!

PS. Yeah, UUID is somehwat obfuscated, I might be paranoid... DS.

acid_kewpie 12-20-2013 03:26 AM

Good tip, but I'd suggest you use your LQ blog for this sort of thing in future.

chrism01 12-20-2013 03:45 AM

You could also look at lsblk

HMW 12-20-2013 04:06 AM

Quote:

Originally Posted by acid_kewpie (Post 5084395)
Good tip, but I'd suggest you use your LQ blog for this sort of thing in future.

Oops! Sorry :redface:


All times are GMT -5. The time now is 12:00 PM.