Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.