[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Grub edits at boot not saved



Thomas H. George wrote:
> Upon booting wheezy I get a message "vga=399 deprecated Enter set
> gfxpayload=1600x1200x24,1600x1200 before linux"

I have no information on that problem.

> Just before loading the boot file there is an option to press e to edit
> the grub startup file.  When this is chosen the file appears in a window
> with instructions below the window which state minimum Emacs edit
> enabled.

Yes.  That is correct.

> I use the arrow keys to move to the line before the one
> begining linux and add the line set gfxpayload=1600x1200x24,1600x1200.

Okay.

> Having done this I would like to save and exit with the Emacs command
> Ctl-x Ctl-s.  This doesn't work as in this screen Ctl-x is the command
> to contine booting the system so the edits are not saved.

There isn't any code in grub to save the file.  You can only edit it
on the command line to boot that one time with it.  There is nothing
in the docs that talk about saving the result.  Only editing the
current booting command.  It is "minimum Emacs-like screen editing"
but is not a full editor and does not support save.  You are only
expected to get the system booted.  If you want to modify the file
permanently then you must do it from the running system.

> Wheezy is loaded and runs with no problems but I shut the system down
> every night and when I boot the system in the morning the message
> vga=399 deprecated is back.
> 
> Should I bother to try to fix this and, if so, how?

After you have booted then go edit the files and fix it.  The file you
want to change is:

  /etc/default/grub

Look for this section:

  GRUB_CMDLINE_LINUX=""

Add in your new options there.  Then save that file.  Possibly you
want this one instead, not sure, you will need to research it:

  GRUB_GFXMODE=1600x1200x24,1600x1200

In any case, after saving the file then run:

  # update-grub

That will "compile" the result into the /boot/grub/grub.cfg file.
Double check the contents of the /boot/grub/grub.cfg file and verify
that the result is as you want it.  If not then change the values and
run "update-grub" again.  Repeat until it is as you want it.  Then
reboot to test.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: