LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-13-2006, 05:18 PM   #1
erolk7
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Cloned drive yields Kernel Panic


I am trying to clone a SATA drive from one PC to an IDE drive on another PC. I have created similar partitions (ie. hda1 5G ext3, hda2 800meg swap, hda3 the rest jfs) and mkfs.ext3/mkswap, etc on the destination IDE. I created an image using g4l of the SATA drive first partition (sda1) and started the g4l server. Than on the destination PC I start g4l and restored the SATA sda1 partition. Shutdown destination PC, rebooted it with KNOPPIX and mounted hda1 and edited fstab to change all the sda1's to hda1's and changed lilo to point to hda. than issued lilo -r /mnt/hda1.
Now when I reboot the system LILO loads and some of the hardware information flashes by (the last thing I can make out is hdc which is my cdrom) than I start to get screens full of Segmentation Fault followed by:
/etc/init: Out of file descriptors
Kernel panic - not syncing: attempted to kill init.

I had done this before with this configuration and somehow it worked, but obviously I'm missing something this time. Any help would be appreciated.

Forgot to add: when I reboot with KNOPPIX and look at the log files on hda1, there is nothing new.

Last edited by erolk7; 12-13-2006 at 05:20 PM.
 
Old 12-13-2006, 05:35 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Presumably you have amended your /etc/lilo.conf to reflect the new partition reference.
 
Old 12-13-2006, 05:46 PM   #3
erolk7
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Yes I changed all references from sda to hda in the /etc/lilo.conf

Quote:
Originally Posted by saikee
Presumably you have amended your /etc/lilo.conf to reflect the new partition reference.
 
Old 12-13-2006, 06:39 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I am moving 3 distros at the moment between two IDE disks. As far as I am aware Linux can be moved around as I done this loads of time. Many of my distros are installed 2 machines before.

The segmentation problem sounds like a bad cloning to me. If it is a real clone the two partitions must be exact size, down to the last byte, otherwise you are better off using tar command.

The steps I took were

(1) clone one partition to another using for example "dd if=/dev/hda8 of=/dev/hdc44 bs=32768". My partitions are standardised at 5Gb each and the operation took 2 minutes each with a transfer rate 42Mb/s.

(2) Amend the boot loader, Grub in all three cases, so that "root" and "kernel" statement reflect the new partition name.

(3) Amend /etc/fstab to change the location of the "/". I used swap at hda5 in all cases so no change needed there.

(4) I restore Grub at the root partition so that they are all "chainloadable"

All the above operations can be done in one Linux (Live CD included).

I am typing this reply with the 3rd transferred distro as all work in the first attempt.

The reason I needed to re-house these 3 distros is because their installers couldn't cope with scanning the 140+ partitions in my box and halted in the installation process. I therefore installed them in the same PC with existing 4 hard disks removed but with only one hard drive having only 15 partitions inside. These 3 distros could then be installed and now moved back to the 4-disk system.

Last edited by saikee; 12-13-2006 at 07:37 PM.
 
  


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
Kernel Panic when simulating drive failure on software RAID1 DukeLeto Linux - Software 2 02-07-2006 08:35 AM
Kernel panic on install to blank hard drive dismas Slackware - Installation 1 09-30-2005 07:06 PM
Tecra m3 hard drive dma and kernel panic :( bird603568 Slackware 1 08-28-2005 12:57 PM
New Hard Drive Causes Kernel Panic darkfire55 Linux - Hardware 4 11-28-2004 03:59 PM
Kernel panic after dual-boot XP drive failed phoenixdbq Linux - Newbie 7 02-05-2004 09:17 AM


All times are GMT -5. The time now is 10:41 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