Here's a handy tip for those of you (us!) Windows only guys that need more
space and swap memory in the cL session.
Here's how I did it:
1. Copy the Debian disk image and rename it in Windows (like
extra-partition.image or whatever)
2. Edit the XML file from coLinux and add a new line that points to the new
image; be sure to increase the Index to 1 (or 2, or 3, as you add things).
3. (Re)boot cL, and create a partition on /dev/cobd1 (assuming that this is
the first new image you added. The next will be at /dev/cobd2, etc). Use
fdisk to create a type 83 partition.
4. Reboot cL to recognize the new partition, and mke2fs (or whatever
filesystem you want) on /dev/cobd1.
5. I then mounted the new partition to /usr2, copied /usr contents to it,
then deleted /usr. Then rename /usr2 to /usr, and edit /etc/fstab to mount
/usr at /dev/cobd1.
Then, to add swap space:
1. In cL, do "dd if=/dev/zero of=swapfile.image bs=1024 count=250000" for a
256mb swapfile, or 128000 for 128mb, etc.
2. In cL do "mkswap swapfile.image".
3. Copy the swapfile.image to your Windows partition (I used smbclient on
one machine, and ftp on another...)
4. Add a new line to the XML to make sure it gets mounted, and edit the
/etc/fstab to include it as a swap partition so it gets mounted at boot
time! I used "/dev/cobd2 swap swap defaults 0 0"
Hope this helps someone...let me know so I'm not wasting everyone's time!
:-)
Richard
|