Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I check on which partition Ubuntu installed my bootloader from within Ubuntu?

share|improve this question
up vote 4 down vote accepted

sudo fdisk -l /dev/sda

Where sda is the disk you want to check the partitions, one of them should be listed as boot partition, if you have more then 1 disk there can be other partitions marked as boot, the next logical disk is sdb followed by sdc, etc.

If you have more then a disk and more than 1 partition is marked as boot the booting will be determined by the selected boot device in your BIOS.

share|improve this answer

It depends on what you mean by installed. Grub places some files in the /boot directory, which usually is on the same partition as /. It also embeds its core image to the Master Boot Record of the drive, and the following several sectors that are not part of any partition, so in that sense, it is not installed to any partition, but rather to the whole disk.

You can check the output of df to see what partitions you have mounted where. If there is no entry for /boot, then it is part of the root filesystem.

share|improve this answer

Check the output of the boot_info_script.

There you will see where the Grub binaries and configuration files were installed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.