When booting, I'd like to see the kernel output without having to edit the GRUB line on each boot. How can I do that?
3 Answers
Open a terminal and type the following:
sudo gedit /etc/default/grub
Then look for a line like this in the opened file:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
It may have other options there as well, but just remove quiet splash and:
sudo update-grub
-
1the final step is to run
sudo update-grub
for any changes made to the grub.config file to be used, otherwise any changes made will not take effect until grub runs an update for another reason(like a new kernel install), otherwise your answer is good....also the question does not say which version of Ubuntu...if newer than 12.10(?maybe) gksudo will not be installed by default the correct way in that case issudo -i gedit.......
Jun 6, 2014 at 20:06 -
Ah yes forgot the sudo update-grub! My bad! I didn't know that about gksudo, thanks for the info, and the -i sudo tip! Jun 6, 2014 at 20:08
-
@TrailRider , the correct one (from now on) is
pkexec
and notgksudo
(as you said correctly it has been removed due to some problems).– NickTuxJun 6, 2014 at 20:25 -
@NikTh I know that
pkexec
was going to replacegksudo
, however I don't know if it did, last I knew it was not installed be default either, it may be now, but I know thatsudo -i
does work.....thank you for letting me know thatpkexec
is now available... Jun 6, 2014 at 21:30
Open a terminal (Ctrl+Alt+T) and issue the following command
pkexec gedit /etc/default/grub
or
sudo -H gedit /etc/default/grub
I assume here that gedit is installed on your system, if you prefer another editor use the appropriate name (e.g. leafpad, kate...etc).
Search, find and edit the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT=""
proofread, save the document and then run in terminal
sudo update-grub
-
Thank your too for your reply. When I tried to ran your first line, it didn't work:
~$ pkexec gedit /etc/default/grub error: XDG_RUNTIME_DIR not set in the environment. (gedit:6024): Gtk-WARNING **: cannot open display:
– henryJun 7, 2014 at 7:46 -
Although your comments to the other reply explains it, I'm too unfamiliar with this particular program so I just used
sudo
.– henryJun 7, 2014 at 7:47 -
I added
sudo
again as an alternative. At 14.04 (that I have)pkexec
works as it should. It seems that you have to provide some variables in order forpkexec
to work properly. Trypkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit
– NickTuxJun 7, 2014 at 11:39
It's in /etc/default/grub
. Make your changes there and update grub with sudo update-grub