views:

25

answers:

2

I use following command to mount "/dev/sdb1" to "/storage" directory: mount -t ext3 /dev/sdb1 /storage

After run above command, I can use "df -h" can see it: /dev/sdb1 147G 188M 140G 1% /storage

But after i restart the server, it disappear, and i have to run mount command again.

Is there a command that can keep the mount even if i restart the server?

A: 

You need to add relevant information to /etc/fstab.

Alan Haggai Alavi
+1  A: 

Add the following line to your /etc/fstab file:

#    device name    mount point    fs-type    options    dump-freq    pass-num
     /dev/sdb1    /storage       ext3       defaults    0            0

You can run (as root):

echo "/dev/sdb1    /storage    ext3    defaults    0    0" >> /etc/fstab
SoftwareJonas