- jSherz.com
- Adding a grub menu option to reboot to the BIOS / UEFI settings on CentOS
- How do I boot to BIOS directly from Ubuntu?
- Thread: looking for command: reboot to bios
- looking for command: reboot to bios
- Re: looking for command: reboot to bios
- Re: looking for command: reboot to bios
- Re: looking for command: reboot to bios
- Re: looking for command: reboot to bios
- Re: looking for command: reboot to bios
- Re: looking for command: reboot to bios
jSherz.com
Adding a grub menu option to reboot to the BIOS / UEFI settings on CentOS
I recently played around with a few Linux distros and ended up keeping CentOS as my daily driver. One thing I missed, however, was having the “System settings” option on the grub menu that would reboot the computer into the BIOS / UEFI options (present in Ubuntu & Debian).
To add this option on CentOS, create the following file and paste in the shell script below (note that 50 is an arbitrary number that determines the order of the grub helper scripts being run).
#! /bin/sh set -e # grub-mkconfig helper script. # Copyright (C) 2012 Free Software Foundation, Inc. # # GRUB is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GRUB is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GRUB. If not, see . . "/usr/share/grub/grub-mkconfig_lib" efi_vars_dir=/sys/firmware/efi/vars EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data" if [ -e "$OsIndications" ] && \ [ "$(( $(printf 0x%x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then LABEL="System setup" gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2 onstr="$(gettext_printf "(on %s)" "$DEVICE>")" cat <EOF menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' EOF fi
Then make the script executable:
chmod +x /etc/grub.d/50_uefi-firmware
Once it’s executable, you can see the menu entry that will be added by running grub2-mkconfig . If successful, it will return something similar to the following (providing you’re booting into an EFI install).
# . ### BEGIN /etc/grub.d/50_uefi-firmware ### Adding boot menu entry for EFI firmware configuration menuentry 'System setup' $menuentry_id_option 'uefi-firmware' fwsetup > ### END /etc/grub.d/50_uefi-firmware ### # .
If everything looks OK, you can then update your grub config file as follows.
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
How do I boot to BIOS directly from Ubuntu?
Disclaimer: I have basically no experience with BIOS, UEFI, or anything of that kind. Earlier today I installed Ubuntu 16.04 on my Acer Aspire V5-571 alongside Windows 10. (This laptop came with 8 pre-installed, so it had the quickboot thing enabled.) After the install, both worked fine, except I’d have to go into the UEFI settings and change the boot order in order to switch between Ubuntu and Windows. This is not a very bad thing, just an extremely minor annoyance that I decided to fix by switching to BIOS. (In retrospect, I don’t see how that was supposed to help.) I went into my UEFI boot-order settings and hit the «Switch to BIOS» button. I also messed around with boot orders before that but can’t remember exactly what I did. I seem to remember there being more than one entry for Windows, strangely. Anyway, now it won’t boot into Ubuntu or Windows, and I can’t seem to access BIOS. When I hit the power button, it gives me this message:
(there's a copyright and patent message here) Realtek PCIe GBE Family Controller Series v2.46 (03/23/12) PXE-E61: Media test failure, check cable PXE-M0F: Exiting PXE ROM.
Then it gives me a blank screen with Operating System not found in the upper-left corner. I’m fairly certain it’s not a problem with my hard drive cable, as I can access all my files from both partitions no problem after booting from my Ubuntu 16.04 USB stick. I have an SSD, and my computer boots so fast I only see the boot «ACER» logo screen for a split second. (I had to take a video with my phone and then freeze-frame it just to figure out what key I was supposed to press to open BIOS!) I’ve tried pressing/tapping F1 , F2 , F8 , F10 , F11 , F12 , and Del , but none of them seem to open BIOS. Right now the only way for me to get this computer to work at all is to boot from the USB stick I installed Ubuntu from! I assume that I need to revert to UEFI boot, but I can’t access BIOS in the conventional way. I have files I want in Windows, but not in Ubuntu. I tried to reinstall/reset Ubuntu from the stick, but that gave me this:
The partition table format in use on your disks normally requires you to create a separate partition for boot loader code. This partition should be marked for use as a «Reserved BIOS boot area» and should be at least 1 MB in size. Note that this is not the same as a partition mounted on /boot. If you do not go back to the partitioning menu and correct this error, boot loader installation may fail later, although it may still be possible to install the boot loader to a partition.
Hypothesis 1: Windows can boot directly to the UEFI settings from the «Restore Mode» thing WITHOUT having to hit F2 or whatever the key is. Is there an equivalent on USB-stick Ubuntu?
Thread: looking for command: reboot to bios
First Cup of Ubuntu
looking for command: reboot to bios
I have install Ubuntu server 12.04 in my Samsung Ultrabook series 5. I have some problem with my laptop and not able to go to bios setting by pressing any keys: F2, F10, F12, Del, F etc. Please don’t give suggestion to go to bios setting with this option.
I am looking for command in Ubuntu such that my laptop reboot to bios setting directly. without pressing any keys. Thanks.
Ubuntu Cappuccino Scuro
Join Date Jan 2009 Location Santander, Spain Beans 1,981 —> Beans 1,981 Distro Xubuntu 18.04 Bionic Beaver
Re: looking for command: reboot to bios
As far as I know, there is not such a linux command to enter into BIOS.
There are combination keys given by computer manufacturer in order to enter into BIOS.
Here, http://www.pendrivelinux.com/how-to-access-bios/ there are some of them, you will be to look for the specific key combination given by samsung for your laptop: http://linux.seindal.dk/2013/03/31/s. -installation/
First Cup of Ubuntu
Re: looking for command: reboot to bios
First Cup of Ubuntu
Re: looking for command: reboot to bios
I have windows 8 installed and I was able to boot with bios setting by just using some option in Windows 8. If Windows 8 can configure the boot directly to bios, then I was guessing Ubuntu may have similar procedure.
Dark Roasted Ubuntu
Re: looking for command: reboot to bios
Maybe you can do an «apropos bios» (without the quotes), in the terminal, and see what commands pertinent to the BIOS exist on your computer.
On my computer (not a laptop, not a Toshiba) apparently exists
toshset (1) — manipulate bios and hardware settings of Toshiba laptops
If you are lucky, you may have luck, who knows
First Cup of Ubuntu
Re: looking for command: reboot to bios
Topsiho, thanks for help. this is what I got when type «apropos bios»
biosdecode (8) — BIOS information decoder
check-bios-nx (1) — determine if BIOS has blocked CPU’s NX capabilities
intel_bios_dumper (1) — Saves the Intel video BIOS contents to a file.
intel_bios_reader (1) — Parses an Intel BIOS and displays many of its tables
lmhosts (5) — The Samba NetBIOS hosts file
nmbd (8) — NetBIOS name server to provide NetBIOS over IP naming .
nmblookup (1) — NetBIOS over TCP/IP client used to lookup NetBIOS names
nmblookup.samba3 (1) — NetBIOS over TCP/IP client used to lookup NetBIOS names
toshset (1) — manipulate bios and hardware settings of Toshiba laptops
vbetool (1) — run real-mode video BIOS code to alter hardware state
next what should I do ? I am really beginner.
Dark Roasted Ubuntu
Re: looking for command: reboot to bios
This is what I get, too. So I guess there is no luck here.
I never (for what that is worth) have seen a computer in which could not enter the BIOS somehow. Sometimes you have to press the right button at exactly the right time, or you are too late or too fast. Some perseverance helps here. *** Knowing *** which button to press helps in such a case. You can find that in the manual, the manual of the mother board, or so. If you don’t have the manual of the mother board, you might try and find this on the internet (google, or duckduckgo or so). You must know what mother board you have then. One possibility is opening up your computer and try and find the name somewhere on this board, you also might try what (in a terminal) you get when you do «sudo lshw | less» (without quotes), and try and find line(s) with Mother board (or Motherboard) in it. In one computer I have I could thus find the name of the mother board (and what buttons to press), on this computer I use now i can’t.
You can also (opening up a laptop is not advisable if you don’t know exactly what you are doing) google (duckduckgo) on the computer’s name and see what info you get. But: you have a computer manual, don’t you?
Other than this, I am afraid i can not help you.