Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


equivalent of /proc/mounts in AIX

equivalent of /proc/mounts in AIX

equivalent of /proc/mounts in AIX

I am cross posting this to few forums: https://www.ibm.com/developerworks/community/forum...


I am trying to figure out a source where I look up all the mounted devices. After some reading, I came to know that AIX tries to mount the entries in /etc/filesystems automatically at startup. But does that files contain everything after the system is started?

Basically, I am looking for an equivalent of /proc/mounts file for AIX.

RE: equivalent of /proc/mounts in AIX

CODE -->

command will be the equivalent of

CODE -->

cat /proc/mounts 
As to the source of mounts beyond /etc/filesystems look at rc.local and any scripts that have been created and are initiated by inittab

RE: equivalent of /proc/mounts in AIX

Thanks for the reply. Will the mount command give me the filesystems mounted by all users? In my use case, we would run our program as a dedicated user and need access to all the mount points created by the actual user of the system.

Also is there a file where mount command in AIX gets its information from, which I can read rather than running the command?

RE: equivalent of /proc/mounts in AIX

df and mount will show all mounted systems regardless of who mounted them. Short of writing a C program I am not sure how to extract this information from the kernel memory. What are you looking to get? There are some fs stats under /proc/sys/

RE: equivalent of /proc/mounts in AIX

In linux, mount does not get the mount points mounted by different users. So just wanted to confirm this. I could not do much testing on the AIX box I have due to permissions.

"What are you looking to get? ":
Reading a file would be easier than parsing output of a command, so I asked if there is file that mount command uses to get the info it displays.

RE: equivalent of /proc/mounts in AIX


Mount in AIX works for all users. I just tried... Same goes for Linux, not sure where you're getting your information from?


Henrik Morsing
Join us on irc://chat.freenode.net channel ##aix

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close