From: Michael H. <hal...@ho...> - 2004-02-11 19:40:24
|
Doing it that way gives the following error: mkswap: error: swap area needs to be at least 40kB Usage: mkswap [-c] [-v0|-v1] [-pPAGESZ] /dev/name [blocks] and I've been spoiled with gentoo linux... in order to make a swap all I normally need to type is 'mkswap /dev/hdxx' >From: ePAc <ep...@ko...> >To: Jonathan Ballard <sac...@ya...> >CC: Michael Haller <hal...@ho...>, coLinux Development ><col...@li...> >Subject: Re: [coLinux-devel] Is there a way to increase total memory? >Date: Wed, 11 Feb 2004 11:22:54 -0800 (PST) > > > <?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 >,(..)\ > ~~ _________________________________________________________________ Find great local high-speed Internet access value at the MSN High-Speed Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ |