Oct 23

摘抄高手的脚本,版本要老一些colinux063的,借鉴一下:

作了一个自动运行教本comp_develop_cn_ubuntu_nt.bat如下:
代码:
d:
cd D:\coLinux063
colinux-daemon.exe -c g:\MD_colinux_develop\comp_develop_cn_ubuntu.xml -t nt
--------

配置文件g:\MD_colinux_develop\comp_develop_cn_ubuntu.xml
-------
代码:
<?xml version="1.0" encoding="UTF-8">
<colinux>
   <block_device index="0" path="\DosDevices\g:\MD_colinux_develop\ubuntu-develop-cn-5.10-colinux-i386.img" enabled="true" />
   <block_device index="1" path="\DosDevices\e:\e_coLinux_server\swap_512Mb" enabled="true" />
  <block_device index="2" path="\DosDevices\x:\Server\temp_ex3_empty.img" enabled="true" />
  <block_device index="3" path="\DosDevices\x:\Server\temp_mysql_datadir.img" enabled="true" />
  <block_device index="4" path="\DosDevices\k:\Server\temp_mysql_tabledir.img" enabled="true" />
 

    <!-- This is an experimental feature, it may not function completely.
    <cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" />
    <cofs_device index="0" type="<flat | meta>" path="\DosDevices\<path>" enabled="true" />
   
     mount -t cofs cofs0:Share -o uid=dax,gid=dax,dmask=0700,fmask=0700 /mnt/windows
sudo mount -t cofs 0 -o uid=username,gid=root,dmask=0700,fmask=0700 /home/username/mnt/cofs/username
sudo mount -t cofs cofs0 /home/username/mnt/cofs/username
sudo mount -t cofs cofs1 /home/username/mnt/cofs/apt_archives

      Mount c:\Share as /mnt/windows and give dax exclusive full
      access to all the files and directories.
     
    An example fstab entry:

      cofs0:Share /mnt/windows cofs defaults 0 0
      cofs0 /home/username/mnt/cofs/username cofs defaults 0 0
    -->
   
    <cofs_device index="0" type="meta" path="\DosDevices\z:\MD_colinux_Backup\username" enabled="true" />
    <cofs_device index="1" type="meta" path="\DosDevices\f:\zyn_colinux_develop\var_cache_apt_archives\" enabled="true" />
    <cofs_device index="2" type="meta" path="\DosDevices\x:\" enabled="true" />

   <bootparams>root=/dev/cobd0</bootparams>
   <image path="vmlinux" />
   <memory size="160" />
   <network index="0" type="bridged" name="local" />
</colinux>
-------

主要你要指定正确的g:\MD_colinux_develop\ubuntu-develop-cn-5.10-colinux-i386.img路径
代码:
<block_device index="0" path="\DosDevices\g:\MD_colinux_develop\ubuntu-develop-cn-5.10-colinux-i386.img" enabled="true" />

代码:
<bootparams>root=/dev/cobd0</bootparams>