Linux Lite Forums
How do I remove the stored boot options in NVRAM - command line or GUI? - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.linuxliteos.com/forums/forumdisplay.php?fid=20)
+--- Thread: How do I remove the stored boot options in NVRAM - command line or GUI? (/showthread.php?tid=2864)



How do I remove the stored boot options in NVRAM - command line or GUI? - m654321 - 04-23-2016

My main laptop (Asus G750) appears to have NVRAM (non-volatile random access memory).

This seems to interfere with booting the computer following removal of the HDD or SSD containing the operating system, and swapping it for another drive with a different operating system.  This problem (and its solution) was previously discussed at https://www.linuxliteos.com/forums/tutorials/tutorial-how-to-set-up-a-winll-dual-boot-with-uefi-fully-enabled/ (see Section F – problem 1).  What I would like to know is how to avoid the above problem altogether. Put simply, is there a either a command line or GUI method for clearing NVRAM of its stored boot options, before I swap the the drives (containing the different operating systems)?

Many thanks in advance for any help on this one.

Mike



Re: How do I remove the stored boot options in NVRAM - command line or GUI? - avj - 04-23-2016

I have no experience with UEFI or NVRAM but after a little searching it appears that "efibootmgr" is capable of changing boot options.  See the following.

http://linux.die.net/man/8/efibootmgr


Re: How do I remove the stored boot options in NVRAM - command line or GUI? - m654321 - 04-24-2016

Avj, many thanks for your reply and taking the trouble to do a bit of searching re. efibootmgr.
I typed efibootmgr into the terminal but no GUI materialised, so I assume there is none and this is command-line only solution.
I think I might postpone applying the command-line in the link for a while as it looks a bit complicated and I'm still a very much
a linux newbie...

Cheers
Mike 


Re: How do I remove the stored boot options in NVRAM - command line or GUI? - Wirezfree - 04-24-2016

Hi,
Have no experience of this...
I just remember, when you mentioned GUI this was mentioned in a Linux Mag
https://sourceforge.net/projects/refind/


Re: How do I remove the stored boot options in NVRAM - command line or GUI? - m654321 - 04-24-2016

Thanks Dave - maybe prudent then if I just use the solution in the UEFI LL/Win dual-boot tutorial - at least I know what I'm playing with there and it works.
If I stray into  'unknown territory',  I'll probably only break the system and consequently waste a lot of valuable time ...

Mike


Re: How do I remove the stored boot options in NVRAM - command line or GUI? - Wirezfree - 04-24-2016

Just a thought.?, could you experiment in Virtualbox...
Here's a post, Arch related, but it mentions nvram and refind in the same post
Maybe going off topic, and possibly complicated

https://bbs.archlinux.org/viewtopic.php?id=158003


Re: How do I remove the stored boot options in NVRAM - command line or GUI? - m654321 - 04-24-2016

Thanks again Dave, and also avj, for your help - much appreciated. I think I'll stick with what I
know just to be safe... ...when i've got a bit more time & feeling a bit more adventurous I might
look at it again with the ideas you've both presented.

Cheers
Mike


Re: How do I remove the stored boot options in NVRAM - command line or GUI? - Wirezfree - 04-24-2016

No probs... GL