LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   doubts about dd (https://www.linuxquestions.org/questions/linux-general-1/doubts-about-dd-483427/)

brazilian_user 09-14-2006 08:45 AM

doubts about dd
 
Good Morning Everybody!!

Does anybody here have already done a clone from a IDE hard disk to a SATA using dd?? Is it possible??

Regards

Rodrigo

haertig 09-14-2006 09:31 AM

I've never done this personally, but there's no reason why it shouldn't work if your system recognizes your SATA disk in the first place. dd doesn't really care what it's reading from or writing to. There's a slim chance your SATA drive won't be recognized if you're using an older kernel and a newer SATA controller.

saikee 09-14-2006 02:14 PM

It should go either way, like
Code:

dd if=/dev/hda of=/dev/sda
and
Code:

dd if=/dev/sda of=/dev/hda
Just make sure you sda and hda are identical in size, down to the last byte.

Cloning a smaller disk into a bigger one is OK in dd but not the the other way.

Lastly make sure you know which is the input file (if) and which is the output file (of). A mistake here can have dire consequence. I always shout at the top of my voice reading the dd command before I hit the enter key. May be you should try it too.

brazilian_user 09-18-2006 02:53 PM

Hello All!

The command really work with different kinds of hard disks, but in my case it didnīt work cause my Linux (Red Hat 3) did not recognize SATA by default, so When I tried to boot using the new hd it failed (kernel panic):( . Anyway, I'd like to thank you for your help on my issue.


Regards

Rodrigo

brazilian_user 09-18-2006 02:54 PM

Quote:

Originally Posted by saikee
It should go either way, like
Code:

dd if=/dev/hda of=/dev/sda
and
Code:

dd if=/dev/sda of=/dev/hda
Just make sure you sda and hda are identical in size, down to the last byte.

Cloning a smaller disk into a bigger one is OK in dd but not the the other way.

Lastly make sure you know which is the input file (if) and which is the output file (of). A mistake here can have dire consequence. I always shout at the top of my voice reading the dd command before I hit the enter key. May be you should try it too.

Itīs really interesting your way to run dd command :)

Thank you again

Rodrigo

alar 09-18-2006 05:06 PM

My :twocents:

The dd in the title caught my interest. I was looking last week...

If your goal is to create a rescue img - I was directed to dd_rescue as a better alternative...

This isn't what I ended up doing. OK so my suggestion is only :onecents:

Never too much information bwahahahaha :)

saikee 09-18-2006 06:58 PM

dd is a Bash command and that means you can boot up any Linux Live CD and use it.

Just dd a 300Gb Sata I into a 400Gb Sata II with only XP inside. Works like a charm. The extra 100Gb ended up as unallocated space which could be absorbed into a NTFS partition by Partition magic in minutes.


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