Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are all mount points stored in Linux

I want to know where all mount points are stored; i.e. under any specific directory?

I want to be able to list all the existing mount points using a C Program. Which system call or function should I use?

like image 560
HARISH B Avatar asked May 02 '12 10:05

HARISH B


People also ask

Where are mount points stored in Linux?

They are located in the /proc/mounts "file", which you can read and parse.


1 Answers

They are located in the /proc/mounts "file", which you can read and parse.

like image 60
nos Avatar answered Nov 14 '22 22:11

nos