Something happened recently in an update that’s rendered my system unbootable - am currently booted into an old (4.0.4) kernel after messing around with the boot parameters (specifically setting ROOT=/dev/sda7 and removing rhgb and other things).
Does anyone have any suggestions as to what it might be?
/etc/fstab is
LABEL=/ / ext4 defaults 1 1 #LABEL=/boot /boot ext4 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 LABEL=/download /download ext4 defaults 1 2 LABEL=/home /home ext4 defaults 1 2 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 LABEL=/tmp /tmp ext4 defaults 1 2 LABEL=/usr /usr ext4 defaults 1 2 LABEL=/var /var ext4 defaults 1 2 LABEL=/swap swap swap defaults 0 0 LABEL=backup /mnt/backup ext4 rw,noauto,user,async 0 0
and grub2/grub.cfg is
# # 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 }
if [ x$feature_default_font_path = xy ] ; then font=unicode else 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 05006296-9a57 -4322-8d1f-2c5298bac14e else search --no-floppy --fs-uuid --set=root 05006296-9a57-4322-8d1f-2c5298bac14e fi font="/share/grub/unicode.pf2" fi
if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_GB insmod gettext fi terminal_output gfxterm set timeout=5 ### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora (4.1.5-200.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $ menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2ac d30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-4.1.5-200.fc22.x86_64 root=LABEL=/ ro quiet rhgb biosdevname=0 ipv6.disable=1 LANG=en_GB.UTF-8 initrd /boot/initramfs-4.1.5-200.fc22.x86_64.img } menuentry 'Fedora (4.1.5-200.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestri cted $menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2ac d30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-4.1.5-200.fc22.x86_64+debug root=LABEL=/ ro quiet rhgb biosdevname=0 ipv6.disable=1 LANG=en_GB.UTF-8 initrd /boot/initramfs-4.1.5-200.fc22.x86_64+debug.img } menuentry 'Fedora (4.1.4-200.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $ menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2ac d30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-4.1.4-200.fc22.x86_64 root=LABEL=/ ro quiet rhgb biosdevname=0 ipv6.disable=1 LANG=en_GB.UTF-8 initrd /boot/initramfs-4.1.4-200.fc22.x86_64.img } menuentry 'Fedora (4.0.4-301.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $ menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2ac d30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-4.0.4-301.fc22.x86_64 root=LABEL=/ ro quiet rhgb biosdevname=0 ipv6.disable=1 LANG=en_GB.UTF-8 initrd /boot/initramfs-4.0.4-301.fc22.x86_64.img } menuentry 'Fedora (4.1.4-200.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestri cted $menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2ac d30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-4.1.4-200.fc22.x86_64+debug root=LABEL=/ ro quiet rhgb biosdevname=0 ipv6.disable=1 LANG=en_GB.UTF-8 initrd /boot/initramfs-4.1.4-200.fc22.x86_64+debug.img } menuentry 'Fedora (4.1.3-200.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestri cted $menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2ac d30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-4.1.3-200.fc22.x86_64+debug root=LABEL=/ ro quiet rhgb biosdevname=0 ipv6.disable=1 LANG=en_GB.UTF-8 initrd /boot/initramfs-4.1.3-200.fc22.x86_64+debug.img } submenu 'Advanced options for Fedora' $menuentry_id_option 'gnulinux-advanced-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { menuentry 'Fedora, with Linux 0-rescue-1fa2b48a0bc75d861c6bf000457e6e3c' --class fedora --class gnu-linux --class gnu --cla ss os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-1fa2b48a0bc75d861c6bf000457e6e3c-advanced-ad2acd30-8497-459c-9ba3-f250 d7bea2aa' { load_video insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos 7 ad2acd30-8497-459c-9ba3-f250d7bea2aa else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi linux /boot/vmlinuz-0-rescue-1fa2b48a0bc75d861c6bf000457e6e3c root=UUID=ad2acd30-8497-459c-9ba3-f250d7bea2aa ro q uiet rhgb biosdevname=0 ipv6.disable=1 initrd /boot/initramfs-0-rescue-1fa2b48a0bc75d861c6bf000457e6e3c.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 ###
and
On Wed, 26 Aug 2015 09:28:05 +0200 Scott van Looy scott@ethosuk.net wrote:
Something happened recently in an update that’s rendered my system unbootable - am currently booted into an old (4.0.4) kernel after messing around with the boot parameters (specifically setting ROOT=/dev/sda7 and removing rhgb and other things).
Does anyone have any suggestions as to what it might be?
I don't have an answer for your question. But I have a couple of suggestions.
Run df to see which partitions are mounted where. Use blkid to find the UUIDs of your partitions, and use those in the fstab instead of labels. It will also tell you if the LABEL you used for root, /, corresponds to the UUID / partition that you think it should. UUIDs are always unique, LABELs not so much. I usually put the labels as comments above the UUID line in the fstab file, for me, not the system.
### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora (4.1.5-200.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $ menuentry_id_option 'gnulinux-simple-ad2acd30-8497-459c-9ba3-f250d7bea2aa' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 ad2acd30-8497-459c-9ba3-f250d7bea2aa
This should be your boot partition UUID
else search --no-floppy --fs-uuid --set=root ad2acd30-8497-459c-9ba3-f250d7bea2aa fi
The other thing to do is to rebuild the grub.cfg file. First cp the existing grub.cfg in /boot/grub2/ to something like grub.cfg.bak. Then, from the /boot/grub2/ directory, as root, run the command grub2-mkconfig -o grub.cfg
That will scan your system and put sane results for any systems found into the file grub.cfg. You can then use diff to look at any differences between the old config and the new config. But the new config should boot properly to any installed system.