Not a member yet? Why not Sign up today
Create an account  

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Can't boot, please advise [closed]

#1
Hey,

So I have a dedi server and I wanted to install xanmod.
During installation, there was an error (something not being properly configured).
I rebooted and the server can no longer boot.

I managed to boot in  rescue mode, mounted the partitions, how can I edit grub to reboot on the previous kernel that worked?

Please see below my current cfg -


PHP Code:
nano /mnt/md126/grub/grub.cfg 



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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  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="0"
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 recordfail {
  set recordfail=1
  # GRUB lacks write support for diskfilter, so recordfail support is disabled.
}
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 part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/d28c0cdd22149b1f513d5d1ca3f01789'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/d28c0cdd22149b1f513d5d1ca3f01789'  371c5512-2d62-4d9e-bdf6-87a870ad65b1
else
  search --no-floppy --fs-uuid --set=root 371c5512-2d62-4d9e-bdf6-87a870ad65b1
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_msdos
    insmod part_msdos
    insmod diskfilter
    insmod mdraid1x
    insmod ext2
    set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
    else
      search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
    fi
        linux    /vmlinuz-4.12.8-xanmod9 root=/dev/md1 ro  quiet splash $vt_handoff
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
    menuentry 'Ubuntu, with Linux 4.12.8-xanmod9' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.8-xanmod9-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.12.8-xanmod9 ...'
            linux    /vmlinuz-4.12.8-xanmod9 root=/dev/md1 ro  quiet splash $vt_handoff
    }
    menuentry 'Ubuntu, with Linux 4.12.8-xanmod9 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.8-xanmod9-recovery-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.12.8-xanmod9 ...'
            linux    /vmlinuz-4.12.8-xanmod9 root=/dev/md1 ro recovery nomodeset
    }
    menuentry 'Ubuntu, with Linux 4.10.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-32-generic-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.10.0-32-generic ...'
            linux    /vmlinuz-4.10.0-32-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.10.0-32-generic
    }
    menuentry 'Ubuntu, with Linux 4.10.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-32-generic-recovery-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.10.0-32-generic ...'
            linux    /vmlinuz-4.10.0-32-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro recovery nomodeset
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.10.0-32-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-92-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-92-generic-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-92-generic ...'
            linux    /vmlinuz-4.4.0-92-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-92-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-92-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-92-generic-recovery-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-92-generic ...'
            linux    /vmlinuz-4.4.0-92-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro recovery nomodeset
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-92-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-91-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-91-generic-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-91-generic ...'
            linux    /vmlinuz-4.4.0-91-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-91-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-91-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-91-generic-recovery-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-91-generic ...'
            linux    /vmlinuz-4.4.0-91-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro recovery nomodeset
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-91-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-89-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-89-generic-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-89-generic ...'
            linux    /vmlinuz-4.4.0-89-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-89-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-89-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-89-generic-recovery-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-89-generic ...'
            linux    /vmlinuz-4.4.0-89-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro recovery nomodeset
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-89-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-87-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-87-generic-advanced-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-87-generic ...'
            linux    /vmlinuz-4.4.0-87-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-87-generic
    }
    menuentry 'Ubuntu, with Linux 4.4.0-87-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-87-generic-recovery-371c5512-2d62-4d9e-bdf6-87a870ad65b1' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/e90fcaa0e152f53847ae23ab75005c33'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/e90fcaa0e152f53847ae23ab75005c33'  617064b2-35a2-4612-9444-61f8a94e44e5
        else
          search --no-floppy --fs-uuid --set=root 617064b2-35a2-4612-9444-61f8a94e44e5
        fi
        echo    'Loading Linux 4.4.0-87-generic ...'
            linux    /vmlinuz-4.4.0-87-generic root=UUID=371c5512-2d62-4d9e-bdf6-87a870ad65b1 ro recovery nomodeset
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-4.4.0-87-generic
    }
}

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

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

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

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###



Thanks for your help. I'm on ubuntu 16.04 with an xeon E3-1231v3 with online.net
Reply

#2
Your systems should boot well with generic at least.  Undecided
Please read thread: https://forum.xanmod.org/thread-30.html
"Are you able to choose the desired kernel when booting?"
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.
Reply



[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump:


Users browsing this thread:
1 Guest(s)