[問題] cifs mount之後,怎樣開機自動mount?

看板Linux作者 (sambas)時間13年前 (2012/11/06 16:02), 編輯推噓0(004)
留言4則, 4人參與, 最新討論串1/1
我用 # 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

11/06 16:16, , 1F
//123../xx /home/xx cifs user,pwd,code 0 0
11/06 16:16, 1F

11/06 16:56, , 2F
關鍵字: credentials
11/06 16:56, 2F

11/06 23:47, , 3F
我自己是在crontab裡用@reboot參數搞定~
11/06 23:47, 3F

11/07 00:32, , 4F
為什麼我可能用類似rc.local的東西會比較保險一點
11/07 00:32, 4F
文章代碼(AID): #1GcCG3KI (Linux)