# The default kernel
kernel=vmlinux
# File contains the root file system.
# Download and extract preconfigured file from SF "Images for 2.6".
cobd0="f:/debian/debian.fs"
# Swap device, should be an empty file with 128..512MB.
cobd1="F:/debian/swap.fs"
cobd2="F:/debian/debian-504-i386-businesscard.iso"
# Tell kernel the name of root device (mostly /dev/cobd0,
# /dev/cobd/0 on Gentoo)
# This parameter will be forward to Linux kernel.
#root=/dev/cobd0 //这个地方貌似必须注释掉??
# Additional kernel parameters (ro = rootfs mount read only)
ro
# Initrd installs modules into the root file system.
# Need only on first boot.
initrd="f:/debian/linux/initrd.gz"
# Maximal memory for linux guest
mem=256
eth0=slirp
(2.3)开机conf文件,安装debian ,可以写成一个bat批处理
colinux-daemon.exe @debian.conf
(3)安装过程
(3.1)安装过程中当它抱怨没有光盘时,请手工指定"/dev/cobd2"。注意选择无module仍继续。
(3.2)安装过程中当准备磁盘/分区问题时,先如下手工操作:
使用第二个虚拟控制台: (ALT+F2)
mke2fs /dev/cobd0
mkdir /target
mount /dev/cobd0 /target
mkswap /dev/cobd1
swapon /dev/cobd1
ALT+F1 切换到刚刚的控制台
然后选择<Go Back>,再仍选择分区操作,指定cobd0为/且ext3格式,cobd1为swap。
(3.3)安装GRUB
安装GRUB会失败,但是其实不需要osloader,因为colinux启动时并不是从root盘上读kernel。
可以reboot了。
(4)下次开机
下次开机之前修改conf文件到正常,比如如下。
# The default kernel
kernel=vmlinux
# File contains the root file system.
# Download and extract preconfigured file from SF "Images for 2.6".
cobd0="f:/debian/debian.fs"
# Swap device, should be an empty file with 128..512MB.
cobd1="F:/debian/swap.fs"
#cobd2="F:/debian/debian-504-i386-businesscard.iso"
# Tell kernel the name of root device (mostly /dev/cobd0,
# /dev/cobd/0 on Gentoo)
# This parameter will be forward to Linux kernel.
root=/dev/cobd0
# Additional kernel parameters (ro = rootfs mount read only)
ro
# Initrd installs modules into the root file system.
# Need only on first boot.
initrd="f:/coLinux/initrd.gz" //这里要换成colinux默认的引导文件。第一次重启之后,把该行注释掉。只有安装后的第一次启动是需要它来引导的。
# Maximal memory for linux guest
mem=256
eth0=slirp
进入系统后更新安装源
cd /etc/apt
cp source.list source.list.bak
vi source.list
deb http://debian.anheng.com.cn/debian etch main non-free contrib
deb-src http://debian.anheng.com.cn/debian etch main non-free contrib
deb ftp://debian.anheng.com.cn/debian etch main non-free contrib
deb-src ftp://debian.anheng.com.cn/debian etch main non-free contrib
deb http://debian.cn99.com/debian/ testing main non-free contrib
deb-src http://debian.cn99.com/debian/ testing main non-free contrib
#deb http://debian.cn99.com/debian/ sid main non-free contrib
#deb-src http://debian.cn99.com/debian/ sid main non-free contrib
deb http://debian.cn99.com/debian-non-US testing/non-US main non-free contrib
deb-src http://debian.cn99.com/debian-non-US testing/non-US main non-free contrib
deb http://debian.ustc.edu.cn/debian testing main non-free contrib
deb-src http://debian.ustc.edu.cn/debian testing main non-free contrib
deb http://debian.ustc.edu.cn/debian-non-US testing/non-US main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-non-US testing/non-US main non-free contrib
deb http://debian.ustc.edu.cn/debian-security testing/updates main
#deb http://debian.cn99.com/debian/ testing main
#deb-src http://debian.cn99.com/debian/ testing main
colinux如何挂载一个新的linux分区
现成的EXT3FS文件系统
http://gniarf.nerim.net/colinux/fs/
preformatted images of ext3fs partitions of specific sizes to use as block devices for coLinux.
sizes are in Mb.
to use, uncompress with bunzip2, then add a line to default.colinux.xml :
<block_device index="2" path="/DosDevices/c:/colinux/fs_2048Mb" enabled="true"></block_device>
and a line to your /etc/fstab file : /dev/cobd2 /mnt ext3 defaults 0 0
please feel free to redistribute these files.
*IMPORTANT* the file 10g-ext3.bz2 can only be used under NTFS, not FAT32.
=====================================
交换分区
big files of specific sizes to use as swap block devices for coLinux.
sizes are in Mb.
you still have to edit /etc/fstab and add a line similar to :
/dev/cobd1 swap swap defaults 0 0
for a block_device declared as :
<block_device index="1" path="/DosDevices/c:/swap/blank_64Mb" enabled="true"></block_device>
you don't have to type mkswap /dev/cobd1 since it's already done.
(use your favorite winzip clone or bunzip2 from Cygwin or somewhere else :
http://gnuwin32.sourceforge.net/packages/bzip2.htm
don't complain too much about .bz2 files since Root Filesystem
Images for coLinux (Debian, Gentoo) are provided as .bz2 files too.)
please feel free to redistribute these files.