How to check what bootloader my System is using?
Such as Lilo or Grub or Grub2. How can I check it?
How to check what bootloader my System is using?
Such as Lilo or Grub or Grub2. How can I check it?
Assuming your boot disk is /dev/sda
(it usually is), you can look at your boot sector to see what your computer starts with:
sudo file -s /dev/sda
This shows some information about what's at the beginning of /dev/sda
(your hard disk — often the boot disk if you have several). For example, mine begins with
/dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, …
showing that I have Grub 2 (which is the default bootloader on Ubuntu these days).
Another place to look is what scripts run when you install the kernel. One or more of these scripts should register the newly installed kernel with the bootloader. These scripts live in /etc/kernel/postinst.d
.
Usually, the two methods will give the same result. They won't if you have multiple operating systems and Ubuntu's bootloader is not the one that loads first, but rather is invoked by some other operating system's bootloader.
Download bootscript and install http://bootinfoscript.sourceforge.net/
This boot_info_script is a bash script which searches all hard drives attached to the computer for information related to booting. Its primary use is for troubleshooting booting problems. For instructions see http://bootinfoscript.sourceforge.net