LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-14-2006, 09:45 AM   #1
brazilian_user
Member
 
Registered: Nov 2005
Location: Brazil, Po - So Paulo
Distribution: Debian Etch
Posts: 110

Rep: Reputation: 15
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
 
Old 09-14-2006, 10:31 AM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 09-14-2006, 03:14 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
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.
 
Old 09-18-2006, 03:53 PM   #4
brazilian_user
Member
 
Registered: Nov 2005
Location: Brazil, Po - So Paulo
Distribution: Debian Etch
Posts: 110

Original Poster
Rep: Reputation: 15
Hello All!

The command really work with different kinds of hard disks, but in my case it didnt 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
 
Old 09-18-2006, 03:54 PM   #5
brazilian_user
Member
 
Registered: Nov 2005
Location: Brazil, Po - So Paulo
Distribution: Debian Etch
Posts: 110

Original Poster
Rep: Reputation: 15
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.
Its really interesting your way to run dd command

Thank you again

Rodrigo
 
Old 09-18-2006, 06:06 PM   #6
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 36
My

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 necents:

Never too much information bwahahahaha
 
Old 09-18-2006, 07:58 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Several doubts talpa_sai Linux - Newbie 1 09-08-2006 04:06 AM
Doubts in c rajesh_b Programming 2 06-06-2005 10:54 PM
NAT doubts vermaamitabh Linux - Networking 2 10-29-2004 10:11 AM
script doubts praveenv Linux - Newbie 1 08-14-2004 08:00 AM
Makefile doubts varala_kanth Linux - Software 0 03-25-2004 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration