How do I create an xfs partition?

Written by kevin walker
  • Share
  • Tweet
  • Share
  • Email

The traditional Linux file system has been the extended file system series (EXT2, EXT3 and EXT4.) This is the file system used in nearly all Linux and Unix distributions by default. However, enterprising users have other options, including the XFS file system developed by Silicon Graphics.

Other People Are Reading

XFS versus EXT3

According to NAS-Central.org, EXT3 is a slower but safer file system. If an error occurs in the file system on EXT3, it is far easier to recover the data. However, XFS is faster and a server environment with a quality back up system can see dramatic improvements in performance.

Prerequisites

Support for the XFS file system must be built directly into the Linux kernel. Type "lsmod" into the terminal to discover if your operating system includes support for XFS. If it does not, you need to rebuild the kernel to support XFS (see Resources).

Creating Partition

Assuming you have a correctly configured kernel, you can create a partition. Type the following into the terminal:

fdisk /dev/sda

This opens the system's partitioning utility. Type "p" to get a list of current partitions. Type "n" for "new partition." Select "Primary partition." Select a partition number (1 to 4) that is not already in use and remember that number: Press "Return" twice: the first time to accept the default starting place for the partition and the second to accept the default partition size.

Type "w" to write the changes to disk.

Format as XFS

Format the partition using the XFS file system. Enter the command:

mkfs.xfs /dev/sda#

Replace the "#" with the number you previously gave the partition.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.