Navigation : Top/NFS/autofs

内容

  • NFS関係の設定

マウントされる側の設定

/etc/exports

/home neworder(rw) 
/mnt/cdrom neworder 

書式

  • ()の中は,ro(read only) rw(read and write)
  • クライアントのrootに書き込み権を渡したい場合は(no_root_squash)を付記

マウントする側の設定

$ mkdir /mnt/auto

/etc/auto.masterの編集

# Sample auto.master file # Format of this file: 
# mountpoint map options # For details of the format look at autofs(8). 

/mnt/auto /etc/auto.misc rsize=8192, wsize=8192 --timeout 180 

/etc/auto.miscの編集

cdrom -fstype=iso9660,ro,user :/dev/cdrom 
floppy -fstype=auto,rw :/dev/fd0 
# 
neworder neworder:/home

うまく動作しなかったとき

サ−バ−側

/etc/exportsの内容を変更した場合

exportfs -ar

を実行する.