Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How can I get the file system type for each device on Solaris 5.10? I tried mount with no args but that only listed each mount point, similar to df.

Also, how can I find where a specific directory is mounted to, directly, without which of the mounting points is its superdirectory or grep?

Thanks

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

The command you're looking for is:

fstyp [-v] <device>

See the manpage here

For the second part: If you change into directory in question you can do:

df .

Which will tell you the mountpoint and the corresponding device.

share|improve this answer
    
thanks. any idea about the 2nd question? –  amphibient Oct 10 '12 at 18:48
    
@foampile Amended. –  Karlson Oct 10 '12 at 19:02
    
grrreat. thanks. –  amphibient Oct 10 '12 at 19:14
add comment

mount -v includes the file system type in its more verbose output listing.

From a Solaris 10 system here:

/dev/dsk/c1t0d0s0 on / type ufs read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=700040 on Tue May  1 11:33:55 2012
/devices on /devices type devfs read/write/setuid/devices/dev=4380000 on Tue May  1 11:33:43 2012
ctfs on /system/contract type ctfs read/write/setuid/devices/dev=43c0001 on Tue May  1 11:33:43 2012
proc on /proc type proc read/write/setuid/devices/dev=4400000 on Tue May  1 11:33:43 2012
mnttab on /etc/mnttab type mntfs read/write/setuid/devices/dev=4440001 on Tue May  1 11:33:43 2012
swap on /etc/svc/volatile type tmpfs read/write/setuid/devices/xattr/dev=4480001 on Tue May  1 11:33:43 2012
/dev/dsk/c1t0d0p0:boot on /boot type pcfs read/write/setuid/devices/nohidden/nofoldcase/dev=723050 on Tue May  1 11:33:54 2012
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.