- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: checking mount point directory
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
Discussions
Discussions
Forums
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
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
тАО02-22-2001 09:56 AM
тАО02-22-2001 09:56 AM
Re: checking mount point directory
EXCELLENNT POINT!...and I run MC/ServiceGuard too!!!...
One of the things I've done in my cluster's fstab files is to place the pound (#) mark over the device special file name (field-1). This reminds me of the mount point although 'mount' complains mildly during bootup.
With my regards and my thanks for your corrections, Jim. :-))
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2001 02:10 PM
тАО02-22-2001 02:10 PM
Re: checking mount point directory
Maybe you know why i prefer mount command!!
I did not think in S/G neither.
Note my grep contain caret "^" This is begin of line and space " " as separator.
Fine, Patrice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2001 03:12 PM
тАО02-22-2001 03:12 PM
Solution#!/usr/bin/sh
if [ `/usr/bin/ls -ldi . | awk '{ print $1}'` = 2 ]
then
echo This is a mount point
else
echo This is not a mount point
fi
Each filesystem has it's own *root* directory. All root directories have the inode number 2 :-)
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2001 11:18 PM
тАО02-22-2001 11:18 PM
Re: checking mount point directory
That's by far the most elegant solution !! You deserve at least 20 (or more) for that one.
It's surprising that no one else even thought about that one...
You kicked our a$@es !!
8-(
Good show !
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 12:24 AM
тАО02-23-2001 12:24 AM
Re: checking mount point directory
Now, we can go far away:
Find / -inum 2
Jim: Following your Philosofy you must add /SD_CDROM, /cdrom, /tmp_mnt ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2001 06:04 AM
тАО02-26-2001 06:04 AM
Re: checking mount point directory
I thank everybody for your help.
I agree with Dan: Andy Monks suggested the most elegant solution.
I'll try to post other interesting questions...
- « Previous
-
- 1
- 2
- Next »