Unix Technical Forum

check if a filesystem is mounted

This is a discussion on check if a filesystem is mounted within the AIX Operating System forums, part of the Unix Operating Systems category; --> "Tim Moor" <tim.moor@nospam.com> wrote in message news:4428f9f4$1_2@news.bluewin.ch... > dear aix gurus, > is the following script realiable to check, ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-05-2008, 09:11 AM
g0c
 
Posts: n/a
Default Re: check if a filesystem is mounted

"Tim Moor" <tim.moor@nospam.com> wrote in message
news:4428f9f4$1_2@news.bluewin.ch...
> dear aix gurus,
> is the following script realiable to check, if a filesystem is mounted or
> not ?
>
> thanx alot
> tim
>
> ps: mount point is /comx/data
>
> #!/bin/ksh
> #
> # test fs mount status
> #
> MOUNT_POINT=$(df -M /comx/data 2>/dev/null | awk ' (NR==2) {print $2} ')
>
> if [[ $MOUNT_POINT = "/" ]]; then
> echo "fs is not mounted: $MOUNT_POINT"
> else
> echo "fs is mounted: $MOUNT_POINT"
> fi
>
>


hi,
i usually just check for lost+found directory


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com