I use following command to mount "/dev/sdb1" to "/storage" directory: mount -t e开发者_如何学Goxt3 /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?
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
You need to add relevant information to /etc/fstab
.
精彩评论