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

Using mkfs to create an s5 filesystem

To create a new s5 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 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 save them to restore later.


    NOTE: If the new filesystem is to be created from an old filesystem and the new filesystem will have a larger logical block size, then, because of fragmentation, the new filesystem will allocate more disk blocks for data storage than the old.

  2. Use the fsba(1M) command to find out the space requirements of the old filesystem with the new block size.

  3. Use the information you get from the fsba command to make sure that the disk partition to be used for the new filesystem is large enough.

  4. Use the prtvtoc(1M) command to find out the size of your current disk partitions. If the new filesystem requires a disk repartition, see ``Formatting the storage device'' in this book.

  5. Use the mkfs(1M) command with the -b option to make the new filesystem with the appropriate logical block size.

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

  7. Populate the new filesystem--for example, do a restore from a filesystem backup or, if your system has two hard disks, run cpio 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