How do I add a kernel boot parameter?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
120
down vote
favorite
I need to add the boot parameter foo=bar
to my kernel. How can I do this once for testing, and permanently if testing was a success?
kernel grub2
add a comment |Â
up vote
120
down vote
favorite
I need to add the boot parameter foo=bar
to my kernel. How can I do this once for testing, and permanently if testing was a success?
kernel grub2
add a comment |Â
up vote
120
down vote
favorite
up vote
120
down vote
favorite
I need to add the boot parameter foo=bar
to my kernel. How can I do this once for testing, and permanently if testing was a success?
kernel grub2
I need to add the boot parameter foo=bar
to my kernel. How can I do this once for testing, and permanently if testing was a success?
kernel grub2
edited Jan 20 '13 at 18:06
Jorge Castro
34.5k104421614
34.5k104421614
asked Dec 30 '10 at 22:51
htorque
45.7k31169211
45.7k31169211
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
170
down vote
accepted
To temporarily add a boot parameter to a kernel:
- Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
- Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
- Go down to the line starting with
linux
and add your parameterfoo=bar
to its end. - Now press Ctrl + x to boot.
To make this change permanent:
From a terminal (or after pressing Alt + F2) run:
gksudo gedit /etc/default/grub
(or use
sudo nano
ifgksudo
orgedit
are not available) and enter your password.Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT
and appendfoo=bar
to its end. For example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"
Save the file and close the editor.
Finally, start a terminal and run:
sudo update-grub
to update GRUB's configuration file (you probably need to enter your password).
On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT
and run sudo update-grub
again.
To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline
.
Wiki Page:
- https://help.ubuntu.com/community/BootOptions
3
FYI to test this runcat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
add a comment |Â
up vote
12
down vote
To add any kernel option:
for a liveCD session: follow these steps
for an Existing Installation: use Boot-Repair's
Add a kernel option
orEdit GRUB configuration file
options.
See also this documentation.
add a comment |Â
up vote
11
down vote
Alternatively, you may also use the handy grub-customizer:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksu grub-customizer &
Just open a boot entry, and edit its kernel parameters as highlighted in the screenshot below:
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
170
down vote
accepted
To temporarily add a boot parameter to a kernel:
- Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
- Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
- Go down to the line starting with
linux
and add your parameterfoo=bar
to its end. - Now press Ctrl + x to boot.
To make this change permanent:
From a terminal (or after pressing Alt + F2) run:
gksudo gedit /etc/default/grub
(or use
sudo nano
ifgksudo
orgedit
are not available) and enter your password.Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT
and appendfoo=bar
to its end. For example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"
Save the file and close the editor.
Finally, start a terminal and run:
sudo update-grub
to update GRUB's configuration file (you probably need to enter your password).
On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT
and run sudo update-grub
again.
To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline
.
Wiki Page:
- https://help.ubuntu.com/community/BootOptions
3
FYI to test this runcat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
add a comment |Â
up vote
170
down vote
accepted
To temporarily add a boot parameter to a kernel:
- Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
- Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
- Go down to the line starting with
linux
and add your parameterfoo=bar
to its end. - Now press Ctrl + x to boot.
To make this change permanent:
From a terminal (or after pressing Alt + F2) run:
gksudo gedit /etc/default/grub
(or use
sudo nano
ifgksudo
orgedit
are not available) and enter your password.Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT
and appendfoo=bar
to its end. For example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"
Save the file and close the editor.
Finally, start a terminal and run:
sudo update-grub
to update GRUB's configuration file (you probably need to enter your password).
On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT
and run sudo update-grub
again.
To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline
.
Wiki Page:
- https://help.ubuntu.com/community/BootOptions
3
FYI to test this runcat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
add a comment |Â
up vote
170
down vote
accepted
up vote
170
down vote
accepted
To temporarily add a boot parameter to a kernel:
- Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
- Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
- Go down to the line starting with
linux
and add your parameterfoo=bar
to its end. - Now press Ctrl + x to boot.
To make this change permanent:
From a terminal (or after pressing Alt + F2) run:
gksudo gedit /etc/default/grub
(or use
sudo nano
ifgksudo
orgedit
are not available) and enter your password.Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT
and appendfoo=bar
to its end. For example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"
Save the file and close the editor.
Finally, start a terminal and run:
sudo update-grub
to update GRUB's configuration file (you probably need to enter your password).
On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT
and run sudo update-grub
again.
To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline
.
Wiki Page:
- https://help.ubuntu.com/community/BootOptions
To temporarily add a boot parameter to a kernel:
- Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
- Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
- Go down to the line starting with
linux
and add your parameterfoo=bar
to its end. - Now press Ctrl + x to boot.
To make this change permanent:
From a terminal (or after pressing Alt + F2) run:
gksudo gedit /etc/default/grub
(or use
sudo nano
ifgksudo
orgedit
are not available) and enter your password.Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT
and appendfoo=bar
to its end. For example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"
Save the file and close the editor.
Finally, start a terminal and run:
sudo update-grub
to update GRUB's configuration file (you probably need to enter your password).
On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT
and run sudo update-grub
again.
To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline
.
Wiki Page:
- https://help.ubuntu.com/community/BootOptions
edited Jan 4 at 15:16
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48k13119227
48k13119227
answered Dec 30 '10 at 22:51
htorque
45.7k31169211
45.7k31169211
3
FYI to test this runcat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
add a comment |Â
3
FYI to test this runcat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
3
3
FYI to test this run
cat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
FYI to test this run
cat /proc/cmdline
â Avindra Goolcharan
Aug 3 '16 at 15:13
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
Shift doesnâÂÂt work for me. I used Esc instead. Had to be careful not to hold it too long or it would blow right through GRUB
â eqzx
Jul 7 at 3:18
add a comment |Â
up vote
12
down vote
To add any kernel option:
for a liveCD session: follow these steps
for an Existing Installation: use Boot-Repair's
Add a kernel option
orEdit GRUB configuration file
options.
See also this documentation.
add a comment |Â
up vote
12
down vote
To add any kernel option:
for a liveCD session: follow these steps
for an Existing Installation: use Boot-Repair's
Add a kernel option
orEdit GRUB configuration file
options.
See also this documentation.
add a comment |Â
up vote
12
down vote
up vote
12
down vote
To add any kernel option:
for a liveCD session: follow these steps
for an Existing Installation: use Boot-Repair's
Add a kernel option
orEdit GRUB configuration file
options.
See also this documentation.
To add any kernel option:
for a liveCD session: follow these steps
for an Existing Installation: use Boot-Repair's
Add a kernel option
orEdit GRUB configuration file
options.
See also this documentation.
answered Jul 5 '12 at 21:25
LovinBuntu
2,83921419
2,83921419
add a comment |Â
add a comment |Â
up vote
11
down vote
Alternatively, you may also use the handy grub-customizer:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksu grub-customizer &
Just open a boot entry, and edit its kernel parameters as highlighted in the screenshot below:
add a comment |Â
up vote
11
down vote
Alternatively, you may also use the handy grub-customizer:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksu grub-customizer &
Just open a boot entry, and edit its kernel parameters as highlighted in the screenshot below:
add a comment |Â
up vote
11
down vote
up vote
11
down vote
Alternatively, you may also use the handy grub-customizer:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksu grub-customizer &
Just open a boot entry, and edit its kernel parameters as highlighted in the screenshot below:
Alternatively, you may also use the handy grub-customizer:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksu grub-customizer &
Just open a boot entry, and edit its kernel parameters as highlighted in the screenshot below:
edited May 19 at 8:33
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
David Foerster
26k1361106
26k1361106
answered Dec 11 '12 at 1:59
jasxun
35625
35625
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f19486%2fhow-do-i-add-a-kernel-boot-parameter%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password