Dot Hill Systems II 200 FC G.7 Creating a Mount Point and Mounting the File System Manually

Models: II 200 FC

1 210
Download 210 pages 50.54 Kb
Page 185
Image 185
G.7 Creating a Mount Point and Mounting the File System Manually

2.Take the device that you ran fdisk on and run the following command to create an ext3 file system:

mkfs -t ext3 /dev/sdb(x)

where x is the partition on which you are creating a file system. Replace x with 1 because there is only one partition.

G.7 Creating a Mount Point and Mounting the File System Manually

1.Go to the directory where you want to create a directory that will be the mount point. Then type the following command:

mkdir name

where name is the name of the new directory.

2.To mount your file system, type the following:

mount /dev/sdb(x) / directory-path

where x is 1 for this partition and the directory-pathis the directory that was created and its location.

G.8 Mounting the File System Automatically

You can label the partition so that it can be entered in the fstab file for mounting the partition automatically at bootup. The use of the label and fstab file is a faster operation than mounting the file system manually with a device path.

1.Type the following command to add a label to the partition:

e2label /dev/sdb(x) / directory-path

where x is 1 for this partition and directory-pathis the directory that was created and its location.

2.Edit the /etc/fstab file and add the following line:

LABEL=/mount/point /mount/point ext3 1 2

Appendix G Configuring a Linux Server G-7

Page 185
Image 185
Dot Hill Systems II 200 FC service manual G.7 Creating a Mount Point and Mounting the File System Manually