≡ Menu

linux grub

Does Linux grub replace Windows MBR?

Q. I’m willing to try out Ubuntu Linux but my question is Does Linux grub replace Windows MBR? Can I dual boot between Windows and Linux system?

A. Yes when you install GRUB on first partition, windows MBR get replaced. In most cases GRUB automatically adds an entry for Windows XP / Vista so that you can enjoy dual booting out of box after Ubuntu Linux installation.

In case if you made any mistakes while performing Linux installation you can restore GRUB.

I recommend making a backup of all important data / files before making any changes to MBR / file system or operating system or Ubuntu Linux installation.

Error /dev/hdX does not have any corresponding BIOS drive and Solution

Q. After windows XP installation I lost my Grub boot loader and now when I try to run grub-install command to restore Grub in master boot record. But I am getting an error that read as follows:
/dev/sda does not have any corresponding BIOS drive

How do I fix this problem?

A. grub-install is use to install GRUB on your drive. If you are getting error try to recheck device map.

Type the command as follows:
# grub-install --recheck /dev/sdaWhere,

  • --recheck: Probe a device map even if it already exists
  • /dev/sda : Replace /dev/sda with your actual device name.

Above command should fix the problem.

See also