DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Managing filesystem types

Using mkfs to create an sfs filesystem

The steps for creating an sfs filesystem are identical to those for creating a ufs filesystem. To create a new sfs filesystem or to convert an old filesystem to sfs, use the following procedure:

  1. If the new filesystem is to be created from an old filesystem, run the labelit(1M) command, which reports the mounted filesystem name and the physical volume name of the old filesystem. See volcopy(1M). These labels are destroyed when you make the new filesystem, so you must restore them.

  2. Use the mkfs(1M) command to make the new filesystem with the appropriate logical block size. The mkfs command is described in the section ``Creating a filesystem with mkfs''.

  3. Run the labelit(1M) command to restore the filesystem and volume names.

  4. Populate the new filesystem--for example do a restore from a filesystem backup, or, if your system has two hard disks, do a cpio(1) from a mounted filesystem. (The volcopy(1M) and dd(1M) commands copy a filesystem image; they cannot convert logical block size.)

Using mkfs to create a vxfs filesystem

When used to make a vxfs filesystem, the mkfs(1M) command builds a filesystem with a root directory and a lost+found directory. vxfs supports three disk layout versions. By default, mkfs creates a Version 4 layout filesystem which supports filesets, dynamic inode allocation, ACLs, large files, and quotas. mkfs does not assign a fixed number of inodes to the filesystem unless the Version 1 disk layout is specified (using the version=1 option). However, if the filesystem is to be used by applications that demand System V Release 3 compatibility (inode numbers <64K), mkfs allows you to specify an upper bound on inode allocation using the -C option.

To create a new filesystem or convert an old one to a new logical block size, use the following procedure:

  1. If the new filesystem is to be created on a disk partition that contains an old filesystem, back up the old filesystem.

    If the new filesystem is to be created from an old filesystem, run the labelit(1M) command, which reports the mounted filesystem name and the physical volume name of the old filesystem. See volcopy(1M). These labels are destroyed when you make the new filesystem, so you must restore them.

  2. Use the mkfs(1M) command to make the new filesystem with the options described in ``Creating a filesystem with mkfs''.

  3. Run the labelit(1M) command to restore the filesystem and volume names.

  4. Populate the new filesystem--for example, do a restore from a filesystem backup, or, if your system has two hard disks, run cpio(1) from a mounted filesystem. (The volcopy(1M) and dd(1M) commands copy a filesystem image; they cannot convert logical block size.)

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004