From: Michael H. <hal...@ho...> - 2004-02-11 18:30:32
|
Jonathan, Have you tried to make the 4 gig file? If so what did you do in order to format it? I have not been able to do so sucessfully. Mike >From: Jonathan Ballard <sac...@ya...> >To: 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 09:01:55 -0800 (PST) > > > Is there an easy way to increase total memory? 29MB >just isn't enough to >do > > anything graphical. > >An easy way? Okay: > >* shutdown coLinux [ "shutdown -h now" ] >* change directory to your coLinux installation [ >C:\coLinux by default ] >* copy "Debian-3.0.r0.ext3.1gb" to "cobd.1" >* copy "default.colinux.xml" to "colinux.xml" >* edit colinux.xml to add device index #1, like: > ><?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> > >* startup coLinux-daemon with the new config [ >"colinux-daemon -d -c >colinux.xml" ] >* login as root >* $ 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 > >If you used my numbers, you have an extra 256MB of >memory. Since coLinux >runs on NT, there is no need to format a swap >partition or device unless you >need the extra speed with raw access. The swapfile >should perform >practically the same as a swap device. And, you can >use the extra rest of >cobd1 as a regular mounted drive with a swapfile. > >If you want a larger cobd1 filesystem before you make >cobd1, from NT: > >copy >Debian-3.0.r0.ext3.1gb+Debian-3.0.r0.ext3.1gb+Debian-3.0.r0.ext3.1gb+Debian- >3.0.r0.ext3.1gb cobd.1 > >That would give you a 4GB device. > >I thought I would make a utitility to do these steps >easier. Still >thinking... > > > > >__________________________________ >Do you Yahoo!? >Yahoo! Finance: Get your refund fast by filing online. >http://taxes.yahoo.com/filing.html _________________________________________________________________ Optimize your Internet experience to the max with the new MSN Premium Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ |