Tuesday, August 3, 2010

CONFIGURING GRUB UNDER KARMIC KOALA

GRUB’s configuration was very consistent though all versions of Ubuntu . . . until Karmic Koala (9.10) showed up. While GRUB essentially works the same way, all of the configuration files moved.

For example, earlier Ubuntu versions use /boot/grub/menu.lst for setting the timeout, default operating system, and associated parameters. With Karmic, the configuration has been split. The file /etc/default/grub contains generic settings, including the timeout (GRUB_TIMEOUT) and default parameters (GRUB_DEFAULT and GRUB_CMDLINE_LINUX_DEFAULT).

Additional configuration scripts have been moved under /etc/grub.d/. For example, the actual Linux boot command is stored in /etc/grub.d/10_linux, and the memory tester is in 20_memtest86+.

The final significant change comes from the list of kernels and operating systems. With earlier versions of GRUB, the kernel list was automatically detected from the /boot/ directory and then added to the final automated section of the menu.lst file. The new version of GRUB still automatically discovers all installed kernels, but the list is now stored in /boot/grub/grub.cfg. This configuration file is completely auto-generated. Do not edit this file. Instead, make any configuration changes to the /etc/default/grub and /etc/grub.d/ files.

When you finish customizing GRUB, be sure to run sudo update-grub to refresh the automatically generated files and update the boot loader.

Source of Information : Wiley Ubuntu Powerful Hacks And Customizations

No comments: