Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Fedora - Installation This forum is for the discussion of installation issues with Fedora.


Search this Thread
Old 05-26-2007, 02:00 AM   #1
LQ Newbie
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Changed Hard disk and now Kernel panic

I have an FC5 system with dual boot to XP. I just copied the partitions to a new drive moving from an 80GB to a 240GB. The partitions have copied across well, but the names have changed.
Old layout was
/dev/hdb1 - ntfs and XP
/dev/hdb2 - /root
/dev/hdb3 - /
/dev/hdb4 - swap

New layout
/dev/hda1 - ntfs and XP
/dev/hda2 - /root
/dev/hda4 - /
/dev/hda3 - swap

I have grub installed and dual booting is working, but when the system goes to change from initrd to / it gets lost and Kernel Panics.

So where is the file with the definitions of what is attached to what. It used to be /etc/fstab, but that now reads like this with no hardware information.
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-hdb4 swap swap defaults 0 0
Old 05-26-2007, 02:26 AM   #2
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 864

Rep: Reputation: 89
Please post a copy of your /boot/grub/menu.lst.
Old 05-26-2007, 02:39 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,561

Rep: Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085
You'll need labels on the new partitions.
Stupid idea IMHO.

And the kernel line on your menu.lst will need looking at.
Old 05-26-2007, 03:23 AM   #4
LQ Newbie
Registered: May 2007
Posts: 2

Original Poster
Rep: Reputation: 0
the system is well backup before starting this upgrade and
it is a non critical box.

# this device map was generated by anaconda
(hd0) /dev/hda

# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hdb3
# initrd /initrd-version.img
title Fedora Core (2.6.20-1.2312.fc5)
root (hd0,1)
kernel /vmlinuz-2.6.20-1.2312.fc5 ro root=LABEL=/
initrd /initrd-2.6.20-1.2312.fc5.img
title Fedora Core (2.6.20-1.2307.fc5)
root (hd0,1)
kernel /vmlinuz-2.6.20-1.2307.fc5 ro root=LABEL=/
initrd /initrd-2.6.20-1.2307.fc5.img
rootnoverify (hd0,0)
chainloader +1
Old 05-26-2007, 12:46 PM   #5
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 864

Rep: Reputation: 89
Well, your menu.lst looks OK to me. Maybe you should reinstall GRUB on the disk's MBR. The copying program you used may not have written it to the MBR properly. Just a thought???
Old 06-03-2007, 12:35 AM   #6
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 20, 21, RHL 5.2
Posts: 546

Rep: Reputation: 43
I agree with syg00 you'll need to add labels to your new drive. The commands e2label or tune2fs will take care of this for you. If hdb is still around make sure to remove the labels from those partitions before starting on hda partitions. Your /etc/fstab will reappear once the labels are back in place.

I find it confusing that you listed hdb2 and hda2 as /root. Is that correct or should it be /boot?



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" on sata hard disk brazilian_user Linux - General 3 08-30-2006 02:40 PM
Changed Motherboard: System Won't boot - Kernel Panic n1wil Red Hat 1 06-16-2006 10:45 AM
External hard disk causes kernel panic blimbo Linux - Hardware 5 01-23-2006 12:30 PM
I changed the hard disk Gins Linux - General 8 11-22-2005 02:41 PM
Fedora C4 Kernel Panic root= SATA Hard disk fieldyweb Linux - General 1 08-22-2005 10:09 AM

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