Is There A Fedora Doctor In The House?

I’ve been having hardware issues with my Fedora 20 installation (yes, I know it’s still beta until tomorrow). I had it on a new WD 2T drive, but occasionally I was having boot problems, and having to repair the filesystem. I noticed that it was making strange noises and running hot, and taking a long time to even get to GRUB, indicating that it was hanging up the BIOS itself. I was on the verge of returning it, when I tried moving it from the first to the second SATA interface on the MB (I have six). The problems went away, so apparently it’s a motherboard problem on that interface (at least that’s what I’m inferring). Unfortunately, it refuses to boot now, dropping into emergency mode, and telling me that it can’t switch root, because /sysroot/etc/os-release is missing (which it does seem to be). I tried copying /etc/os-release to /sysroot/etc/os-release, but it wouldn’t let me (and etc doesn’t seem to currently exist on /sysroot).

Any ideas how to fix this?

[Update a while later]

[Update a few minutes later]

Apparently Anaconda can’t be bothered to load logical volumes before looking for linux partitions. But why?

And what do I do about it? When I do a ‘vgchange -ay’ it loads them, but if I then run anaconda, it still doesn’t work, and when I go back to shell, they’re no longer mounted. I can’t believe I’m the only person having this problem, but I’ve done searches and can’t find any useful information about it.

[Late afternoon update]

Someone on twitter asked me to post the contents of grub.cfg, so here it is, after the fold:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ “${next_entry}” ] ; then
set default=”${next_entry}”
set next_entry=
save_env next_entry
set boot_once=true
else
set default=”${saved_entry}”
fi

if [ x”${feature_menuentry_id}” = xy ]; then
menuentry_id_option=”–id”
else
menuentry_id_option=””
fi

export menuentry_id_option

if [ “${prev_saved_entry}” ]; then
set saved_entry=”${prev_saved_entry}”
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z “${boot_once}” ]; then
saved_entry=”${chosen}”
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

terminal_output console
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Fedora (3.11.10-300.fc20.x86_64) 20 (Heisenbug)’ –class fedora –class gnu-linux –class gnu –class os $menuentry_id_option ‘gnulinux-3.11.6-301.fc20.x86_64-advanced-5cf839a0-d5b8-4baa-96e6-31377fe441d7′ {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root=’hd0,msdos1′
if [ x$feature_platform_search_hint = xy ]; then
search –no-floppy –fs-uuid –set=root –hint-bios=hd0,msdos1 –hint-efi=hd0,msdos1 –hint-baremetal=ahci0,msdos1 –hint=’hd0,msdos1’ 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
else
search –no-floppy –fs-uuid –set=root 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
fi
linux /vmlinuz-3.11.10-300.fc20.x86_64 root=/dev/mapper/fedora_new–host–2-root ro rd.lvm.lv=fedora_new-host-2/root rd.lvm.lv=fedora_new-host-2/swap vconsole.font=latarcyrheb-sun16 vconsole.keymap=us rhgb quiet LANG=en_US.UTF-8
initrd /initramfs-3.11.10-300.fc20.x86_64.img
}
menuentry ‘Fedora (3.11.9-300.fc20.x86_64) 20 (Heisenbug)’ –class fedora –class gnu-linux –class gnu –class os $menuentry_id_option ‘gnulinux-3.11.6-301.fc20.x86_64-advanced-5cf839a0-d5b8-4baa-96e6-31377fe441d7′ {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root=’hd0,msdos1′
if [ x$feature_platform_search_hint = xy ]; then
search –no-floppy –fs-uuid –set=root –hint-bios=hd0,msdos1 –hint-efi=hd0,msdos1 –hint-baremetal=ahci0,msdos1 –hint=’hd0,msdos1’ 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
else
search –no-floppy –fs-uuid –set=root 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
fi
linux /vmlinuz-3.11.9-300.fc20.x86_64 root=/dev/mapper/fedora_new–host–2-root ro rd.lvm.lv=fedora_new-host-2/root rd.lvm.lv=fedora_new-host-2/swap vconsole.font=latarcyrheb-sun16 vconsole.keymap=us rhgb quiet LANG=en_US.UTF-8
initrd /initramfs-3.11.9-300.fc20.x86_64.img
}
menuentry ‘Fedora (3.11.8-300.fc20.x86_64) 20 (Heisenbug)’ –class fedora –class gnu-linux –class gnu –class os $menuentry_id_option ‘gnulinux-3.11.6-301.fc20.x86_64-advanced-5cf839a0-d5b8-4baa-96e6-31377fe441d7′ {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root=’hd0,msdos1′
if [ x$feature_platform_search_hint = xy ]; then
search –no-floppy –fs-uuid –set=root –hint-bios=hd0,msdos1 –hint-efi=hd0,msdos1 –hint-baremetal=ahci0,msdos1 –hint=’hd0,msdos1’ 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
else
search –no-floppy –fs-uuid –set=root 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
fi
linux /vmlinuz-3.11.8-300.fc20.x86_64 root=/dev/mapper/fedora_new–host–2-root ro rd.lvm.lv=fedora_new-host-2/root rd.lvm.lv=fedora_new-host-2/swap vconsole.font=latarcyrheb-sun16 vconsole.keymap=us rhgb quiet LANG=en_US.UTF-8
initrd /initramfs-3.11.8-300.fc20.x86_64.img
}
menuentry ‘Fedora, with Linux 0-rescue-859539a641ae4cbe9994c6d3312f630f’ –class fedora –class gnu-linux –class gnu –class os $menuentry_id_option ‘gnulinux-0-rescue-859539a641ae4cbe9994c6d3312f630f-advanced-5cf839a0-d5b8-4baa-96e6-31377fe441d7′ {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=’hd0,msdos1′
if [ x$feature_platform_search_hint = xy ]; then
search –no-floppy –fs-uuid –set=root –hint-bios=hd0,msdos1 –hint-efi=hd0,msdos1 –hint-baremetal=ahci0,msdos1 –hint=’hd0,msdos1’ 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
else
search –no-floppy –fs-uuid –set=root 5b947a07-2f8e-4d84-bfa7-e1552d8f88e4
fi
linux /vmlinuz-0-rescue-859539a641ae4cbe9994c6d3312f630f root=/dev/mapper/fedora_new–host–2-root ro rd.lvm.lv=fedora_new-host-2/root rd.lvm.lv=fedora_new-host-2/swap vconsole.font=latarcyrheb-sun16 vconsole.keymap=us rhgb quiet
initrd /initramfs-0-rescue-859539a641ae4cbe9994c6d3312f630f.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z “${config_directory}” -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

2 thoughts on “Is There A Fedora Doctor In The House?”

  1. I haven’t tried FC20 yet, but most Linuxes have a ‘rescue’ mode on the installation CD/DVD boot menu. Depending on how Linux savvy you are, you can boot off the CD, mount and/or repair the offending filesystem. Another good tool to access the system is the System Rescue CD, which you can also put on a USB stick: http://www.sysresccd.org/SystemRescueCd_Homepage

    There is, of course, no guarantee that you are only missing that file. Scrambled filesystem recovery can be a messy business. Let me know if you need more details, and I can try to work out more precise steps.

    BTW, ordered your book yesterday off Amazon. Looking forward to reading it.

Comments are closed.