Ask Your Question
1

How to repair unbootable Fedora install

asked 2012-06-19 15:12:51 -0500

Cerin gravatar image

updated 2012-06-19 15:34:31 -0500

How do you repair/reinstall Fedora without deleting any existing partitions or data?

I was attempting to upgrade some old Fedora 13 servers to 17, following the instructions in the wiki. After the 14->15 upgrade, rebooting resulted in the output:

Dropping to debug shell.

sh: can't access tty; job control turned off
dracut:/#

Running dmesg also shows:

dracut Warning: No root device "block:/dev/mapper/VolGroup-lv_root" found

Googling shows this error is typically related to some weird RAID issues, but my server is a virtual machine not using RAID. Using a rescue CD, I can chroot /mnt/sysimage, and all packages and data still seems to be there, but I can't get it to boot normally.

How do I make the system bootable again?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-06-21 09:47:33 -0500

Cerin gravatar image

Apparently, it's not uncommon for Fedora's upgrade process to corrupt the /boot/initramfs filesystem, resulting in an unbootable system.

Using a tip I found here, the solution is to boot using a Fedora Live CD, and select "rescue installed system" from the menu. Then walk through the menu to get to the rescue shell. Then mount the system using chroot /mnt/sysimage. The tip recommended repairing initramfs by running:

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

However, since you'll be running the Live CD's kernel, this will likely fail if your system's kernel version does not exactly match the Live CD. My Live CD was using a 2.6.* kernel, but I had a 3.4.* kernel installed, so I ran:

mv /boot/initramfs-3.4.2-1.fc16.x86_64.img /boot/initramfs-3.4.2-1.fc16.x86_64-nouveau.img
dracut /boot/initramfs-3.4.2-1.fc16.x86_64.img 3.4.2-1.fc16.x86_64
exit

Afterwards, removing the Live CD and then rebooting resulted in a bootable system.

edit flag offensive delete link more
0

answered 2012-06-20 00:46:16 -0500

Sith gravatar image

updated 2012-06-20 00:47:54 -0500

Try reading this: http://fedoraproject.org/wiki/HowtodebugDracutproblems.

I also found that some people fixed it with:

dmraid -r -E

I hope this helps!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-06-19 15:12:51 -0500

Seen: 35,894 times

Last updated: Jun 21 '12