トップ RSS 2.0 RSS 0.91 Atom 1.0

Yet Another KASE's Page(仮)

memo, note...
www.flickr.com
hkase's Ducks photoset hkase's Ducks photoset

2006年05月18日

autofsを導入

autofs

autofsはnfsやリムーバブルメディアを、そのマウントポイントにアクセスが あった時に自動的にマウントするしくみ。

導入すると、リムーバブルメディアはマウント作業が実質不要になるので便利。

導入の手順は Gentoo-wiki [1] を参考に。

[1]http://gentoo-wiki.com/HOWTO_Auto_mount_filesystems_(AUTOFS)

とりあえずUSBメモリを。

設定ファイルは、

auto.master:

/mnt/usb /etc/autofs/auto.usb --timeout=10 --ghost

10秒アクセス無しでアンマウント。

auto.usb:

usbmem -fstype=ext2,user,noauto,noatime :/dev/sda2

USBメモリはパーティションを切っていて、普段linuxからはext2フォーマットの 第2パーティションしか使わない。

[カテゴリー:linux] [reST]