|
Home > Archive > Unix Programming > February 2004 > About file system?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
About file system?
|
|
| Benjamin Wang 2004-02-19, 2:34 pm |
| 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?
Thanks,
Ben
| |
| Derk Gwen 2004-02-19, 4:33 pm |
| "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/Servers
automount -static [309] 0 0 0 100% /automount/static
--
Derk Gwen http://derkgwen.250free.com/html/index.html
Haven't you ever heard the customer is always right?
| |
| Fletcher Glenn 2004-02-20, 3: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/Servers
> automount -static [309] 0 0 0 100% /automount/static
>
> --
> 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
|
|
|
|
|