Make boot parameters permanent on live session itself?
Solution 1
Please re-edit that document and this time use nano
text editor.
How to use nano
:
Open the document in question:
sudo nano /etc/default/grub
Do the edit re-move that entry you made and re-add it again:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"
Now save the file with: Ctrl+o, then Enter
Close
nano
with: Ctrl+xNow update grub:
sudo update-grub
Reboot your system
Solution 2
This is how I fixed this issue. In my case, I had 2 Linux operating systems installed. One was Ubuntu and the other was Kali.
In fact, I almost had the same issue that you were facing. (i.e: I was not able to add kernal boot parameters(pci=nomsi) permanently)
The mistake that I did was I tried executing all the commands to add boot parameters to Ubuntu from Ubuntu itself. But unfortunately, the bootloader was installed by Kali Linux. Hence all the changes that I made from Ubuntu were not reflected in Kali's bootloader.
Fix:
1.Boot the operating system which installed the bootloader.(In my case it was Kali)
2.From a terminal run:
sudo nano /boot/grub/grub.cfg
3.Under the menuentry of your operating system(to which you want to add the boot parameter) find the line starting with linux and add the boot parameter(pci=nomsi
) to the end of it. For Ubuntu, after adding the parameter that line should look something like this:
linux /vmlinuz-4.13.0-36-generic root=UUID=22aca2b7-9520-4c80-925b-10bde01378d5 ro quiet splash pci=nomsi $vt_handoff
4.Now save the file and close it.
5.Finally, update grub: sudo update-grub
Related videos on Youtube
Jason
Updated on September 18, 2022Comments
-
Jason almost 2 years
Live usb with 4gb persistent. I follow these steps:-
- I press e on grub2 at Boot.
- I add pci=nomsi at the end of quiet splash. Its effects works perfectly.
-
To make it permanent i then in terminal and type this command-
gksudo gedit /etc/default/grub
-
I make these changes in the text file
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"
I get these in terminal after that-
(gedit:5013): WARNING: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:5013): WARNING: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported (gedit:5013): WARNING: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:5013): WARNING: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported (gedit:5013): WARNING: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:5013): WARNING: Set document metadata failed: Setting attribute metadata::gedit-position not supported
-
Then in terminal i type-
sudo update-grub
Everythings works fine but it doest load with that boot parameter next time i do a reboot.
EDIT :- I tried these two seperate method also and they have issue of there own. LINK - link
-
Boot repair - It just doest open.
2.grub-crustomizer - NOte- I also added device.map manually but what to do with grub.cfg now.
I want to add boot parameter(pci=nomsi) permanently by which ever method works. Thanks,
So after trying
sudo nano /etc/default/grub
. I see this after every fresh boot.Despite that, effects of
pci=nomsi
are not taking place and system is not booted with that parameter. How do i know that? Because when i type this command-cat /proc/cmdline
-
George Udosen about 7 yearsPlease re-do it using
nano
text editor.. before proceeding are you familiar withnano
? -
Jason about 7 yearsNO. How should i proceed now?
-
George Udosen about 7 yearsLet me post an answer so you can follow
-
Jason about 7 yearsWait!! I have tried this before -
sudo nano /etc/default/grub
-
George Udosen about 7 yearsAnd what happened then
-
Jason about 7 yearsI didnt know what to do after that. I will follow your answer and post back asap.
-
George Udosen about 7 yearsAnd also look at the bug report on that gedit issue your having.
-
George Udosen about 7 years"booted with that parameter" please explain?
-
George Udosen about 7 yearsWith or without that parameter is the parameter entry not seen in that file after reboot?
-
Jason about 7 yearsSorry, its wihout that parameter. I also added an answer, it will make some sense now. Thanks again, its my very time touching a linux OS. Please understand.
-
George Udosen about 7 years@Jason did this issue start after you first tried to change
grub
using thatgrub customizer
.