Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 01-28-2009, 12:24 PM   #1
Brett Delport
LQ Newbie
Registered: Nov 2008
Location: Durban, South Africa
Distribution: Slackware 12.0
Posts: 5

Rep: Reputation: 0
Exclamation Using dd to clone hard disks

Hey all

I need to clone a drive over to a new one. A bit of online browsing suggested using dd to do this. So I did, and it seemed to make the clone succesfully. I then deleted the third partition on the drive, and remade it to take up the additional space. I then set the new drive as master, and removed the source disk (to avoid lilo/fstab confusions with hda and hdb) and it seemed to work fine, everything loads during boot. But just as it gets to the login prompt it reboots.

Does anyone know of a step I missed out, or something that might have gone wrong?

Old 01-29-2009, 09:20 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
If the new drive has a different geometry than the old drive then all kind of fluky errors can occur after a dd copy. When you hit this type of problem the most reliable solution is probably to abandon dd and go through the procedure of partitioning the new drive, formatting the partitions, copying the file systems using cp with the -a option, and installing lilo on the MBR.

If I had to guess a quick and dirty solution to your particular problem I would try to reinstall lilo to the MBR of your new drive.

Steve Stites
Old 01-30-2009, 02:47 AM   #3
Brett Delport
LQ Newbie
Registered: Nov 2008
Location: Durban, South Africa
Distribution: Slackware 12.0
Posts: 5

Original Poster
Rep: Reputation: 0

Hi Steve

Thanks for your help. I think (and I am guessing here) that the problem occured when mounting /home to my 3rd (hda3) partition. This was the partition which I resised, while it was mounted.

Anyway, i redid the operation late last night, using ddrescue (a very nice package for data recovery) instead of dd. Then i booted of a cd, and did the partition resizing while the partitions were not mounted. Worked like a charm, I now have 10 times more free space on my /home partition, which is what I was after.

So, chalk this one up as solved!




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
Clone a dual booting IDE hard drive to a SATA hard drive namida12 Linux - Distributions 1 07-14-2008 10:01 AM
LXer: Clone Linux, Windows disks with Clonezilla LXer Syndicated Linux News 0 03-17-2008 07:20 AM
Using dd to clone my hard drive Tommo Linux - Hardware 15 05-20-2007 03:49 PM
Bigger Hard Drive - Clone? Snump Mandriva 14 11-21-2006 08:37 AM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 02:15 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration