I have a custom grub.cfg. What I want is for grub to parse that grub.cfg, and then immediately leave me at the grub prompt:


so that I can type in a command that I want.

I know that I can press "c" from a menu to get that prompt, but I don't want to do that. I don't want a menu, and I don't want to have to press "c" to get the prompt. Is there a way I can do this?

  • Is there a particular reason you want to be dumped at the grub prompt?
    – cutrightjm
    May 12, 2017 at 18:08
  • 1
    Sounds like you don't want a grub.cfg then. The grub.cfg is meant to automate what grub does. If you don't want grub to do anything automatically, try moving your grub.cfg.
    – Centimane
    May 12, 2017 at 18:25
  • I want to manually load the kernel and boot with specific kernel parameters. I can't get rid of grub.cfg because I'm booting grub. It won't do anything if grub.cfg is missing.
    – lord_nimon
    May 12, 2017 at 18:29

1 Answer 1


I figured it out, kinda. I had to fake it with the "read" command:

while true
    echo -n "grub> "
    read COMMAND
    echo ""
    if [ "$COMMAND" = "exit" ]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .