|
From: Robert C. <rw...@al...> - 2004-06-03 22:18:28
|
On Thursday, Jun 3, 2004, at 15:15 US/Central, tei wrote:
> the better way is to copy & paste the original gentoo image to a new
> one, then mount that clone (editing xml is need to add the new image),
> if you can move to the new image all from /usr and mount the image at
> /, BINGO!..
Sounds like we may be talking about the same thing. The only
difference is that I'm using Debian. Here are the steps I took:
from within Windows ...
* download or create a file with a bunch of zeros. I used one of
the swap files and uncompressed it with 7-zip:
o http://gniarf.nerim.net/colinux/swap/swap_64Mb.bz2
* created a new root fs that has the zeros appended
o copy /B root_fs + swap_64Mb root_fs.new
* modified defaults.colinux.xml to have a device point to the new
image
o <block_device index="2"
path="\DosDevices\c:\coLinux\root_fs.new" enabled="true" />
* started colinux
from within colinux ...
* checked current file system size
o df
* fsck'd the new filesystem
o e2fsck -f /dev/cobd2
* expanded the new filesystem
o resize2fs -f /dev/cobd2
* fsck'd the new filesystem
o e2fsck -f /dev/cobd2
* mounted new filesystem
o mkdir /mnt/root_fs.new && mount /dev/cobd2 /mnt/root_fs.new
* verified new size
o df
* exited colinux
from within windows ...
* renamed root_fs to root_fs.bak
* renamed root_fs.new to root_fs
* modified defaults.colinux.xml to comment-out block_device #2
* started colinux
from within colinux ...
* verified expanded filesystem
o df
For a wiki version, see "Expanding the root filesystem" towards the
bottom of the page:
http://cwelug.org/cgi-bin/wiki.cgi?CoLinux
It seems to have worked for me, but YMMV.
Regards,
- Robert
|