Discussion:
[問題] cifs mount之後,怎樣開機自動mount?
(时间太久无法回复)
sambas
2012-11-06 08:02:10 UTC
Permalink
我用
# mount -t cifs //123.123.123.123/Volume_1 /home/test -o \
username=user,password=1234,codepage=cp950

把遠端samba的資料夾mount到本機了
一切也都正常

如果我希望機器開機之後
能自動把這個目錄mount過來
請問在 /etc/fstab 要怎麼寫呢???

--
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 ◢██◣
 █ ◤ ◢█◣ ◢██◣ ◢◥◣ ◢██◣
 █ ◢ █ █ █ █ █ █ █
 ◥██◤ ◥◤◥◣ ◥ ◥ ◥◣◤ ◥ ◥ ψsambas
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.17.242.117
Cos
2012-11-07 08:32:53 UTC
Permalink
把指令寫到 /etc/rc.local 也可
Post by sambas
我用
# mount -t cifs //123.123.123.123/Volume_1 /home/test -o \
username=user,password=1234,codepage=cp950
把遠端samba的資料夾mount到本機了
一切也都正常
如果我希望機器開機之後
能自動把這個目錄mount過來
請問在 /etc/fstab 要怎麼寫呢???
--
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 ◢██◣
 █ ◤ ◢█◣ ◢██◣ ◢◥◣ ◢██◣
 █ ◢ █ █ █ █ █ █ █
 ◥██◤ ◥◤◥◣ ◥ ◥ ◥◣◤ ◥ ◥ ψsambas
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.17.242.117
--- news://freenews.netfront.net/ - complaints: ***@netfront.net ---
Loading...