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

Re: How can I force a full fsck on a remote system at next reboot?




Hi Jape,

Am 2015-03-13 19:12, schrieb Jape Person:
However, I can't get grub-set-default to redesignate that new menu
entry as the default.

What I did to try to get it to work:

1. changed the "GRUB_DEFAULT=0" entry in /etc/default/grub to
"GRUB_DEFAULT=1" (Also tried "GRUB_DEFAULT=saved", just in case the
manual was being explicit about the value.)
2. ran grub-set-default (I tested the command using both the menu line
number and the full menu line name in quotes.)

I ran update-grub after each set of changes. The default in the grub
menu (indicated by the asterisk) kept showing up as the "advanced"
submenu instead of the menu line I wanted to choose.

The info and man pages for grub-set-default are the same. So far my
efforts to locate a more in-depth explanation of the utility via
search engines hasn't found anything that looks particularly helpful.

I'm sure I'm being dense.

Suggestions (other than put down the keyboard and step away from the computer)?

Maybe [1] has the missing clue. If your mentry is under the Advanced menu, you need to use a special syntax.
I just tried the following
1. Set GRUB_DEFAULT=saved, as you did and ran update-grub
2. Checked which menu entries I had:
   grep menuentry /boot/grub/grub.cfg
3. Constructed the default entry:
grub-set-default "Erweiterte Optionen für Debian GNU/Linux>Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)"

Note how I explicitly specified the kernel as a subcomponent of the advanced menu.
(sorry for the Geman locale)

On next boot, I was dropped into the recovery mode.


HTH,
Michael


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780122#10


Reply to: