LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-17-2009, 03:04 PM   #1
kz26
Member
 
Registered: Aug 2005
Location: USA
Distribution: Fedora, Ubuntu, Backtrack
Posts: 70

Rep: Reputation: 15
Angry cloned F11 install refuses to boot (kernel hang)


I installed F11 x86 from the DVD onto a machine using a total of 4 partitions:
1. /boot
2. /
3. /home
4. swap

I then created an image of the first 3 partitions with fsarchiver/Parted Magic and restored it onto a second machine (with different hardware).
Grub was loaded onto the second machine as well without a problem. The new cloned install will get past grub fine but the kernel hangs. After removing 'rhgb quiet' from the boot options, I can see that the last message outputted to the console is something about the PS/2 mouse - this doesn't make sense as the mouse is working perfectly fine.

Additionally, I can still reboot using ctrl-alt-delete so the kernel/CPU must still be responsive.
I have tried troubleshooting the various pieces of hardware, so I'm guessing it's something with the clone. All the cloned filesystems appear to be fully intact; the partition UUID's are all the same. I've even tried changing the UUID's both in grub and /etc/fstab to hardcoded /dev/sdaX , but this does not fix anything.

I'm out of ideas as to what to try next - is there something wrong with the imaging method? Do I need to make changes to accomodate the different hardware? Any ideas or advice would be greatly appreciated. If you need more info, I'll do my best to provide it.

Last edited by kz26; 06-17-2009 at 03:12 PM.
 
Old 08-01-2009, 07:31 AM   #2
patmcclung
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
Hello,

I am getting exactly the same output from the F11 cloned initialization you describe.

I have installed a new SATA drive and cloned the F11 system on it. There are 3 partitions /boot / and /home.

I have made the new disk bootable and first BIOS boot priority, installed grub on /boot and made the necessary modifications to the grub device table, UUIDs, etc. and made a new initrd on /boot. and a new /etc/fstab on / with the right stuff.

Grub works fine from the new disk, and with kernel parameters rhgb and quiet removed I get the same output that you describe.

The thing I noticed is that the booting kernel is not seeing the new drive (the one it is booting from). It only sees ata0 (/dev/sda) and ata1 (/dev/sdb). I don't see any entries for sata2 (/dev/sdc).

If I use the super grub cd, I can boot into the original F11 system fine, and the new /dev/sdc is there, (I can mount partitions on it, etc.) All the partitions are shown if I issue the blkid command.

Look at your initialization messages and see if your kernel sees the drive you're booting to.

Last edited by patmcclung; 08-01-2009 at 07:36 AM.
 
Old 08-01-2009, 09:40 AM   #3
patmcclung
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
maybe a solution

I think I have a solution to our problem. I results from the fact that F11 has deprecated /etc/modprobe.conf

If you look, you will see that it isn't there. initrd looks for modprobe.conf to find the aliases for your hard disk drivers.

Possible solution is to copy the contents of /etc/modprobe.d/local.conf to /etc/modprobe.conf on your cloned / partition, and then do a new mkinitrd.

I will try this tomorrow and let you know.

Pat
 
Old 08-02-2009, 06:09 AM   #4
patmcclung
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
Solved cloning F11 on my system as follows.
1. Created clone new disk partitions with fdisk and mkfs. make /boot partition bootable.
2. booted a rescue disk, mounted and moved the old partitions to the new partitions with
rsync -vaXSH --numeric-ids (old partition mount point)/ (new partition mount point)
3. modified /etc/fstab on the new disk to appropriate new disk UUIDs (shown by blkid command)
4. On the new disk grub, modified the device table to include the new disk and set appropriate things. Watch out!
changing the bios hard disk boot priority may cause your /dev/sdX settings to change! Changed my new disk from /dev/sdc to /dev/sda!!
5. set bios to boot new disk first.
6. Booted old system with supergrub disk. mounted new disk partitions.
7. copied /etc/modprobe.d/local.conf to /etc/modprobe.conf on both the new and old systems.
8. cd to /boot directory on the new disk.
9. rm initrd-2.6.29.6-213.fc11.x86_64.img
10. mkinitrd -v --fstab=/mnt/newroot/etc/fstab initrd-2.6.29.6-213.fc11.x86_64.img 2.6.29.6-213.fc11.x86_64
{--fstab=(/etc/fstab) as modified in step 3 above}
11. restarted and booted Fedora 11 new disk via grub normally.

Everything works, but SElinux (permissive mode) is giving me a few avc denials from gnome. Maybe I screwed up
with that --numeric-ids parameter on the rsync partition moves.

Hope that helps you.

Pat McClung

Last edited by patmcclung; 08-02-2009 at 09:01 AM.
 
  


Reply

Tags
fedora, hang, kernel


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
Install XP _64 under F11 KVM wayner Linux - Newbie 0 06-10-2009 05:11 PM
custom kernel (2.6.23) refuses to boot on dell E1505 laptop schatoor Linux - General 1 02-02-2008 10:34 AM
kernel 2.6.11.11 boot hang bird603568 Slackware 3 06-14-2005 04:54 AM
Knoppix install refuses to boot. No write permissiond to hard drive? R00ts Debian 17 03-26-2005 03:20 PM
SuSE 9.2 refuses to boot (or install) with an On-Board Promise RAID. Please Help shassouneh Linux - Hardware 12 12-19-2004 09:43 PM


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