Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
08-20-2009, 02:55 PM
|
#1
|
|
Member
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89
Rep:
|
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.
|
|
|
|
08-20-2009, 03:03 PM
|
#2
|
|
Moderator
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,816
Rep: 
|
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.
|
|
|
|
08-20-2009, 03:31 PM
|
#3
|
|
Member
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89
Original Poster
Rep:
|
Quote:
Originally Posted by crabboy
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.
|
|
|
|
08-20-2009, 03:35 PM
|
#4
|
|
Moderator
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,816
Rep: 
|
oops, sorry didn't realize I was in Solaris.
|
|
|
|
08-20-2009, 03:44 PM
|
#5
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
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.
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|