C
C
codemix2016-01-10 13:42:21
GRUB
codemix, 2016-01-10 13:42:21

Why does grub crash after every update?

The grub bootloader crashes every time I update with the Ubuntu 14.04 Desktop Software Updater, what could be the reason? Constantly after the update, you have to climb and configure a new grub.cfg (windows 8.1 and ubuntu 14.04 are installed on the ssd so that win. is loaded first).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
ZUZ, 2016-01-10
@codemix

Hehe!
Straight to the address!
In short, we hear here:
Earlier, when the grass was greener, and the water was wetter, and the GRUB version was 0.9xx, it was possible to change the config with handles through% favorite_text_editor%.
BUT!
With the release of the new (ala second) GRUB (versions of the form 1.98, 1.99 and higher) touch the config! (it says so at the very beginning: # DO NOT EDIT THIS FILE , since all changes will still be lost with the next GRUB update).
And, if you want to always have the first Windows by default, then you need to get into the scripts that create the config. But you can simply configure the _sequence_ of adding (automated, I want to note) to the menu item config. And the sequence when updating the config (and the config is updated every time GRUB itself is updated) is set by sorting the script files in the /etc/grub.d/ directory
, it contains scripts such as:
00_header - default settings and parameters
10_linux - are responsible for finding Linux kernels
20_memtest86+ - adding memory test call points
30_os-prober - responsible for finding the rest of the OS
40_custom - allows you to add your own boot points
so as not to dig into them, I do it very simply:
once after installing linux, I go to /etc/grub.d/ and rename the file 30_os-prober to 03_os-prober:
> cd /etc/grub.d/
> sudo move ./30_os-prober 03_os-prober
and update the config:
> sudo update-grub
As you can see, now when GRUB is updated, the config will always be the first to contain items with found Windows, and only the next ones with ubuntu / runtu or linux mint
PS You can also read here linuxforum.ru/post/354771 - there is a more complicated question - change the sequence of found Linuxes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question