LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 05-26-2007, 01:00 AM   #1
thorfinn
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, 01:26 AM   #2
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 858

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

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
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, 02:23 AM   #4
thorfinn
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.

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

/boot/grub/grub.conf
# 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
#boot=/dev/hda
default=2
timeout=15
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
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
title WINDOZE
rootnoverify (hd0,0)
chainloader +1
 
Old 05-26-2007, 11:46 AM   #5
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 858

Rep: Reputation: 88
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-02-2007, 11:35 PM   #6
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, 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?

Bill
 
  


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


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