Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
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

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

Your Answer


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.