At 01:16 AM 25/02/2004 +0000, you wrote:
I know this page details how to merge a cow and how to create a cow, I
didn't see anything stating how to mount a cow outside of uml, I was
wondering if this was possible? If so please tell me how.
I'm no guru, so there may be a more elegant solution, but what I would do
to read a COW device without UML is merge the COW file with its backing
file into a (big) temp file and then loopback mount the temp file. This
would give you the ability to read the contents of the COW device, but
converting it back into a COW file would (AFAICT) be a non-trivial task.
You can convert back using a UML instance though, just mount both the
temporary image and the original backing file (with a new, empty COW file)
at the same time and use rsync (or some similar program) to copy over all
the changes from the temp file to the COW device. Voila, new COW file that
works with your original backing file.
You can also mount the COW device in UML and export it with NFS, or you can
export the raw device with the network block device server (although if I
recall correctly this will wreak havoc on any existing filesystem on the
device).
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|