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

Notices


Reply
  Search this Thread
Old 04-25-2006, 03:42 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
Linux clone problem


I cloned my linux HDD with dd command yesterday, but I have some problems.
My linux HDD has the following partitions:
Device Boot Start End Blocks ID System
/dev/hda1 * 1 13 10439 83 Linux
/dev/hda2 14 9954 79851082+ 83 Linux
/dev/hda3 9955 10011 457852+ 82 Linux swap

First I shuted down my linux os and connected a HDD with the same parameters as my linux HDD. After that I switched on the system. The new HDD became /dev/hdc. After that I type the command:
dd if=/dev/hda of=/dev/hdc
and a couple of hours later I get the message that copying is successfully completed (or something similar). After that my second HDD (/dev/hdc) had completely the same partitions as my primary HDD:

Device Boot Start End Blocks ID System
/dev/hdc1 * 1 13 10439 83 Linux
/dev/hdc2 14 9954 79851082+ 83 Linux
/dev/hdc3 9955 10011 457852+ 82 Linux swap

So I thinked that if I disconnected my primary (Linux) HDD, and I started machine with secondary HDD it would work, but unfortunately not. If I start machine with clone HDD, I get the command "Kernel panic".
Why?

Last edited by gubak; 10-02-2006 at 07:57 AM.
 
Old 04-25-2006, 03:53 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
hmmp. That should work....

Is the data browseable from the origional hard drive?
 
Old 04-25-2006, 07:38 AM   #3
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
How do you mean "browseable"?

Last edited by gubak; 10-02-2006 at 07:57 AM.
 
Old 04-25-2006, 08:06 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
sorry, i mean can you mount the cloned hard drive from the origional os.

Though on second thought's if the kernel and other files are in use and you copy them byte for byte (dd), i am not sure how well it would work. in effect you would get an exact copy of the drive (i.e with files open etc). I would recommend doing the clone using a live cd....

see what i mean?
 
Old 04-25-2006, 08:34 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Also, is the clone in the IDE secondary spot, whereas the original was in primary? Could that make a difference in where the bootloader looks?

Another possibility is that you used no blocksize in your dd command. I don't know what that does.
 
Old 04-25-2006, 09:02 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
Yes, i did think of that, but i'm guessing the ide wasn't the issue, because he actually go to the point of a kernel panic, which indicates that the bootloader did load from the cloned disk... if there's was no kernel at all you wouldn't get a panic. a kernel panic is actually a message from the kernel.......

Is this true? I really would try cloning off line.....
 
Old 04-26-2006, 01:16 AM   #7
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
Yes, the clone hdd is in the seondary slot, but the boot loader loads.
Well, satinet you said that I would try to clone hdd in off line.
Is this mean that I could clone hdd with using a third Linux os (I mean the two hdds connect to a computer which already have a Linux os and then using the dd command between the two later connected hdds)?

Last edited by gubak; 10-02-2006 at 07:58 AM.
 
Old 04-26-2006, 02:48 AM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
yes, use something like knoppix.

as the post above mentions you should also put the cloned drive as the primary master if you have removed that drive from the system......
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem booting Windoze after disk clone jlinkels Linux - Hardware 7 09-25-2005 07:13 PM
Winamp 5 clone for Linux Snipersnest Linux - Software 3 03-01-2005 08:01 PM
Clone drive problem elwood43 Linux - Enterprise 4 12-21-2004 11:31 AM
Spider Clone for linux Maranza Linux - Software 3 02-01-2004 08:52 PM
Linux have a napster clone? Chijtska Linux - General 12 03-05-2002 05:36 PM


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