Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

13.2.2. Formatting and Labeling the Partition

To format and label the partition use the following procedure:

Procedure 13.2. Format and label the partition

  1. The partition still does not have a file system. To create one use the following command:
    # /sbin/mkfs -t ext3 /dev/sda6


    Formatting the partition permanently destroys any data that currently exists on the partition.
  2. Next, give the file system on the partition a label. For example, if the file system on the new partition is /dev/sda6 and you want to label it /work, use:
      # e2label /dev/sda6 /work
By default, the installation program uses the mount point of the partition as the label to make sure the label is unique. You can use any label you want.
Afterwards, create a mount point (e.g. /work) as root.