- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mount a FS as hidden
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2001 10:13 AM
06-08-2001 10:13 AM
Mount a FS as hidden
would appreciate any help
in telling me how to mount
a FS as hidden so that
user does not see that mount
point when they type mount.
I cannot find any flags to
the mount() service call or
or any options to the mount
command-line command
that could accomplish
a hidden mount.
On SUN e.g. mount -m will hide
the mountpoint.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2001 06:19 AM
06-09-2001 06:19 AM
Re: Mount a FS as hidden
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2001 02:32 PM
06-09-2001 02:32 PM
Re: Mount a FS as hidden
I examined the mount(2) system call and /usr/include/sys/mount.h. HP-UX does not support this feature.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2001 07:14 PM
06-09-2001 07:14 PM
Re: Mount a FS as hidden
The only thing I can suggest is to code a program /usr/bin/mount which does a system(3) call to /sbin/mount for everything except
when called with no arguments. In that case it read a textfile to see if the mountpoint should not be displayed. You would also need to replace bdf and df with programs that also read the same textfile.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 07:16 AM
06-11-2001 07:16 AM
Re: Mount a FS as hidden
However, my boss does not
like the idea of replacing
the mount/df/bdf with
a shell script that, in
a nutshell, "grep -v"
the mountpoint that I want
hidden. You see, all other
major UNIX platforms support
hidden mountpoint-- SUN IRIX
LINUX TRU64.....
HPUX provide getmntent()
addmntent(), delmntent()....
as API interface for developers to modify /etc
/mnttab. You would think,
logically, that syncer(
the background daemon that
monitors mountpoints) will
honor them. BUT syncer is
triggered at THAT second that
the API modifies mnttab
and syncer will cp /dev/null
to mnttab and use 5 seconds to
rebuild that mnttab contents
to be what it thinks is correct. During this 5-second
period, typing "mount" command
at the command line
will hang (no prompt/output
comes up) until syncer is done. What syncer does is to
sync the mnttab with the
kernel mount table. So if I
can find out any API calls
that I can utilize to modify the kernel mount
table contents, then I will
beat syncer and get my job done. The $64000 question is:
What are those kernel API calls?
The point is, it does NOT
make ANY SENSE that HPUX
provide those addmntent()
and delmntent() but at
the same time put syncer there
that overwrite everything
and make those API-calls's
existence totally ridiculous.