How to save the changes in the GRUB_CMDLINE_LINUX_DEFAULT

Asked by askush

How to save the changes in the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line?
With the "escap" key, then :xq, then "enter", I didn't manage to do it.
My computer is a WHY! running on ubuntu 22.04.1 LTS

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
askush
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The security concept of Ubuntu does not allow a "normal user" to modify system settings, but that task has to be done with "admin rights".

If you start the editor with a command like
sudo vi /etc/default/grub
(or other editors like "sudo gedit ..." or "sudo nano ..." etc.)
then you temporarily have admin rights.
You will also need to activate administrative authorizations for activating the change in the grub configuration, i.e. running
sudo update-grub

Revision history for this message
askush (askush2) said :
#2

Dear Sir,
I have just tested your solution. It did not work. I probably need a
more precise advice, with a detailed order of orders. If not, it will be
difficult for me.
I started with the command "sudo nano /etc/default/grub", then I make
the change, but after that I can't continue. I am blocked.

I am sorry for that.
Best regards

Le 03-09-2022 10:15, Manfred Hampl a écrit :

> Your question #703034 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/703034
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The security concept of Ubuntu does not allow a "normal user" to modify
> system settings, but that task has to be done with "admin rights".
>
> If you start the editor with a command like
> sudo vi /etc/default/grub
> (or other editors like "sudo gedit ..." or "sudo nano ..." etc.)
> then you temporarily have admin rights.
> You will also need to activate administrative authorizations for
> activating the change in the grub configuration, i.e. running
> sudo update-grub

--
Sent via Swisscows.email.
My mails are safe. And yours?

Revision history for this message
askush (askush2) said :
#3

Dear Mr.

You just sent me the same message as the previous one.
Personally I don't understand the sentences:
"then you temporarily have administrator rights.
You will also need to activate the administrative permissions to
activate the modification of the grub configuration, i.e. run
sudo update-grub".

Hence my question:
How and in which order

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

You are misinterpreting the way that Launchpad question is working.

The person who created a question document receives an e-mail notification for every change of the question document. Apparently you are misunderstanding the e-mail reply that you received for your own message.

I suggest that you look at your question page on the web, https://answers.launchpad.net/ubuntu/+question/703034
There you can see that I only sent one single comment to this grub question.

To your problem:

I do not understand your sentence:
"I started with the command "sudo nano /etc/default/grub", then I make the change, but after that I can't continue. I am blocked."

"Blocked" in what sense?
What exactly happens?

And - by the way - why do you want to change the grub settings at all?

Revision history for this message
askush (askush2) said :
#5

Hello,

I start again.

In the "grub" I want to make a line change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
like this
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 splash"

But I am blocked when I want to save the change.

According to the forums, to save, you have to do "escap", then :xq, then
"enter". This does not work in my WHY! computer which runs ubuntu
22.04.1 LTS

What should I do?
Any solution?

Best regards

Le 03-09-2022 11:11, askush a écrit :

> Your question #703034 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/703034
>
> You gave more information on the question:
>
> Dear Mr.
>
> You just sent me the same message as the previous one.
> Personally I don't understand the sentences:
> "then you temporarily have administrator rights.
> You will also need to activate the administrative permissions to
> activate the modification of the grub configuration, i.e. run
> sudo update-grub".
>
> Hence my question:
> How and in which order

--
Sent via Swisscows.email.
My mails are safe. And yours?

Revision history for this message
askush (askush2) said :
#6

I just made two screenshots, to better understand in which stage I am
stuck.
Thank you for your precious time that you grant me

Best regards

Le 03-09-2022 11:31, askush a écrit :

> Your question #703034 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/703034
>
> Status: Needs information => Open
>
> You gave more information on the question:
>
> Hello,
>
> I start again.
>
> In the "grub" I want to make a line change:
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> like this
> GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 splash"
>
> But I am blocked when I want to save the change.
>
> According to the forums, to save, you have to do "escap", then :xq,
> then
> "enter". This does not work in my WHY! computer which runs ubuntu
> 22.04.1 LTS
>
> What should I do?
> Any solution?
>
> Best regards
>
> Le 03-09-2022 11:11, askush a écrit :
>
>> Your question #703034 on Ubuntu changed:
>> https://answers.launchpad.net/ubuntu/+question/703034
>>
>> You gave more information on the question:
>>
>> Dear Mr.
>>
>> You just sent me the same message as the previous one.
>> Personally I don't understand the sentences:
>> "then you temporarily have administrator rights.
>> You will also need to activate the administrative permissions to
>> activate the modification of the grub configuration, i.e. run
>> sudo update-grub".
>>
>> Hence my question:
>> How and in which order

--
Sent via Swisscows.email.
My mails are safe. And yours?

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#7

Please look at your question document on the launchpad server https://answers.launchpad.net/ubuntu/+question/703034 and you will see that adding screenshots does not work in the Launchpad question area.

It seems that you are mixing different instructions in a way that they do not work.

"escape colon w q !" is the key sequence to save the file when you are running the vi editor.

When you are using a different editor, then these commands don't do anything or do different things.

As far as I can remember, when using the nano editor you have to use ctrl-s ctrl-x

Revision history for this message
askush (askush2) said :
#8

Hello,
Excellent. The Ctrl+S and Ctrl+X commands solved my problem.
Thank you very much for your help.
Best regards