LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-28-2006, 12:51 AM   #1
ferdog
LQ Newbie
 
Registered: Jul 2003
Location: Pennsylvania
Distribution: Arch Linux
Posts: 10

Rep: Reputation: 0
Clone Windows From Linux Question


A friend asked me to help him upgrade his old computer by installing a larger harddrive. His computer currently is running Windows XP and has a 10GB Western Digital harddrive in it. He doesn't want to keep the old drive so the new drive I install for him is going to be the only one in the machine.

To avoid having to reinstall Windows and all the headaches that come along with that I have installed a 200GB Seagate drive as a second harddrive in the machine for now. My plan is to clone his current Windows XP install to the new larger drive.

After physically installing the harddrive I booted into Knoppix. The harddrives are seen as this:

Code:
/dev/hda - 10GB Western Digital
/dev/hdb - 200GB Seagate
My first thought was to use a command like this:
Code:
dd if=/dev/hda of=/dev/hdb
but then I read that if I run that command on two different models of harddrives that problems will occur. For instance if I were to run that exact command then the 200GB Seagate would be seen as a 10GB Western Digital because "dd copies the entire disk image (including the label {vtoc})." I found that quote in an old forum post in a google search I did. It is here if you want to look at it: http://www.unix.com/archive/index.php/t-7243.html

So is dd the way to go or not? Is there another way to do this?

My ultimate question is - what is the best opensource/free, Unix/Linux method to clone an existing Windows XP install from one harddrive to another in the same system?
 
Old 09-28-2006, 01:06 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Try this thread for the definitive dd command guide.

Baldrick
 
Old 09-28-2006, 12:18 PM   #3
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
I'd probably use ntfsclone (from the ntfsutils package) for this, rather than dd.
 
Old 09-28-2006, 12:37 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Yes it will work.

Just did one myself to transfer a 300Gb sata into a 400Gb sata.

The 300Gb image is copied to the 400Gb disk which will be left with 100Gb unallocated empty space afterward. It took 1 h 37m running at 51.9Mb/s transfer rate when I set the block size bs=32768. The distro was Kanotix Live CD. A software like Partition Magic can incoporate the empty space into any partition in minutes.

Take a look at my signature as I documented the first Link to use Linux to clone XP.

dd will work on any smaller source disk into a bigger target disk.

Last edited by saikee; 09-28-2006 at 12:40 PM.
 
Old 09-28-2006, 02:04 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
saikee - That was a good write-up you linked to over on the other forum.

You said one thing over that that really caught my attention:
Quote:
Using Linux already installed in the hard disk, instead of running a Live CD, can half the cloning time.

The recorded times for a 25Gb XP partition with about 14 Gb data are

2480 sec or 10.56 Mb/s IDE to SATA using Live CD Knoppix 3.6
1290 sec or 20.30 Mb/s IDE to SATA using Knoppix 3.6 installled in hard disk
1050 sec or 24.90 Mb/s IDE to IDE using Knoppix 3.6 installed in hard disk
Do you know why this is? I can't come up with a good reason for the slower copy using a LiveCD. Other than the initial load speed of reading dd from a CD vs. a HDD, I would have thought everything else would heave been done from memory. And compared to the copy time for a HDD, load time for the dd command would be totally insignificant. Was this test done on the same system using the same source/target HDD's?
 
Old 09-28-2006, 02:54 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Yep I used Knoppix 3.6 at the time.

25Gb is pretty small by today's standard for cloning and so the cache menory size would have played a part.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open Source Windows Clone Coming Soon? LXer Syndicated Linux News 0 08-30-2006 09:03 AM
looking for GUI distro that isn't windows clone DarthPooh Linux - Newbie 71 04-02-2006 08:31 PM
LXer: Open Source Clone of Windows Not a Ripoff? LXer Syndicated Linux News 0 02-23-2006 12:46 PM
Liquid Weather or KWeather clone for Windows? Spasmolytic General 2 08-18-2004 07:14 PM
Windows NT looking more like a Linux Clone Qebex Linux - Software 11 09-25-2002 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration