colinuxからwindowsをマウント
cofsを使う。
以下はcolinuxのcolinux.xml cofs_deviceという設定を追加する。
<colinux>
<block_device index="0" path="DosDevicesD:appscoLinuxFedora-7.img" enabled="true"></block_device>
<block_device index="1" path="DosDevicesD:appscoLinuxswap.img" enabled="true"></block_device>
<block_device index="2" path="DosDevicesD:appscoLinuxmount01.img" enabled="true"></block_device>
<cofs_device index="0" type="flat" path="DosDevicesD:svn" enabled="true">
<bootparams>root=/dev/cobd0 ro</bootparams>
<initrd path="initrd.gz"></initrd>
<img path="vmlinux" />
<memory size="128">
<network index="0" type="tap">
</network>
</memory></cofs_device></colinux>
あと、/etc/fstabに以下を追加 1行目は5Gのファイルをマウント用、2行目がcofsのマウント用
/dev/cobd2 /mnt ext3 defaults 0 1
cofs0 /win cofs defaults 0 0
これでWindowsのファイルは見れるようになったけど、変更や書き込みができない。
以下コマンドでllコマンドでファイル一覧などを見るとパーミッションとユーザー/グループはうまくいっている。。 けど、書き込むとエラーが発生する。
sudo mount -t cofs -o uid=xxx,gid=xxx,dmask=0700,fmask=0600 cofs0 /win/
vimだと解決方法が 口から出まかせ - coLinuxからcofsでマウントしたWindowsのファイルをvimで編集しようとしたときにエラーが出る と 川o・-・)<2nd life - Developer Enviroments Conference の発表資料にある。
" cofs's fsync
autocmd BufNewFile,BufRead /mnt/c/* set nofsync
emacsの場合は未解決のまま。。
以下は、coLinuxのHDD増強の参考リンク 第03回 「ハードディスクの容量拡大」 coLinux導入メモ
以下は、cofsの参考リンク coLinuxのメモ - coLinux-0.6.2へのアップグレード