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

Using mkfs to create a ufs filesystem

To create a new ufs 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. For information, see Backup and Restore.

    If the new filesystem is to be created from an old filesystem, run labelit(1M), 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 save them to restore later.

  2. Use the mkfs(1M) command to make the new filesystem with the appropriate logical block size.

  3. Run labelit(1M) 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.)

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