#author("2022-08-04T18:31:42+09:00","default:Miyashita","Miyashita") #author("2022-08-04T18:32:43+09:00","default:Miyashita","Miyashita") *Ubuntu autofs 設定メモ [#i485d668] **/etc/auto.master の編集 [#ka67863c] auto.master のファイルに諸々の設定があるので編集する. #codeprettify{{ # # Sample auto.master file # This is a 'master' automounter map and it has the following format: # mount-point [map-type[,format]:]map [options] # For details of the format look at auto.master(5). # /misc /etc/auto.misc /mnt/auto /etc/auto.home --timeout 600 # ここを追加 }} こうすると /etc/auto.home の情報を拾って /mnt/auto 以下にマウントするようになる. ~ ~ **マウントの設定 [#p54dde48] 上で /etc/auto.home を読むように書いたので /etc/auto.home というファイルをつくって書く. #codeprettify{{ # server AAA, BBB AAA_home -fstype=nfs -rw,soft,intr 192.168.0.xxx:/raid BBB_home -fstype=nfs -rw,soft,intr 192.168.0.xxx:/raid AAA_home -fstype=nfs -rw,soft,intr 192.168.30.aaa:/raid BBB_home -fstype=nfs -rw,soft,intr 192.168.30.bbb:/raid }} ~ ~ **設定の反映 [#wc3f60e4] #codeprettify{{ sudo service autofs restart }}