Hack 67. Mount the partition

by Ramesh

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.

  1. # mkdir /home/database

Mount the file system.

  1. # mount /dev/sda1 /home/database

Automatically mount filesystem

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

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