Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get to rescue mode when GRUB timeout is 0?

Hey!

I seriously messed up my grub.cfg at /boot/efi/EFI/fedora/grub.cfg and my GRUB timeout is 0 in /etc/default/grub. Any way to get back to the rescue mode (a command line prompt would work great).

James

How to get to rescue mode when GRUB timeout is 0?

Hey!

I seriously messed up my grub.cfg at /boot/efi/EFI/fedora/grub.cfg and my GRUB timeout is 0 in /etc/default/grub. I have to edit the file, but I do not have any way of accessing the disk. The only ways I can think of that are relevent (I have too many random thoughts :P):

  • Reinstalling (worst idea)
  • LiveUSB (meh, could do that)
  • Rescue mode (easiest) So, any way of a rescue mode.

James

Here is my /etc/grub/default:

GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet selinux=0 libahci.ignore_sss=1 raid=noautodetect"
GRUB_DISABLE_RECOVERY="true"
and my grub.cfg (relevent bits):
menuentry 'Fedora, with Linux 3.15.10-200.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.15.10-200.fc20.x86_64-advanced-6b266543-a497-44de-981f-ee460b85590a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt9'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        else
          search --no-floppy --fs-uuid --set=root 48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        fi
        linuxefi /vmlinuz-3.15.10-200.fc20.x86_64 root=UUID=6b266543-a497-44de-981f-ee460b85590a rw vconsole.font=latarcyrheb-sun16  rhgb quiet selinux=0 libahci.ignore_sss=1 raid=noautodetect
#        initrdefi /initramfs-3.15.10-200.fc20.x86_64.img
}

Now, that I think about it, I have to set root=/dev/sda10 instead of root=UUID=6b266543-a497-44de-981f-ee460b85590a. Any way ways to get back to the rescue mode (a to a command line prompt would work great).

James(or however else I can fix it)?

Update: I have fixed the issue, but I still want to know a workaround to this in case it happens again. I won't test any of the answers (don't want to mess it up again).

How to get to rescue mode when GRUB timeout is 0?

Hey!

I seriously messed up my grub.cfg at /boot/efi/EFI/fedora/grub.cfg and my GRUB timeout is 0 in /etc/default/grub. I have to edit the file, but I do not have any way of accessing the disk. The only ways I can think of that are relevent (I have too many random thoughts :P):

  • Reinstalling (worst idea)
  • LiveUSB (meh, could do that)
  • Rescue mode (easiest) So, any way of a rescue mode.

James

Here is my /etc/grub/default:

GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet selinux=0  libahci.ignore_sss=1 raid=noautodetect"
GRUB_DISABLE_RECOVERY="true"
and my grub.cfg (relevent bits):
menuentry 'Fedora, with Linux 3.15.10-200.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.15.10-200.fc20.x86_64-advanced-6b266543-a497-44de-981f-ee460b85590a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt9'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        else
          search --no-floppy --fs-uuid --set=root 48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        fi
        linuxefi /vmlinuz-3.15.10-200.fc20.x86_64 root=UUID=6b266543-a497-44de-981f-ee460b85590a rw vconsole.font=latarcyrheb-sun16  rhgb quiet selinux=0 libahci.ignore_sss=1 raid=noautodetect
#        initrdefi /initramfs-3.15.10-200.fc20.x86_64.img
}

Now, that I think about it, I have to set root=/dev/sda10 instead of root=UUID=6b266543-a497-44de-981f-ee460b85590a. Any ways to get to a command line (or however else I can fix it)?

Update: I have fixed the issue, but I still want to know a workaround to this in case it happens again. I won't test any of the answers (don't want to mess it up again).

How to get to rescue mode when GRUB timeout is 0?

Hey!

I seriously messed up my grub.cfg at /boot/efi/EFI/fedora/grub.cfg and my GRUB timeout is 0 in /etc/default/grub. I have to edit the file, but I do not have any way of accessing the disk. The only ways I can think of that are relevent (I have too many random thoughts :P):

  • Reinstalling (worst idea)
  • LiveUSB (meh, could do that)
  • Rescue mode (easiest) So, any way of a rescue mode.

James

Here is my /etc/grub/default:

GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet  libahci.ignore_sss=1 raid=noautodetect"
GRUB_DISABLE_RECOVERY="true"
and my grub.cfg (relevent bits):
menuentry 'Fedora, with Linux 3.15.10-200.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.15.10-200.fc20.x86_64-advanced-6b266543-a497-44de-981f-ee460b85590a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt9'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        else
          search --no-floppy --fs-uuid --set=root 48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        fi
        linuxefi /vmlinuz-3.15.10-200.fc20.x86_64 root=UUID=6b266543-a497-44de-981f-ee460b85590a rw vconsole.font=latarcyrheb-sun16  rhgb quiet selinux=0 libahci.ignore_sss=1 raid=noautodetect
#        initrdefi /initramfs-3.15.10-200.fc20.x86_64.img
}

Now, that I think about it, I have to set root=/dev/sda10 instead of root=UUID=6b266543-a497-44de-981f-ee460b85590a. Any ways to get to a command line (or however else I can fix it)?

Update: I have fixed the issue, but I still want to know a workaround to this in case it happens again. I won't test any of the answers (don't want to mess it up again).

How to get to rescue mode when GRUB timeout is 0?

Hey!

I seriously messed up my grub.cfg at /boot/efi/EFI/fedora/grub.cfg and my GRUB timeout is 0 in /etc/default/grub. I have to edit the file, but I do not have any way of accessing the disk. The only ways I can think of that are relevent (I have too many random thoughts :P):

  • Reinstalling (worst idea)
  • LiveUSB (meh, could do that)(works, but tedious)
  • Rescue mode (easiest) So, any way of a rescue mode.

James

Here is my /etc/grub/default:

GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet  libahci.ignore_sss=1 raid=noautodetect"
GRUB_DISABLE_RECOVERY="true"
and my grub.cfg (relevent bits):
menuentry 'Fedora, with Linux 3.15.10-200.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.15.10-200.fc20.x86_64-advanced-6b266543-a497-44de-981f-ee460b85590a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt9'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        else
          search --no-floppy --fs-uuid --set=root 48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        fi
        linuxefi /vmlinuz-3.15.10-200.fc20.x86_64 root=UUID=6b266543-a497-44de-981f-ee460b85590a rw vconsole.font=latarcyrheb-sun16  rhgb quiet libahci.ignore_sss=1 raid=noautodetect
#        initrdefi /initramfs-3.15.10-200.fc20.x86_64.img
}

Now, that I think about it, I have to set root=/dev/sda10 instead of root=UUID=6b266543-a497-44de-981f-ee460b85590a. Any ways to get to a command line (or however else I can fix it)?

Update: I have fixed the issue, but I still want to know a workaround to this in case it happens again. I won't test any of the answers (don't want to mess it up again).

How to get to rescue mode when GRUB timeout is 0?

Hey!

I seriously messed up my grub.cfg at /boot/efi/EFI/fedora/grub.cfg and my GRUB timeout is 0 in /etc/default/grub. I have to edit the file, but I do not have any way of accessing the disk. The only ways I can think of that are relevent (I have too many random thoughts :P):

  • Reinstalling (worst idea)
  • LiveUSB (works, but tedious)(meh, could do that)
  • Rescue mode (easiest) So, any way of a rescue mode.

James

Here is my /etc/grub/default:

GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet  libahci.ignore_sss=1 raid=noautodetect"
GRUB_DISABLE_RECOVERY="true"
and my grub.cfg (relevent bits):
menuentry 'Fedora, with Linux 3.15.10-200.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.15.10-200.fc20.x86_64-advanced-6b266543-a497-44de-981f-ee460b85590a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt9'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        else
          search --no-floppy --fs-uuid --set=root 48ce0f9f-eee1-4f72-b90e-1a28e6a83c8e
        fi
        linuxefi /vmlinuz-3.15.10-200.fc20.x86_64 root=UUID=6b266543-a497-44de-981f-ee460b85590a rw vconsole.font=latarcyrheb-sun16  rhgb quiet libahci.ignore_sss=1 raid=noautodetect
#        initrdefi /initramfs-3.15.10-200.fc20.x86_64.img
}

Now, that I think about it, I have to set root=/dev/sda10 instead of root=UUID=6b266543-a497-44de-981f-ee460b85590a. Any ways to get to a command line (or however else I can fix it)?

Update: I have fixed the issue, but I still want to know a workaround to this in case it happens again. I won't test any of the answers (don't want to mess it up again).