LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   slices and file system (http://www.linuxquestions.org/questions/solaris-opensolaris-20/slices-and-file-system-749111/)

binary_0011 08-20-2009 03:55 PM

slices and file system
 
hi guys, is there any quicker way to show what file system my slices are?

for example i will do a :

newfs -Nv /dev/rdsk/c1d1s0 , it will show me the file system is ufs.

but what if i have lot of drives? do i have to repeat the above command for all the drives and slices? it is tedious.

thanks.

ps: some slices are not mounted.

crabboy 08-20-2009 04:03 PM

for the mounted file systems you can use df -T
For the unmounted you can try looking in /dev/fstab, but odds are they are already mounted.

binary_0011 08-20-2009 04:31 PM

Quote:

Originally Posted by crabboy (Post 3651387)
for the mounted file systems you can use df -T
For the unmounted you can try looking in /dev/fstab, but odds are they are already mounted.

soalris should be df -n but it shows those mounted one and no /dev/fstab on solaris 10.

crabboy 08-20-2009 04:35 PM

oops, sorry didn't realize I was in Solaris.

jlliagre 08-20-2009 04:44 PM

The newfs command isn't correct, it will always tell you have an ufs filesystem regardless of what is there or not. You should use the fstyp command instead to identify what is on your slices and partitions.

eg:
Code:

for i in /dev/dsk/c*s* /dev/dsk/c*p*
do
echo $i : $(fstyp $i 2>/dev/null) | grep -v ":$"
done

Note that the same filesystem may appear twice.


All times are GMT -5. The time now is 04:59 AM.