Step #1 Create the new filesystem with following command (first login in as a root user)

format-linux-filesystem-01

Output:

format-linux-filesystem-02

Step # 2: Create mount point directory for the file system

format-linux-filesystem-03

Step # 4: Finally make sure file system /dev/hda5 automatically mounted at /datadisk1 mount point after system reboots. You need to add partition to /etc/fstab file. Use text editor such as vi to add following entry

format-linux-filesystem-04

Add/append following entry to file:

format-linux-filesystem-05

Where,

* /dev/sda5 : File system or parition name
* /datadisk1 : Mount point
* ext3 : File system type
* defaults : Mount options (Read man page of mount command for all options)
* 0 : Indicates whether you need to include or exclude this filesystem from dump command backup. Zero means this filesystem does not required dump.
* 2 : It is used by the fsck program to determine the order in which filesystem checks are done at reboot time. The root (/) filesystem should be specified with a #1, and otherfilesystems should have a # 2 value.

Save file and exit to shell prompt.

Data recovery Salon welcomes your comments and share with us your ideas, suggestions and experience. Data recovery salon is dedicated in sharing the most useful data recovery information with our users and only if you are good at data recovery or related knowledge, please kindly drop us an email and we will publish your article here. We need to make data recovery Salon to be the most professional and free data recovery E-book online.