LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 08-20-2009, 02:55 PM   #1
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
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.
 
Old 08-20-2009, 03:03 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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.
 
Old 08-20-2009, 03:31 PM   #3
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by crabboy View Post
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.
 
Old 08-20-2009, 03:35 PM   #4
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
oops, sorry didn't realize I was in Solaris.
 
Old 08-20-2009, 03:44 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,491

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.

Last edited by jlliagre; 08-21-2009 at 05:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
rw access to Solaris ufs slices from Linux shachter Solaris / OpenSolaris 1 07-06-2007 11:43 AM
Mencoder: audio delay when encoding in slices!? J_Szucs Linux - Software 7 06-25-2006 05:30 PM
Defining the Slices desbyleo Solaris / OpenSolaris 10 05-07-2003 09:18 AM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration