Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-20-2005, 11:10 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 28

Rep: Reputation: 15
`dd` to copy a HD to another one?

Well, it's fairly simple... I've got a ~80GB HD on which Linux is installed and I wan't to backup the whole thing to a ~200GB HD, since I intend to repartition the ~80GB HD.
So, is this possible with the `dd if=/dev/hde of=/dev/hdf` command (not just copying partitions, but instead - the whole Drive - including partition-tables!).
I tried already `cp -afv` to copy all the files, but after I compared the two Drives there were _way_ to many files that differed (in the content), so this is somehow my last resort.
I'm currently trying it out, but copying ~80GB of Data will take some time.

Maybe someone has some experience with this?
Can I boot Linux on the 200GB Drive (after changing /etc/fstab) - or do I have to do something else (I'm not really sure whether I don't have to change something with the partition-tables)?

I'm running RedHat 9.0 and `dd`-ing through the recovery disk - but I'm not really sure whether it's important in this matter.
Checked the ~200GB HD around 4 times for bad blocks -> didn't find anything.

Thanks & bye bye~,
Old 03-20-2005, 12:01 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
It should work fine. You shouldn't need to change fstab unless you don't change the drive physical positions.

You will need to do it from the recovery cd to prevent files being changed during the copy.

You may also want to take a look at partimage.
Old 03-20-2005, 08:06 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 28

Original Poster
Rep: Reputation: 15
It actually really did work x!D
I read that the HDs should be identical if you want to use the `dd` Command to copy all the Data, but it worked just fine. It probably doesn't matter, as long as the HD you are copying to has more space than the one you are copying from.
Backing up a whole drive with just one easy Command... - it's way more effective than first partitioning and then using `cp -av /root /boot [...] /my-new-hd`... at least it seems to me x!D

Thanks & bye bye~,


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
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 10:25 AM
How to copy whole CD? sikandar Linux - Software 5 09-01-2003 02:38 AM
how to copy a CD to CD?? yenonn Linux - Software 7 08-10-2003 01:34 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 01:40 PM
how to copy a cd safrout Linux - General 6 05-08-2002 11:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration