The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 6 04-04-2009 03:52 AM
How to find the time a filesystem was mounted without using root privileges neuralninja UNIX for Advanced & Expert Users 1 04-07-2008 08:07 AM
How to find the time a filesystem was mounted without using root privileges neuralninja Filesystems, Disks and Memory 1 04-04-2008 02:38 PM
how many directory can be mounted on one file system duke0001 UNIX for Dummies Questions & Answers 4 02-05-2007 06:55 PM
fsck on a mounted file system? GKnight UNIX for Dummies Questions & Answers 1 11-16-2005 11:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-18-2008
vitchi vitchi is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
How to find which file system was not mounted ?

Hello all,

can someone help on how can i check if all file system were mounted during reboot?

I know that we have first to look on /etc/vfstab; the containing of this one should be mounted during boot of system, and after with : df -k we can see if mentioned file system on vfstab were mounted or not !

But as far as I know there is another way to look if all file system were mounted or not. So, how can I do this check?

Thanks for your usual support.
  #2 (permalink)  
Old 08-18-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
If you want to automate it, you could do this:
Code:
for vol in `grep ufs /etc/vfstab | egrep -v '^#' | awk '{ print $3 }'` ; do if df -k $vol | grep $vol > /dev/null ; then echo "$vol ok" ; else echo "***** $vol NOT MOUNTED"; fi;done

  #3 (permalink)  
Old 08-19-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,112
Using VxVM, you can use the vxdg/vxdisk commands to "see" your disk groups online and enabled too.. followed by checking your mount points, depending how you control it..eg using cluster control etc.. Its pretty straight forward
  #4 (permalink)  
Old 08-19-2008
vitchi vitchi is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
hello,

thx Dragon, but i don't want to automate it, but just using commande sometimes; anyway i have to read and understand your script then i can get idea how to check.

@incredible, thx but i'm not using VxVM, might you have another idea how can find out not mounted filesystem !

Thx.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0