Hack 67. Mount the partition

After creating a partition and formatting, you can mount it to a mount point.

Create a directory to mount

First create a directory where the partition should be mounted.

# mkdir /home/database

Mount the file system.

# mount /dev/sda1 /home/database

Automatically mount filesystem

To automatically mount the filesystem after the reboot, add the following entry to the /etc/fstab

/dev/sda1 /home/database ext3 defaults 0 2

Comments on this entry are closed.