From: ePAc <ep...@ko...> - 2004-02-11 19:22:46
|
> <?xml version="1.0" encoding="UTF-8"?> > <colinux> > <block_device index="0" > path="\DosDevices\c:\coLinux\Debian-3.0r0.ext3.1gb" > enabled="true"> > </block_device> > <block_device index="1" > path="\DosDevices\c:\coLinux\cobd.1" > enabled="true"> > </block_device> > <bootparams>root=/dev/cobd0</bootparams> > <image path="vmlinux"></image> > </colinux> that is good. > > * startup coLinux-daemon with the new config [ > "colinux-daemon -d -c > colinux.xml" ] > * login as root that is not necessary: > * $ mkdir /mnt/cobd1 > * $ mkfs.ext3 /dev/cobd1 > * $ mount /dev/cobd1 /mnt/cobd1 > * $ cd /mnt/cobd1 > * $ dd if=/dev/zero of=swapfile bs=1024 count=262144 > [ 1024*bs*256=256MB > swapfile ] > * edit /etc/fstab and add entries for cobd1 and the > swapfile in mount order, > like: > > /dev/cobd0 / ext2 defaults 0 1 > proc /proc proc defaults 0 0 > /dev/cobd1 /mnt/cobd1 ext2 defaults 0 2 > /mnt/cobd1/swapfile none swap defaults 0 0 > > * $ mount -a > * $ swapon -a > that on the other hand, is extra work. why not use the "raw" cobd for swap ? you should be able to do: mkswap /dev/cobd1 and add ---8<---8<--- /dev/cobd1 none swap defaults ---8<---8<--- to your fstab and have the same result, without using an extra mountpoint... then the same swapon -a .. the fstab, the next time you boot should take care of doing the swapon for you.. :o) Jok --- Nothing is foolproof to a sufficiently talented fool... oo ,(..)\ ~~ |