On Wed, 25 Feb 2004, Per Olofsson wrote:
> If you're interested, you can get the source from
> <http://dsv.su.se/~pelle/ntfsimage/>.
OK but unfortunately I don't have much time for it. I'd prefer if you send
working patches for integrating ntfsimage and ntfsclone and I'd be _very_
glad to revise, test, use it.
> It worked when I tried it on a filesystem that I had created with
> mkntfs, but it didn't work on a real Windows partition.
Hmmm, if you go ahead I could take a look.
> I don't know if it actually compiles with the latest libntfs either.
I could also try this one.
> The format of the sparse images are documented in comments in the
> source code. The biggest problem with this code is that it doesn't do
> enough error checking.
Indeed. Error checking is very important, it's a must everywhere.
> The point of not calling the restoration utility ntfsrestore is that
> it isn't really specific to NTFS - it could work with any
> filesystem. Only the image creator (ntfsimage) is specific to NTFS.
Hmmm, Ian argued exactly the same way :) The problem, see e.g. how tools
are used:
gzip - gunzip
bzip2 - bunzip2
compress - uncompress
zip - unzip
tar - tar
xdelta - xdelta
There is a pattern. ntfsimage - ntfsrestore makes sense. Just using
ntfsimage to image/restore also makes sense.
{ntfsimage, fooimage, barimage, ...} - simgrestore somehow doesn't really
fit. Where will you distribute simgrestore? Everywhere? They will
conflict. Separate package? That's a maintaince and user pain.
> I'll have to look more at the ntfsclone source code and see if I can
> work out a patch,
In theory you should mostly look only at clone_ntfs() and integrate it
there.
> My ntfsimage utility also has the feature of skipping the page file
I thought about that also. My problem is, I don't have knowledge about if
the page file is allowed or it is possible to be used between reboots.
E.g. Linux swap can definitely be used. So IMHO it's better to backup
unnecessarily all the time than lose data potentially in some cases
rarely.
> and the bad clusters file,
Good point! ntfsclone incorrectly tries to save them, I added this to the
TODO for fixing.
> which perhaps also could be added to ntfsclone as a command line
> option.
Yes, the later needs to be fixed and the pagefile could have an option.
But I have one related question. How do you know where is the real page
file? There can be several files called pagefile.sys on an NTFS volume.
Szaka
|