Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Linux provides a few different utilities that make it easier to work with filesystems from the command line. You can add new filesystems or change existing filesystems from the comfort of your own keyboard. This section walks you through the commands for interacting with filesystems from a command line environment.
Creating Partitions
To start out, you'll need to create a partition on the storage device to contain the filesystem. The partition can be an entire disk, or it can be a subset of a disk, that contains a portion of the virtual directory.
The fdisk utility is used to help you organize partitions on any storage device installed on the system. The fdisk command is an interactive program that allows you to enter commands to walk through the steps of partitioning a hard drive.