lmarmisa wrote:sunewbie wrote:the actual file name is grub.cfg.
IMHO your comment is not correct.
The actual file to edit is
"/etc/default/grub".
Sorry for the confusion.
As you have said, I re-checked it in virtualbox with Ubuntu 10.04. I am not on Linux right now. working in office.
GRUB can be edited in both ways. According to my way, as I have mentioned, Grub.cfg file can be edited, but the changes will be wiped out if you you update grub or in case if any new kernels are installed. I have changed by grub,cfg file since 2 months and i am not facing any problem.
grub can also be edited by your way.
(Recommended)- Code: Select all
sudo nautilus /etc/default
for KDE
- Code: Select all
sudo dolphin /etc/default
find the file named Grub
Open it and edit it as said above i.e. change to
GRUB_TIMEOUT=-1save and exit
return to terminal
- Code: Select all
sudo update-grub
if it's not working
- Code: Select all
sudo update-grub2
grub.cfg will be automatically updated / recreated. Upon next reboot, changes can be observed.
my way
(not recommended)open terminal <alt> <ctrl> T and run the following command
- Code: Select all
sudo gedit /boot/grub/grub.cfg
KDE
I don't know the default text editor in KDE
- Code: Select all
sudo kedit /boot/grub/grub.cfg
or
- Code: Select all
sudo kwrite /boot/grub/grub.cfg
or
- Code: Select all
sudo kate /boot/grub/grub.cfg
This will open grub.cfg file in a notepad like app called gedit.
First backup up this file or save as something like grub backup.cfg
again open grub.cfg by using above code.
then find 'GRUB_TIMEOUT' as shown in the above post. Just change the number so that now it -1
save and exit, exit terminal and reboot.
Note:Do not run sudo update-grub
If you run, grub.cfg file will be regenerated and any changes will be gone. Incase kernels are upgraded, grub.cfg will be automatically updated, and it will loose any changes.