[dundee] Image hard drive to file
Robert McWilliam
rmcw at allmail.net
Mon Feb 25 00:11:29 GMT 2008
On Sun, 24 Feb 2008 23:39:58 +0000, "Andrew Clayton"
<andrew at digital-domain.net> said:
> On Sun, 24 Feb 2008 22:55:52 +0000 (GMT), Lee Hughes wrote:
>
> > you cant image a filesystem while it's mounted.
> >
> > either unmount it, or boot from a live disc, and do what you will to
> > it from there!
> >
>
> Works fine on a mounted fs.
Yes, being mounted doesn't actually cause problems, but being in use
will. If the partition you are imaging changes while you are taking the
image then you will get a corrupt image. dd basically copies data from a
source file to a destination file in chunks, starting at the beginning
and working its way through. Changes to a file system have to happen in
a couple of places to happen properly, e.g. to create a file you have to
put the data somewhere on the disk and update the file table to say
where the file is and how big it is and possibly some other stuff. If
that happens while dd is taking an image of the file system then the
image might only get some of the changes as the others are to areas
where dd has already made a copy of the old data.
To the OP: You'll want to ensure the file system isn't in use
(unmounting is the easiest way to be sure) and then run something along
the lines of:
dd if=/dev/<partition to image> of=/path/to/put/image
Robert
________________________________________________________
Robert McWilliam rmcw at allmail.net www.ormiret.com
Everything should be made as simple as possible - but no simpler.
-- Albert Einstein
More information about the dundee
mailing list