cygwin1.7のマウントテーブルのフォーマットについて

cygwin 1.7 からmountの設定の保存方法が、がレジストリベースから設定ファイルベースに変更になったのでそのファイルのフォーマットについて調べた。

設定ファイルは /etc/fstab 又は /etc/fstab/$USER となっている。
各レコードは空白で区切られたテキスト。
以下ファイルの各フィールドの説明

1.ファイルシステム上のパス

windowsから見たパス
又はブロックデバイス(/proc/*とか?)
※パスの区切りには'/'を使うこと

2.マウントポイント

cygwinから見たパス

3.ファイルシステムのタイプ

任意の文字列。実際には使用されないが注釈として使用できる。

4.オプション

binary, text とか user, nouserとか、詳細は「参考」のリンク先を参照。

5. 予備

とりあえず"0"でいい?

6. 予備

とりあえず"0"でいい?

設定例

抜粋

    *Just a normal mount point:

      c:/foo /bar fat32 binary 0 0

    *A mount point for a textmode mount with case sensitivity switched off:

      C:/foo /bar/baz ntfs text,posix=0 0 0

    *A mount point for a Windows directory with spaces in it:

      C:/Documents\040and\040Settings /docs ext3 binary 0 0

    *A mount point for a remote directory without ACL support:

      //server/share/subdir /srv/subdir smbfs binary,noacl 0 0

    *This is just a comment:

      # This is just a comment

    *Set the cygdrive prefix to /mnt:

      none /mnt cygdrive binary 0 0