- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Local File System Checks?
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
11-07-2001 07:46 AM
11-07-2001 07:46 AM
Local File System Checks?
IE checks /etc/fstab and /usr/sbin/mount and compares them together?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 12:45 PM
11-07-2001 12:45 PM
Re: Local File System Checks?
#sed -n '/localmount/,/-----/p' /etc/rc.log
If there were any errors, they should be listed in /etc/rc.log. So, it's beter to check up this file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 01:11 PM
11-07-2001 01:11 PM
Re: Local File System Checks?
Try this.
for i in `cat /etc/fstab |awk '{print $2}'`
{
echo "FS is ${i} :\c"
bdf |grep $i >/dev/null
if [ $? = 0 ]
then
echo " Mounted.."
else
echo " NOT MOUNTED.."
fi
}
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 01:19 PM
11-07-2001 01:19 PM
Re: Local File System Checks?
grep -e hfs -e vxfs /etc/fstab >/tmp/checkfs
while read -r lv mt fs x y z
do
bdf $lv >>/tmp/checkfs.out 2>&1
if [ $? -eq 0 ]
then
echo "$lv is mounted ">>/tmp/checkfs.yes
else
echo "$lv is NOT mounted"
fi
done
***
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 02:35 PM
11-07-2001 02:35 PM
Re: Local File System Checks?
This example used the devices, but you could change it to grab the mount points instead if you want.
for i in `grep ^\/dev /etc/fstab| awk '{print $1}'`
do
grep $i /etc/mnttab >/dev/null 2>&1
if [ $? -ne 0 ]
then
echo $i is not mounted
fi
done
Hope this helps!