Hello dear guest!

Boot Land is a community driven pc software site established since 2006 and focused on recovery/backup boot disks, research of Microsoft Windows 2000/XP/2003/Vista/7 install/deployment/lease/antivirus/antispam tools, customizing Microsoft Windows PE administration systems and even learning how to recover computer data from disaster situations!

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register


 CloneDisk, freeware
Rating 5 V
post Jul 19 2009, 06:17 PM
Post #1
erwan.l
Frequent Member   ***
Group: Members

  Joined: 9-May 09 From: Nantes - France

Posts: 163
Thank(s): 32


France


Hello Gents,

I made a small freeware app that allows one to clone a drive (physical or logical) to/from another drive or image.

On top of that the tool can
-save/restore the MBR or BS,
-delete the layout of the drive,
-wipe with 0's,
-resize (be careful with that : I would defrag the drive by moving all bytes to the beginning of the disk first)
-create a sparse file,
-make a vmdk/vmx from a raw image file to boot your cloned disk in vmware,
-turn a physical disk raw image file into a VHD file and the other way around,
-install grub4dos MBR,
-do various operations on the registry around booting,
-copy all files from one logical drive to another,
-format a usb pen to ntfs,
-read faulty devices (with bad sectors for instance).

Tool can be downloaded here : http://erwan.l.free.fr/clonedisk/ or here
http://erwan.boot-land.net/clonedisk/

There are plenty of other tools (and possibly better) that can do the same.
What I was looking for was a GUI (no command line tool), merging several functionalities at once and free.

Feedback and requests welcome smile.gif

Regards,
Erwan.


--------------------
Erwan L.
http://erwan.l.free.fr/


5 user(s) said "Thank you!" to erwan.l for this fantastic post:
amalux, Frankstar, maanu, Nuno Brito, oriensol
+Quote Post
13 Pages V   1 2 3 > »   
Start new topic
Replies (1 - 9)
post Jul 19 2009, 06:35 PM
Post #2
Nuno Brito
Platinum Member   ******
Group: .script developer

  Joined: 13-July 06 From: Pittsburgh

Posts: 8,400
Thank(s): 419


Portugal


Very good work, thank you for sharing.

I can definitively see some interest in using this tool to convert some physical server machines onto emulated machines.

Any chances of also adding support to create .VDI (Virtual Box) or .VHD (Virtual PC) images?

.VDI would be interesting because both VirtualBox and Ubuntu are what we currently use for running these emulated machines and .VHD would be interesting because of the support to boot directly from .VHD files on newer Windows platforms.

Nevertheless, it's already a very useful tool! ok.gif

btw: Wouldn't this presentation be better placed on the project forge section?


--------------------


Join us at the Virus removal forums!
+Quote Post
post Jul 19 2009, 06:42 PM
Post #3
erwan.l
Frequent Member   ***
Group: Members

  Joined: 9-May 09 From: Nantes - France

Posts: 163
Thank(s): 32


France


Hi Nuno Brito,

VHD support is on its way.
A few more lines of code and version 1.4 will be there.

VDI, if you have some specs or links, I'd gladly have a look at it.

About project forge : I did not dare to post there smile.gif

Regards,
Erwan


--------------------
Erwan L.
http://erwan.l.free.fr/
+Quote Post
post Jul 19 2009, 08:50 PM
Post #4
Nuno Brito
Platinum Member   ******
Group: .script developer

  Joined: 13-July 06 From: Pittsburgh

Posts: 8,400
Thank(s): 419


Portugal


QUOTE (erwan.l @ Jul 19 2009, 05:42 PM) *
VHD support is on its way.
A few more lines of code and version 1.4 will be there.

Good to hear this. smile.gif


QUOTE
VDI, if you have some specs or links, I'd gladly have a look at it.
I *think* this is the most complete guide on the binary specs: http://forums.virtualbox.org/viewtopic.php?t=8046

It's a work in progress, the topic author seems a very good person to exchange questions about the inner functioning of this binary structure.

QUOTE
About project forge : I did not dare to post there smile.gif

Are you kidding? This is a five star project forge entry! 1st.gif

I'm already imagining it as a tool to move an offline server or desktop OS onto a virtual machine or automate the whole OS backup as VDI onto another machine on the LAN to be used as direct replacement of the physical machine in case of hardware malfunction, very cool stuff.

cheers.gif


--------------------


Join us at the Virus removal forums!
+Quote Post
post Jul 20 2009, 10:07 AM
Post #5
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,226
Thank(s): 561


Italy


QUOTE (erwan.l @ Jul 19 2009, 08:42 PM) *
VDI, if you have some specs or links, I'd gladly have a look at it.


Also a few "sparse" infos can be found here:
http://www.boot-land.net/forums/index.php?showtopic=4856
(where jerh/Jerome posted his thread referened by Nuno above)

OT, but not much, surprisingly the qemu-img.exe even in latest Qemu (0.10.5), which can be found here for Windows:
http://www.bttr-software.de/qemu/
appears not to have take notice of the success of Virtualbox and does not provide a conversion method for .vdi images:

CODE
C:\qemuman>qemu-img.exe
qemu-img version 0.10.5, Copyright (c) 2004-2008 Fabrice Bellard
usage: qemu-img command [command options]
QEMU disk image utility
...
...
Supported formats: nbd parallels qcow2 vvfat vpc bochs dmg cloop vmdk qcow host_
device raw



Though an unofficial patch exists (that may be of inspiration for your code):
http://qemu-forum.ipi.fi/
http://qemu-forum.ipi.fi/viewtopic.php?f=2&t=4788

Once you get into the .vdi thing, you may also want to provide an updated patch for it . unsure.gif

cheers.gif


jaclaz

P.S.: Posting a link to this thread here wink.gif:
http://www.msfn.org/board/index.php?showtopic=100299&hl=


--------------------

Light Blue Ribbon Campaign for Freedom of Skin

But ... then, why?
+Quote Post
post Jul 20 2009, 07:49 PM
Post #6
erwan.l
Frequent Member   ***
Group: Members

  Joined: 9-May 09 From: Nantes - France

Posts: 163
Thank(s): 32


France


Thanks Jaclaz for the links and advertisement on msfn smile.gif

I am almost done with VHD, only the checksum gives me a hard time sad.gif
I am stuck on a dumb function for hours and it gets me mad ...

This C function

ULONG
CalculateChecksum(
__in_bcount(Length) PVOID Buffer,
__in ULONG Length
)
/*++
Routine Description:
This routine calculates the one's complement of the checksum of all the
bytes with the given range, excluding the address to ignore.
Arguments:
Buffer - Pointer to the buffer to calculate the checksum for.
Length - Length of the buffer in bytes.
Return Value:
Checksum.
--*/
{
PUCHAR address = NULL;
ULONG checksum = 0;
checksum = 0;
address = (PUCHAR)Buffer;
while (Length != 0)
{
checksum += *address;
Length -= 1;
address += 1;
}
return ~checksum;
}

to this delphi code

function CalculateChecksum(var buf; length:ulong):ulong;
var
p:pword;
sum: ulong;
begin
p:=@buf;
sum:=0;
while (Length <> 0) do
begin
sum := sum + uchar(p^);
dec(length);
inc(p);
end;
Sum := not Sum;
result:=sum;
end;

produces a slightly different number and I dont get it sad.gif

If a developper nearby happens to see the light...

About VDI, I am quite confident (maybe I should not...) that I'll manage it.

Coming back to VHD, is there any disk driver I should inject in my XP test before I make a VHD of it?

Thanks,
Erwan.


--------------------
Erwan L.
http://erwan.l.free.fr/
+Quote Post
post Jul 20 2009, 08:09 PM
Post #7
erwan.l
Frequent Member   ***
Group: Members

  Joined: 9-May 09 From: Nantes - France

Posts: 163
Thank(s): 32


France


About the C code above, ignore it, got it working smile.gif

/Erwan


--------------------
Erwan L.
http://erwan.l.free.fr/
+Quote Post
post Jul 20 2009, 09:48 PM
Post #8
erwan.l
Frequent Member   ***
Group: Members

  Joined: 9-May 09 From: Nantes - France

Posts: 163
Thank(s): 32


France


Version 1.4 can now backup a physical disk to an VHD (VirtualPC) file.

I had to force heads to 16 and sectorspertrack to 63 (cylinders are then calculated on the total_sectors value of the source disk).
I am not sure (yet) if this is by the book but I was able to mount the VHD in a VirtualPC session and access my partitions from there.
I did not tested fully a boot from such a VHD file yet.

Regards,
Erwan.


--------------------
Erwan L.
http://erwan.l.free.fr/
1 user(s) said "Thank you!" to erwan.l for this fantastic post:
Nuno Brito
+Quote Post
post Jul 20 2009, 10:29 PM
Post #9
Nuno Brito
Platinum Member   ******
Group: .script developer

  Joined: 13-July 06 From: Pittsburgh

Posts: 8,400
Thank(s): 419


Portugal


Thanks for the update, that was really fast! smile.gif


--------------------


Join us at the Virus removal forums!
+Quote Post
post Jul 20 2009, 11:34 PM
Post #10
Lancelot
Frequent Member   ****
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 734
Thank(s): 621


Turkiye


QUOTE (Nuno Brito @ Jul 19 2009, 08:35 PM) *
using this tool to convert some physical server machines onto emulated machines.
yummy smile.gif

Thanks a lot erwan.l cheers.gif


--------------------
I Galapo's LiveXP and King Amalux's Great LiveXP Package (tutorial and everything)
Lancelot Tips For LiveXP
I hate Medusa problems of WinBuilder, Cryptic codes, syntax rules fakingly mismatching working lines, not having even basic fundemantal syntax rules and mostly 'lies' and 'post games'.
('post games' = includes dishonest, childish posts that have goal to annoy others in community)
+Quote Post

13 Pages V   1 2 3 > » 
Reply to this topic
2 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts A tool like this exists ? (more like clonedisk)
8 maanu 672 20th May 2010 - 09:53 AM
Last post by: Wonko the Sane