JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Overview)

2.  Managing Removable Media (Tasks)

3.  Accessing Removable Media (Tasks)

4.  Writing CDs and DVDs (Tasks)

5.  Managing Devices (Overview/Tasks)

6.  Dynamically Configuring Devices (Tasks)

7.  Using USB Devices (Overview)

8.  Using USB Devices (Tasks)

9.  Using InfiniBand Devices (Overview/Tasks)

10.  Managing Disks (Overview)

11.  Administering Disks (Tasks)

12.  SPARC: Adding a Disk (Tasks)

13.  x86: Adding a Disk (Tasks)

14.  Configuring iSCSI Storage Devices With COMSTAR

15.  Configuring and Managing the Solaris Internet Storage Name Service (iSNS)

16.  Managing Disk Use (Tasks)

17.  The format Utility (Reference)

18.  Managing File Systems (Overview)

What's New in File Systems?

File System Monitoring Tool (fsstat)

Oracle Solaris ZFS File System

Where to Find File System Management Tasks

Overview of File Systems

Types of File Systems

Disk-Based File Systems

The Universal Disk Format (UDFS) File System

Network-Based File Systems

Virtual File Systems

Temporary File System

The Loopback File System

Process File System

Additional Virtual File Systems

libc_hwcap

Extended File Attributes

Swap Space

Commands for UFS File System Administration

How File System Commands Determine the File System Type

Manual Pages for Generic and Specific File System Commands

Default Solaris File Systems

UFS File System

UFS File System Features

Planning UFS File Systems

64-bit: Support of Multiterabyte UFS File Systems

Features of Multiterabyte UFS File Systems

Limitations of Multiterabyte UFS File Systems

UFS Logging

UFS Snapshots

UFS Direct Input/Output (I/O)

Mounting and Unmounting File Systems

The Mounted File System Table

The Virtual File System Table

The NFS Environment

NFS Version 4

Automounting (autofs)

Determining a File System's Type

How to Determine a File System's Type

19.  Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)

20.  Mounting and Unmounting File Systems (Tasks)

21.  Configuring Additional Swap Space (Tasks)

22.  Copying Files and File Systems (Tasks)

23.  Managing Tape Drives (Tasks)

Index

Determining a File System's Type

You can determine a file system's type by using one of the following:

How to Determine a File System's Type

This procedure works whether or not the file system is mounted.

Determine a file system's type by using the grep command.

$ grep mount-point fs-table
mount-point

Specifies the mount point name of the file system for which you want to know the file system type. For example, the /var directory.

fs-table

Specifies the absolute path to the file system table in which to search for the file system's type. If the file system is mounted, fs-table should be /etc/mnttab. If the file system isn't mounted, fs-table should be /etc/vfstab.

Information for the mount point is displayed.


Note - If you have the raw device name of a disk slice, you can use the fstyp command to determine a file system's type (if the disk slice contains a file system). For more information, see fstyp(1M).


Example 18-1 Determining a File System's Type

The following example uses the /etc/vfstab file to determine the file system type for the /export file system.

$ grep /export /etc/vfstab
/dev/dsk/c0t3d0s6   /dev/rdsk/c0t3d0s6  /export ufs   2       yes    -
$ 

The following example uses the /etc/mnttab file to determine the file system type of the currently mounted diskette.

$ grep floppy /etc/mnttab
/dev/diskette0  /media/floppy   ufs     rw,nosuid,intr,largefiles,logging,xattr,onerror=panic,dev=900002 
       1165251037

The following example uses the fstyp command to determine the file system type.

# fstyp /dev/rdsk/c0t0d0s0
zfs