Previously, my Ubuntu system used to modify the grub menu by modifying the/boot/Grub/menu. lst file, but modifying the grub menu in Ubuntu9.10 is invalid. Later, I found that Ubuntu9.10 uses Grub2 and no longer uses the original menu. lst. Instead, it is changed to the grub. cfg read-only file in the same directory. Later I remembered that when I installed Ubuntu9.10, the original system partition was not formatted, so some original system file security
Previously, my Ubuntu system used to modify the grub menu by modifying the/boot/Grub/menu. lst file, but modifying this file in Ubuntu 9.10 became invalid. Later, I found out that Ubuntu 9.10 uses Grub2 and no longer uses the original menu. lst, but changes it to the grub. cfg read-only file in the same directory. Later I remembered that when I installed Ubuntu 9.10, the original system partition was not formatted, so some original system files were not cleared during installation, resulting in the existence of these two files in my system at the same time. It is easy to understand the cause, but the file cannot be modified by default using the sudo command, because it is also read-only for root.
Therefore, you must modify the attributes first. You can run the following command on the terminal to make them writable:
Sudo chmod + w/boot/grub. cfg
Or
Sudo chown a = wr/boot/grub. cfg
Then you can use the following command to modify the content of grub. cfg.
Sudo gedit/boot/grub. cfg
The content is different from the previous menu. lst format, but the writing format is relatively standard and easy to understand. You can modify the code to modify the menu.