문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top