02-20-04 08:35 AM
Derk Gwen wrote:
> "Benjamin Wang" <zwang2@lucent.com> wrote:
> # Hello,
> #
> # The platform I am working on is sun solaris 2.7. And how can I get the
> # number of file system and their path?
>
> df shows the devices and mount points. (Also mount can show this, but the
> parameters vary by system.) Not all devices correspond to actually disk
> drives: I'm not sure if you want just disk drives or all mounts.
>
> # df
> Filesystem 512-blocks Used Avail Capacity Mounted on
> /dev/disk0s5 39066000 32042824 6632520 83% /
> devfs 182 182 0 100% /dev
> fdesc 2 2 0 100% /dev
> <volfs> 1024 1024 0 100% /.vol
> automount -nsl [303] 0 0 0 100% /Network
> automount -fstab [309] 0 0 0 100% /automount/S
ervers
> automount -static [309] 0 0 0 100% /automount/s
tatic
>
> --
> Derk Gwen http://derkgwen.250free.com/html/index.html
> Haven't you ever heard the customer is always right?
What works on Solaris is the command 'df -Fufs'. This only
lists the mounted file systems that actually are of type "ufs".
--
Fletcher Glenn
[ Post a follow-up to this message ]
|