52
Note: This method works with volumes 2TB or less in size. For
volumes greater than 2TB, use the PARTED method.
a.
As ROOT, run fdisk /dev/sd~. Replace the ‘~’ with the device label you
obtained in the previous steps.
Note: depending on your path setting you might need to use an
absolute path to run fdisk. The fdisk utility is generally located
in /sbin/.
b.
Enter: “n” for new <enter> - This creates a new partition on the disk.
c.
Enter: “p” for primary partition <enter> - This sets the new partition
as the primary partition.
d.
Enter: “1” for partition 1 <enter> - This sets the partition number to
partition 1.
e.
When asked which cylinders to use, take the default selections.
f.
Enter: “w” <enter> to save your changes.
g.
You may be prompted that a reboot is necessary. If so, reboot the
Linux Client.
4.
To apply an XFS filesystem, as ROOT, run the command mkfs.xfs –L <volume
name> /dev/sd~1.
a.
Replace the ‘~’ with the device label you obtained earlier. If the
system had been rebooted, re-verify the device label is correct.
Note: depending on your path setting you might need to use and
absolute path to run mkfs.xfs. The mkfs.xfs command is generally
located in /sbin/.
The –L switch in the mkfs.xfs command sets the volume label in the
Linux OS. Be sure the volume name inserted into the xfs formatting
command is EXACTLY the same as the name listed in TerraBlock
Manager. Be aware that volume names are case sensitive.
5.
Once the volume has been formatted, it can then be mounted in the Linux
filesystem. To mount the volume to a mount point, first create a mount point
directory, then mount the formatted device:
a.
mkdir /media/<volume name>
Volume mount points are generally located in the ‘media’
directory or the ‘mnt’ directory. Consult your Linux distribution
documentation for the proper mount point directory.
b.
Once the mount point has been created, mount the volume with the
following command: mount /dev/sd~1 /media/<volume name>
i.
Replace the ‘~’ with the device label you obtained earlier
6.
Type either of the following commands to verify the volume is mounted
properly:
a.
‘mount’ – lists mounted volumes
b.
‘df -h’ – lists mounted volumes and will show available space.