LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How make disk image and put it on my new hdd (https://www.linuxquestions.org/questions/linux-hardware-18/how-make-disk-image-and-put-it-on-my-new-hdd-124248/)

jimdaworm 12-09-2003 11:44 AM

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

sickboylives 12-09-2003 04:25 PM

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.

jimdaworm 12-13-2003 10:52 AM

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

shack 12-16-2003 10:08 AM

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

jimdaworm 12-16-2003 11:14 AM

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

shack 12-16-2003 11:58 AM

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


All times are GMT -5. The time now is 02:40 PM.