LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   No arrow keys to use in grub menu. (https://www.linuxquestions.org/questions/linux-software-2/no-arrow-keys-to-use-in-grub-menu-4175735071/)

cahlucas 03-19-2024 09:52 AM

No arrow keys to use in grub menu.
 
After adding a menu entry in the grub menu due to adding a second OS, the arrow keys no longer work, making operating this menu very difficult. The OS'es in question are Linux Mint and OpenBSD. Where should I start troubleshooting, and what can be done about it?

wpeckham 03-19-2024 09:57 AM

Quote:

Originally Posted by cahlucas (Post 6490620)
After adding a menu entry in the grub menu due to adding a second OS, the arrow keys no longer work, making operating this menu very difficult. The OS'es in question are Linux Mint and OpenBSD. Where should I start troubleshooting, and what can be done about it?

Step #1 would be to restore the changed files from your backup so grub acts properly. Verify proper operations.
Step #2 would be to make ONE simple change again, and see how that changes the behavior.
Step #3+ repeat #2 until you get to the change that breaks things - back that one out and research your work: there is something wrong with that step.

pan64 03-19-2024 10:08 AM

additionally you may want to explain exactly what did you change.

cahlucas 03-19-2024 12:36 PM

Quote:

Originally Posted by wpeckham (Post 6490621)
Step #1 would be to restore the changed files from your backup so grub acts properly. Verify proper operations.
Step #2 would be to make ONE simple change again, and see how that changes the behavior.
Step #3+ repeat #2 until you get to the change that breaks things - back that one out and research your work: there is something wrong with that step.

All files have been restored to their original state, except for one added file that adds the alternate OS. Despite this, the behavior of the menu remains the same, none of the arrow keys work.

mrmazda 03-19-2024 07:55 PM

Maybe you should name that added file and show its content.

pan64 03-20-2024 03:07 AM

restore the original content and check if that works. Add your alternate OS. Explain what did you modify, how did you do that.

yancek 03-20-2024 07:42 AM

Move the file you created in the /etc/grub.d directory which contains the entry to chainload OpenBSD. Run grub-mkconfig and reboot to test. If the arrow keys work properly after this change, then you know there is a problem with that file and if you post it here, someone might be able to point out the problem. Out of curiosity, do your arrow keys function properly after you boot whatever you can boot?

wpeckham 03-20-2024 11:08 AM

Quote:

Originally Posted by cahlucas (Post 6490646)
All files have been restored to their original state, except for one added file that adds the alternate OS. Despite this, the behavior of the menu remains the same, none of the arrow keys work.

If that file is REALLY the only change, then that file may be the problem. Move or hide it and try again.

cahlucas 03-20-2024 12:35 PM

No arrow keys to use in grub menu.
 
Quote:

Originally Posted by mrmazda (Post 6490701)
Maybe you should name that added file and show its content.

Content of /boot/grub/custom.cfg:
menuentry "OpenBSD" {
set root=(hd1,4)
chainloader +1
}

cahlucas 03-20-2024 12:54 PM

Quote:

Originally Posted by yancek (Post 6490798)
Move the file you created in the /etc/grub.d directory which contains the entry to chainload OpenBSD. Run grub-mkconfig and reboot to test. If the arrow keys work properly after this change, then you know there is a problem with that file and if you post it here, someone might be able to point out the problem. Out of curiosity, do your arrow keys function properly after you boot whatever you can boot?

I first had the file in question in /etc/grub.d, with the result that OpenBSD was not added. The grub-mkconfig command doesn't make a difference. The arrow keys work well in both Linux mint and OpenBSD. The keyboard is a new one, so that can't be the problem.

yancek 03-20-2024 01:15 PM

No idea what the keyboard arrow problem is but have you tried just putting the OpenBSD chainload entry in the /boot/grub/grub.cfg file and saving the change. Do not run grub-mkconfig but just reboot to test. Mint seems to have some different file in the /etc/grub.d directory from your other post.

Did you ever try just putting the BSD chainload entry in the 40_custom file in /etc/grub.d and updating grub?

cahlucas 03-20-2024 07:36 PM

Quote:

Originally Posted by yancek (Post 6490853)
No idea what the keyboard arrow problem is but have you tried just putting the OpenBSD chainload entry in the /boot/grub/grub.cfg file and saving the change. Do not run grub-mkconfig but just reboot to test. Mint seems to have some different file in the /etc/grub.d directory from your other post.

This also yielded no results. Maybe if I use grub-mkconfig it will work, but I haven't tested that.

Quote:

Originally Posted by yancek (Post 6490853)
Did you ever try just putting the BSD chainload entry in the 40_custom file in /etc/grub.d and updating grub?

That was already tested in my previous post, and it yielded nothing.

mrmazda 03-20-2024 07:37 PM

If you create a custom.cfg file that loads the BSD kernel directly instead of chainloading, are the arrows still inoperable? Does a stab or two or three of NUM produce any difference?

pan64 03-21-2024 02:28 AM

Quote:

Originally Posted by cahlucas (Post 6490923)
This also yielded no results.

This is pointless. I mean stating something doesn't work is not really heplful it does not contain any information about the details.

That was already tested in my previous post, and it yielded nothing.[/QUOTE]

Was requested already to tell us exactly what did you make. Telling us "tested but did not work" means nothing. Probably you made a mistake somewhere which cannot be seen. Probably you missed something which cannot be detected.
So return back to the original working setup and explain line by line what did you make, what changed. Without details you will need to catch that missing step.

yancek 03-21-2024 07:09 AM

Quote:

Maybe if I use grub-mkconfig it will work, but I haven't tested that.
No because when you run 'update-grub' on one of the Ubuntu's (like Mint) you are running grub-mkconfig because the /usr/sbin/update-grub file is nothing but a stub/link to the grub-mkconfig script which is what actually runs. You can see this by simply opening the file in a text editor.

I agree you are being to cryptic in your responses to get help, you need to post more information than 'no results'.


All times are GMT -5. The time now is 11:38 PM.