*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> mkfs (1m)              
Title
Content
Arch
Section
 

Contents


 mkfs(1M)                                                           mkfs(1M)




 NAME    [Toc]    [Back]
      mkfs - construct a file system (generic)

 SYNOPSIS    [Toc]    [Back]
      /usr/sbin/mkfs [-F FStype] [-o specific_options] [-V] special
           [operands]

      /usr/sbin/mkfs [-F FStype] [-m] [-V] special

 DESCRIPTION    [Toc]    [Back]
      The mkfs command creates a file system by writing on the special file
      special.  operands are listed on file system specific manual pages
      (see "SEE ALSO").

    Options    [Toc]    [Back]
      mkfs recognizes the following options:

           -F FStype      Specify the file system type on which to operate
                          (see fstyp(1M) and fs_wrapper(5)).  If this option
                          is not included on the command line, then the file
                          system type is determined from the file /etc/fstab
                          by matching special with an entry in that file.
                          If there is no entry in /etc/fstab, then the file
                          system type is determined from the file
                          /etc/default/fs.

           -m             Display the command line that was used to create
                          the file system.  The file system must already
                          exist.  This option provides a means of
                          determining the parameters used to construct the
                          file system.

           -o specific_options
                          Specify options specific to the file system type.
                          specific_options is a list of suboptions and/or
                          keyword/attribute pairs intended for an FStype-
                          specific module of the command.  See the file
                          system specific manual entries for a description
                          of the specific_options that are supported, if
                          any.

           -V             Echo the completed command line, but perform no
                          other action.  The command line is generated by
                          incorporating the specified options and arguments
                          with other information derived from /etc/fstab.
                          This option allows the user to verify the command
                          line.

 EXAMPLES    [Toc]    [Back]
      Execute the mkfs command to create a 32MB HFS file system on
      /dev/dsk/c1t2d0:



 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 mkfs(1M)                                                           mkfs(1M)




           mkfs -F hfs /dev/dsk/c1t2d0 32768

      Execute the mkfs command on an HFS file system, /dev/dsk/c1t2d0, to
      recreate the command that was used to create the file system on
      /dev/dsk/c1t2d0:

           mkfs -F hfs -m /dev/dsk/c1t2d0

 AUTHOR    [Toc]    [Back]
      mkfs was developed by HP and the University of California, Berkeley.

 FILES    [Toc]    [Back]
      /etc/default/fs        Specifies the default file system type.
      /etc/fstab             Static information about the file systems.

 SEE ALSO    [Toc]    [Back]
      chmod(1), bdf(1M), df(1M), fsadm(1M), fsck(1M), fstyp(1M),
      mkfs_hfs(1M), mkfs_vxfs(1M), newfs(1M), fstab(4), group(4), passwd(4),
      fs_wrapper(5).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      mkfs: SVID3


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
mount_mfs OpenBSD construct a new file system
newfs OpenBSD construct a new file system
newfs_msdos OpenBSD construct a new MS-DOS (FAT) file system
mfs OpenBSD construct a new file system
newfs_msdos FreeBSD construct a new MS-DOS (FAT) file system
mkfs_hfs HP-UX construct an HFS file system
newfs HP-UX construct a new file system
newfs_hfs HP-UX construct a new HFS file system
mkfs_vxfs HP-UX construct a VxFS file system
newfs FreeBSD construct a new UFS1/UFS2 file system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service