copying hardisks

I have to copy one hardisk to another empty hasrdisk of same size byte by byte
include partition tables.

Please tell me how can it be done in linux.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


    Try using dd (double check "man dd").

    But make sure the device is attached to the system and functioning.

   try dd if=/dev/source of=/dev/destination

   Assuming that you have this setup.

   Primary IDE Controller  : 1 hd
   Secondary  IDE       : source hd
                              dest HD

    then try dd if=/dev/hdb of=/dev/hdc

    I hope this work (never tried though).

mallahAuthor Commented:
I will try and award you.
use program called ghost

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

    Is is working?

mallahAuthor Commented:
samri, I too feel dd should work
but sorry I no more need or have the scope to test it. I wish to award you points , but I don't know how, when I view my posted question i don't see any interface for giving you points instead
 tostos name appears.

tostos , I tried to search 'ghost' program  in freshmeat but could not get,
can you tell me where can i find it ?
if the  program is good enough i might award you points.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.