LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-09-2003, 11:44 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
Talking How make disk image and put it on my new hdd


I just bought a nice 120gb hdd... rather than install everything again I am wondering if I can just make a mirror image of my entire 40gb hdd??? With partitions and all???

Is it possible or am I just dreaming?

Adam
 
Old 12-09-2003, 04:25 PM   #2
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Rep: Reputation: 15
Just a guess, don't crucify me if I am wrong.

Try using the dd command at a console. I'd guess that

dd if=/dev/hda of=dev/hdb

would recreate it, or some permutation of that command. Read the manfile for dd and see what you can find out.

I'd do it myself, but right now I'm booted into Windows and don't particularly feel like searching the web for a http manfile repository. I'm sure you can do it just as easy as I could look it up.

Anyways, this is just a guess. I'm not terribly sure that it would work, it's just a guess. If it doesn't, you could always try to find disk cloning software on the internet, or just use Norton Ghost.
 
Old 12-13-2003, 10:52 AM   #3
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
Hey sickboylives thanks for getting back to me! I was actually waiting until I have time to try it out!! (Which I still havent) I will get back to you with my my results and what I actually end up doing!

Thanks
 
Old 12-16-2003, 10:08 AM   #4
shack
Member
 
Registered: Dec 2003
Distribution: Debian Sid
Posts: 77

Rep: Reputation: 15
Assuming that your 40GB is on first primary IDE channel (IDE1) and that your 120GB is on IDE2, then "dd if=/dev/hda of=/dev/hdb" will copy your entire 40GB drive to the 120GB drive. This includes the partition table, so you will have to resize the partitions, or create new ones.
___
shack
 
Old 12-16-2003, 11:14 AM   #5
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
Thanks for getting back to me but ... I sort of chickened out and just copied over my system config files and stuff from my backups partition....

I will have to learn one day... but I guess not this time!

Thanks anyway

Adam
 
Old 12-16-2003, 11:58 AM   #6
shack
Member
 
Registered: Dec 2003
Distribution: Debian Sid
Posts: 77

Rep: Reputation: 15
That was probably a good idea - dd should only be used if you know exactly what you're doing. If you get it the wrong way round, goodbye data.
___
shack
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
would like to make my own image and put it at my text screen login....... deepsix General 1 02-08-2005 11:50 PM
How to make exact computer disk image? k-kid Linux - General 2 02-04-2005 10:44 AM
How do I make an image of my hdd w/Linux? keithmendez Linux - Software 0 01-20-2005 01:07 PM
how to make mirror image of one hdd to 2 hdd raj_1 General 1 12-02-2004 06:19 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 01:45 AM


All times are GMT -5. The time now is 07:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration