You can clone one partition at a time or the whole disc with dd also you
will need to put grub on your cloned disc. The best open source tool is the
command line. and command dd is the way to go. here is the ubuntu way.

We’ll be using the terminal (*Applications-> Accessories-> Terminal*) and
the dd command to do this. You’ll also need to have your second disk up and
running when we get going. You can either have it installed and mounted
internally or use an external disk enclosure and USB or Firewire. (Note:
Doing this via USB 1 will be excruciatingly slow!)

You’ll also want to either be cloning your hard drive to one of the exact
same size, or if you have a larger disk, make a partition of the same size
on it and clone to that. Then, use an Ubuntu liveCD to change the partition
size (*System-> Administration-> Partition Editor*). Lastly, you’ll need a
LiveCD <http://www.ubuntu.com/getubuntu>.


On to the good stuff. Got both disks plugged in? Good! Now you’ll need to
figure out which disk you are copying from and which disk you are copying
too. In your terminal, type:

df -h

Look first for the partition that’s mounted at root, or ‘/’. Here’s what my
root partition looks like.

Filesystem Size Used Avail Use% Mounted on

/dev/sda1 71G 46G 22G 68% /

If you’re using a SATA drive it will appear like that. IDE should be
/dev/hda1. See that slash below the Mounted on? That’s the root drive.

Now you’ve got to locate the drive you’re copying too. The same *df
-h*command will do the trick. Look for another disk mounted on
* /dev/*****. If you’re not sure what you’re looking for, first run the df
-h command without your second disk mounted. Then plug the 2nd disk in (be
sure to shut down if you’re doing this inside your machine and not via USB
or FireWire) and run the *df -h* command again. The newest partition that
appears is what you’re looking for!

So if your current root partition is* /dev/sda1* and the partition you’re
going to copy to is */dev/sdb1 *(a USB mounted drive) here’s the command
you’ll need to type in your terminal:

sudo dd if=/dev/sda1 of=/dev/sdb1

Replace with the correct paths for your drives if they differ. It’s going to
take a while, so grab a book or start up a movie. Maybe go to bed.

Once it’s complete, you’ve got yourself a brand new copy of your current
Ubuntu install. You’re not quite done yet though. Now you’ve got to install
Grub on your new disk so you can boot from it. Make sure your new disk is
attached to your machine and your old disk is unplugged and boot into the
Ubuntu LiveCD.

Once your machine boots up, open up a terminal session and type:

sudo grub

Grub will launch and give you the *grub>* prompt. Here, type:

find /boot/grub/stage1

You should see something come back that looks like *hd(0,0)*. Jot that down,
you’ll need it in a second.

Now, still in the *grub>* prompt, type:

root hd(0,0)

You’ll put in whatever result you go above - it may be different than *
hd(0,0)*.

Once that completes, type:

setup (hd0)

Even if you got a result that differs from* hd(0,0) *above.

Type:

quit

And you’re out of grub. Restart your machine, removing the LiveCD and you
should be up and running on your new hard drive. You may also encounter a
problem on your first boot where the system will try to scan your hard drive
for bad sectors. If that fails, you’ll find yourself in a root terminal
session. Just type:

fsck

Let the disk check finish and you should be good to go !


On Wed, Nov 25, 2009 at 12:00 PM, <tclug-list-request at mn-linux.org> wrote:

> Send tclug-list mailing list submissions to
>        tclug-list at mn-linux.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> or, via email, send a message with subject or body 'help' to
>        tclug-list-request at mn-linux.org
>
> You can reach the person managing the list at
>        tclug-list-owner at mn-linux.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of tclug-list digest..."
>
>
> Today's Topics:
>
>   1. memory chips (Chris G.)
>   2. HD Cloning (PJ Crump)
>   3. Re: HD Cloning (Yaron)
>   4. Re: HD Cloning (Brian Lawrence)
>   5. Re: HD Cloning (Isaac Atilano)
>   6. Re: HD Cloning (Mr. B-o-B)
>   7. Re: HD Cloning (Steve McGrath)
>   8. Re: HD Cloning (Adam Morris)
>   9. Re: HD Cloning (Troy)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Nov 2009 21:58:53 -0600
> From: "Chris G." <thoth.serath at gmail.com>
> Subject: [tclug-list] memory chips
> To: tclug-list at mn-linux.org
> Message-ID:
>        <7c055dc50911241958o24b49257v66a84aa048694237 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> i am looking for 2 pci 100 memory chips for a friends computer.  i may have
> the pci part messed up.  it is for a hp pavillion 7845.  she has 2 128's
>  in
> there now  i was hoping for 2 256's.  i have a bunch of ram  just not what
> she needs.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20091124/26c3b4ad/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 25 Nov 2009 10:32:02 -0600
> From: PJ Crump <pjcrump at bitstream.net>
> Subject: [tclug-list] HD Cloning
> To: TCLUG List <tclug-list at mn-linux.org>
> Message-ID: <4B0D5C02.7020402 at bitstream.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I have a laptop (Ubuntu/Win) dual boot and I have been wading through
> options to clone the current drive to a new one..  Any one have an
> suggestions for open source Cloning tools?  I have looked at HDClone,
> PartImage, g4u but cant come to a decision.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 25 Nov 2009 10:40:45 -0600 (CST)
> From: Yaron <tclug at freakzilla.com>
> Subject: Re: [tclug-list] HD Cloning
> To: TCLUG <tclug-list at mn-linux.org>
> Message-ID:
>        <alpine.DEB.2.00.0911251038490.23144 at localhost.localdomain>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>
> On Wed, 25 Nov 2009, PJ Crump wrote:
>
> > Any one have an suggestions for open source Cloning tools?  I have
> > looked at HDClone, PartImage, g4u but cant come to a decision.
>
>
> Well the super-simple way is dd. But that only really works on very
> similar sized drives. I copy drives like that all the time.
>
>
> -Yaron
>
> --
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 25 Nov 2009 10:49:48 -0600
> From: "Brian Lawrence" <blawrence at qwest.net>
> Subject: Re: [tclug-list] HD Cloning
> To: <pjcrump at bitstream.net>,    "'TCLUG List'" <tclug-list at mn-linux.org>
> Message-ID: <69B21B6CC1B142629C283E631583E6F9 at dcm.int>
> Content-Type: text/plain;       charset="us-ascii"
>
> I use G4L and G4U to clone Linux server drives but I prefer G4L because of
> the driver support.
>
> http://freshmeat.net/projects/g4l/
>
> -----Original Message-----
> From: tclug-list-bounces at mn-linux.org
> [mailto:tclug-list-bounces at mn-linux.org] On Behalf Of PJ Crump
> Sent: Wednesday, November 25, 2009 10:32 AM
> To: TCLUG List
> Subject: [tclug-list] HD Cloning
>
> I have a laptop (Ubuntu/Win) dual boot and I have been wading through
> options to clone the current drive to a new one..  Any one have an
> suggestions for open source Cloning tools?  I have looked at HDClone,
> PartImage, g4u but cant come to a decision.
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 25 Nov 2009 11:04:54 -0600
> From: "Isaac Atilano" <aristophrenic at warpmail.net>
> Subject: Re: [tclug-list] HD Cloning
> To: "Yaron" <tclug at freakzilla.com>, "TCLUG" <tclug-list at mn-linux.org>
> Message-ID: <1259168694.7066.1347029463 at webmail.messagingengine.com>
> Content-Type: text/plain; charset="us-ascii"
>
> On Wed, 25 Nov 2009 10:40 -0600, "Yaron" <tclug at freakzilla.com> wrote:
>
> > On Wed, 25 Nov 2009, PJ Crump wrote:
> > > Any one have an suggestions for open source Cloning tools?
>
> > Well the super-simple way is dd. But that only really works on very
> > similar sized drives. I copy drives like that all the time.
>
> Using standard Unix utilities:
>
> dd works great for backing up on the device level.
> This means that if you back up a 2Gb partition using the device file,
> e.g. /dev/sdb3, then the restore will write back a 2Gb partition image
> to the location you specify, so most likely you'll be writing back to
> the device file of a new partition.
> This also works at the disk level, so you can back up the entire disk
> with all partitions by referencing the device file, e.g. /dev/sdb.
>
> For backing up at the file system level, you can still use dd but it
> makes more sense to use a utility that reads the file system such as
> tar. This allows you to limit your backup to specific files and
> directories.
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 25 Nov 2009 11:07:28 -0600
> From: "Mr. B-o-B" <mkebob1134 at netscape.net>
> Subject: Re: [tclug-list] HD Cloning
> To: pjcrump at bitstream.net
> Cc: TCLUG List <tclug-list at mn-linux.org>
> Message-ID: <4B0D6450.7000203 at netscape.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> PJ Crump wrote:
> > I have a laptop (Ubuntu/Win) dual boot and I have been wading through
> > options to clone the current drive to a new one..  Any one have an
> > suggestions for open source Cloning tools?  I have looked at HDClone,
> > PartImage, g4u but cant come to a decision.
> >
> > _______________________________________________
> > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> > tclug-list at mn-linux.org
> > http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
> I like clonezilla.
>
> http://www.clonezilla.org
>
> I use the hell out of it @ work, and only have nice things to say about
> it.  There are some good how-to's on using this as well.
>
> Check it out.
>
> Good Luck!
>
> Bob
>
> --
> We are building a fighting force of extraordinary magnitude.
> We forge our tradition in the spirit of our ancestors.
> You have our gratitude.
> Those who oppose us will be sent to Detroit.
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 25 Nov 2009 11:06:55 -0600
> From: Steve McGrath <smcgrath23 at gmail.com>
> Subject: Re: [tclug-list] HD Cloning
> To: TCLUG List <tclug-list at mn-linux.org>
> Message-ID: <b84c57930911250906o24aa9tecbfc296a453c755 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Wed, Nov 25, 2009 at 10:32 AM, PJ Crump <pjcrump at bitstream.net> wrote:
>
> > I have a laptop (Ubuntu/Win) dual boot and I have been wading through
> > options to clone the current drive to a new one..  Any one have an
> > suggestions for open source Cloning tools?  I have looked at HDClone,
> > PartImage, g4u but cant come to a decision.
> >
> > _______________________________________________
> > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> > tclug-list at mn-linux.org
> > http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> >
>
> I haven't personally used it, but I hear good things about Clonezilla. I
> believe it supports resizing partitions to clone to a larger drive if
> needed.
>
> --
> Steve McGrath <smcgrath23 at gmail.com
> If it ain't broke, you're not using a new enough version
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20091125/fea64ed3/attachment-0001.htm
>
> ------------------------------
>
> Message: 8
> Date: Wed, 25 Nov 2009 12:27:25 -0500
> From: Adam Morris <adam.morris at redstargaming.net>
> Subject: Re: [tclug-list] HD Cloning
> To: tclug-list at mn-linux.org
> Message-ID: <20091125172725.GA20969 at weegee.ath.cx>
> Content-Type: text/plain; charset=us-ascii
>
> +1 for Clonezilla, -1 for HDClone.
>
> HDClone tends to modify your partition data.  I have no idea why, but
> its flipping a coin as to whether or not your partition will be intact
> after the clone, unless the drives are identical make and model as far
> as I can tell.
>
> Clonezilla is just great.  I have no complaints, the best part is that
> its free.
>
> On Wed, Nov 25, 2009 at 11:07:28AM -0600, Mr. B-o-B wrote:
> > PJ Crump wrote:
> > > I have a laptop (Ubuntu/Win) dual boot and I have been wading through
> > > options to clone the current drive to a new one..  Any one have an
> > > suggestions for open source Cloning tools?  I have looked at HDClone,
> > > PartImage, g4u but cant come to a decision.
> > >
> > > _______________________________________________
> > > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> > > tclug-list at mn-linux.org
> > > http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> >
> > I like clonezilla.
> >
> > http://www.clonezilla.org
> >
> > I use the hell out of it @ work, and only have nice things to say about
> > it.  There are some good how-to's on using this as well.
> >
> > Check it out.
> >
> > Good Luck!
> >
> > Bob
> >
> > --
> > We are building a fighting force of extraordinary magnitude.
> > We forge our tradition in the spirit of our ancestors.
> > You have our gratitude.
> > Those who oppose us will be sent to Detroit.
> >
> > _______________________________________________
> > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> > tclug-list at mn-linux.org
> > http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 25 Nov 2009 11:49:47 -0600
> From: Troy <troythetechguy at gmail.com>
> Subject: Re: [tclug-list] HD Cloning
> To: pjcrump at bitstream.net
> Cc: TCLUG List <tclug-list at mn-linux.org>
> Message-ID:
>        <34de7f3d0911250949l250938tcac611d7b83c470d at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I use clonezilla for both personal and business, and it works great!
>
> Troy
>
> On Wed, Nov 25, 2009 at 10:32 AM, PJ Crump <pjcrump at bitstream.net> wrote:
>
> > I have a laptop (Ubuntu/Win) dual boot and I have been wading through
> > options to clone the current drive to a new one..  Any one have an
> > suggestions for open source Cloning tools?  I have looked at HDClone,
> > PartImage, g4u but cant come to a decision.
> >
> > _______________________________________________
> > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> > tclug-list at mn-linux.org
> > http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20091125/39e34e27/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
> End of tclug-list Digest, Vol 59, Issue 28
> ******************************************
>



-- 
You do not know the power of the dark side
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20091125/79be3ead/attachment-0001.htm