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.
- # 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
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .