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, ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| "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 |