LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

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
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration