Parted Utility

      No Comments on Parted Utility

GNU Parted is a program for creating and manipulating partition tables. GNU Parted was designed to minimise the chance of data loss. For example, it was designed to avoid data loss during interruptions (like power failure) and performs many safety checks.

However, there could be bugs in GNU Parted, so you should back up your important files before running Parted.

To start parted, simply type parted followed by the device you want to create a partiion on.

Type p or print to display the current partition table

As shown above, our device is approx 8GB. We’ll proceed and create an 8GB partition on the block device.

Next we’ll format the partition using xfs filesystem.

Confirm that the changes have been applied by running

Next we can now mount the partition on a file system

Create a directory e.g data unser root

Mount the partition to the directory

Run df -h command to confirm that the partition has been mounted

To make the mount point persist across reboots, update /etc/fstab as below

Run mount -av to effect the changes

 

The following two tabs change content below.

harun

Harun is a System Administrator with proficient knowledge in cloud technologies such as KVM, Cloudstack, Citrix Xen Server, Openstack and VMware Vsphere Suite, Ceph, NFS, ISCSI

Latest posts by harun (see all)

About harun

Harun is a System Administrator with proficient knowledge in cloud technologies such as KVM, Cloudstack, Citrix Xen Server, Openstack and VMware Vsphere Suite, Ceph, NFS, ISCSI

Leave a Reply

Your email address will not be published. Required fields are marked *