LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
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?

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 01-28-2009, 01:24 PM   #1
Brett Delport
LQ Newbie
 
Registered: Nov 2008
Location: Durban, South Africa
Distribution: Slackware 12.0
Posts: 5
Thanked: 0
Exclamation Using dd to clone hard disks


[Log in to get rid of this advertisement]
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?

Thanks
Brett
Brett Delport is offline  
Tag This Post
Reply With Quote
Old 01-29-2009, 10:20 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
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
jailbait is offline     Reply With Quote
Old 01-30-2009, 03:47 AM   #3
Brett Delport
LQ Newbie
 
Registered: Nov 2008
Location: Durban, South Africa
Distribution: Slackware 12.0
Posts: 5
Thanked: 0

Original Poster
Cool

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!

Brett
Brett Delport is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration