Bluehost.com Web Hosting $6.95

Clone 200GB Linux Harddisk

This is a discussion on Clone 200GB Linux Harddisk within the Linux General forums, part of the Linux Forums category; Any advice to clone a 8-partition harddisk (all Linux partitions)? Pls kindly show me specific commands which can be ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2005
Klist Smith
 
Posts: n/a
Default Clone 200GB Linux Harddisk

Any advice to clone a 8-partition harddisk (all Linux partitions)?
Pls kindly show me specific commands which can be useful.

Any MS Windows program to clone Linux harddisk?

Highly appreciated if you can reply by email as well.
Thanks a lot.
--------------------------------
My Email: klistsmith@hotmail.com

Reply With Quote
  #2 (permalink)  
Old 03-02-2005
Jaroslaw Zachwieja
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

Klist Smith wrote:

> Any advice to clone a 8-partition harddisk (all Linux partitions)?


Connect source disk as "Primary, Master" and destination disk as "Primary,
Slave". Then issue the following command:

dd if=/dev/hda of=/dev/hdb bs=4k

It will take some time, but you will get exact copy. This ofcourse assumes,
that the disks are identical (size, geometry).

Regards,
--
Jaroslaw Zachwieja
GPG/PGP key at http://pgp.mit.edu
foo1 w adresie to podpucha :)
Reply With Quote
  #3 (permalink)  
Old 03-02-2005
jamie@nospam.com
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

>Any advice to clone a 8-partition harddisk (all Linux partitions)?
What is it that you are trying to accomplish? If you want to reinstall
an OS, in most distros, you have the option to mount a partition
without formatting. If you can elaborate on your desired end result,
a proper solution will be easier to provide.

Reply With Quote
  #4 (permalink)  
Old 03-03-2005
Klist Smith
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

The purpose is to make exact duplicate of a source harddisk which
contains 8 partitions.

I just want to duplicate it for parallel testing.
Hope to hear your advice. Thanks.

jamie@nospam.com wrote:
>>Any advice to clone a 8-partition harddisk (all Linux partitions)?

>
> What is it that you are trying to accomplish? If you want to reinstall
> an OS, in most distros, you have the option to mount a partition
> without formatting. If you can elaborate on your desired end result,
> a proper solution will be easier to provide.


Reply With Quote
  #5 (permalink)  
Old 03-03-2005
Klist Smith
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

The purpose is to make exact duplicate of a source harddisk which
contains 8 partitions.

I just want to duplicate it for parallel testing.
Hope to hear your advice. Thanks.

jamie@nospam.com wrote:
>>Any advice to clone a 8-partition harddisk (all Linux partitions)?

>
> What is it that you are trying to accomplish? If you want to reinstall
> an OS, in most distros, you have the option to mount a partition
> without formatting. If you can elaborate on your desired end result,
> a proper solution will be easier to provide.



Reply With Quote
  #6 (permalink)  
Old 03-03-2005
Klist Smith
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

The purpose is to make exact duplicate of a source harddisk which
contains 8 partitions.

I just want to duplicate it for parallel testing.
Hope to hear your advice. Thanks.

jamie@nospam.com wrote:
>>Any advice to clone a 8-partition harddisk (all Linux partitions)?

>
> What is it that you are trying to accomplish? If you want to reinstall
> an OS, in most distros, you have the option to mount a partition
> without formatting. If you can elaborate on your desired end result,
> a proper solution will be easier to provide.



Reply With Quote
  #7 (permalink)  
Old 03-03-2005
Klist Smith
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

Now I have a new harddisk of the same model. How can I make exact
partition structure in the new harddisk?

Read the structure in the old harddisk and create it one by one in the
new harddisk?

Regards,

Jaroslaw Zachwieja wrote:

> Klist Smith wrote:
>
>
>>Any advice to clone a 8-partition harddisk (all Linux partitions)?

>
>
> Connect source disk as "Primary, Master" and destination disk as "Primary,
> Slave". Then issue the following command:
>
> dd if=/dev/hda of=/dev/hdb bs=4k
>
> It will take some time, but you will get exact copy. This ofcourse assumes,
> that the disks are identical (size, geometry).
>
> Regards,


Reply With Quote
  #8 (permalink)  
Old 03-03-2005
Thomas D. Shepard
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk

On Thu, 03 Mar 2005 12:52:53 +0800, Klist Smith wrote:

> Now I have a new harddisk of the same model. How can I make exact
> partition structure in the new harddisk?
>
> Read the structure in the old harddisk and create it one by one in the
> new harddisk?
>
> Regards,
>
> Jaroslaw Zachwieja wrote:
>
>> Klist Smith wrote:
>>
>>
>>>Any advice to clone a 8-partition harddisk (all Linux partitions)?

>>
>>
>> Connect source disk as "Primary, Master" and destination disk as "Primary,
>> Slave". Then issue the following command:
>>
>> dd if=/dev/hda of=/dev/hdb bs=4k
>>
>> It will take some time, but you will get exact copy. This ofcourse assumes,
>> that the disks are identical (size, geometry).
>>
>> Regards,


The advice Jaroslaw Zachwieja gave is exactly what you want. You don't
have to set up the partition structure or anything. "dd" works at a lower
abstraction level than that. It copies the raw bits directly from one
drive to the other, this includes, MBR, partition tables, and anything
else (including garbage from deleted files) that is one it.

The only way I can imagine that it would fail would be if you had really
old drives that didn't hide bad blocks behind a firmware level. That is
really unlikely. (In that case you would have to avoid using bad blocks on
the disk copied to.) (Even if the disks aren't identical, it still might
work. Though there is no guarantee, and the destination disk must be large
enough to receive whatever you write to it.)

--
Thomas D. Shepard
I am sorry, but you can't email me.
ImaSpammer@spam.sux is not a real email address. I figure if someone wants to
harvest an email address to use for sending spam, they may as well use this one.
Reply With Quote
  #9 (permalink)  
Old 03-05-2005
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk


"Thomas D. Shepard" <ImaSpammer@spam.sux> wrote in message
news:pan.2005.03.03.06.41.36.292328@spam.sux...
> On Thu, 03 Mar 2005 12:52:53 +0800, Klist Smith wrote:
>
>> Now I have a new harddisk of the same model. How can I make exact
>> partition structure in the new harddisk?
>>
>> Read the structure in the old harddisk and create it one by one in the
>> new harddisk?
>>
>> Regards,
>>
>> Jaroslaw Zachwieja wrote:
>>
>>> Klist Smith wrote:
>>>
>>>
>>>>Any advice to clone a 8-partition harddisk (all Linux partitions)?
>>>
>>>
>>> Connect source disk as "Primary, Master" and destination disk as
>>> "Primary,
>>> Slave". Then issue the following command:
>>>
>>> dd if=/dev/hda of=/dev/hdb bs=4k
>>>
>>> It will take some time, but you will get exact copy. This ofcourse
>>> assumes,
>>> that the disks are identical (size, geometry).
>>>
>>> Regards,

>
> The advice Jaroslaw Zachwieja gave is exactly what you want. You don't
> have to set up the partition structure or anything. "dd" works at a lower
> abstraction level than that. It copies the raw bits directly from one
> drive to the other, this includes, MBR, partition tables, and anything
> else (including garbage from deleted files) that is one it.


dd is usually a very, very foolish way to copy such a large disk. It will in
some cases copy bad blocks, it will take forever, and if you have even
slight differences in disk geometries such as the new disk being a few
blocks smaller, it will corrupt your file system. Remember that dd copies
every block, and will also copy the blocks that are discarded and contain
nothing you want.

You might try copying the first 10 blocks to get the partition tables, then
duplicate the file systems by using mkfs to create new file systems and
using cp -a or rsync to duplicate the contents to the new disks. It takes
time and knowledge to set up, but it is easily 100 times faster than
byte-copying a 200 Gig disk.



Reply With Quote
  #10 (permalink)  
Old 03-05-2005
robertharvey@my-deja.com
 
Posts: n/a
Default Re: Clone 200GB Linux Harddisk


Klist Smith wrote:
> Any advice to clone a 8-partition harddisk (all Linux partitions)?
> Pls kindly show me specific commands which can be useful.
>
> Any MS Windows program to clone Linux harddisk?
>
> Highly appreciated if you can reply by email as well.
> Thanks a lot.


There was a google advert next to your message:
http://www.acronis.com/homecomputing...l?ad=A01010311
I know nothing about it, but it does have a free trial download!

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0