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?

ADVERTISEMENTS

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.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
3 comments… add one
  • Gagan Brahmi Sep 10, 2007 @ 2:32

    You need to make sure that while installing the Linux on the machine you leave a part of the drive unassigned. Once you are at the installation screen, you will see the unassigned partition where you can install the Linux. During the course of installation Grub will ask you the default OS that is to be booted, you can select the value. Generally, the windows os is not recognized so Grub will read it as “Others” which can be named later on in the /boot/grub/grub.conf file.

  • 🐧 nixCraft Sep 11, 2007 @ 11:29

    Gagan,

    Thanks for contributing valuable notes. I appreciate your feedback.

  • warl0ck Sep 13, 2007 @ 0:07

    I suppose people have misunderstood, if you install
    grub on your *hard disk*, The MBR of the disk
    is replaced by grub and not the Windows MBR, if you
    install grub on a windows partition then it will
    overwrite the windows MBR. Remember

    Bios –> Hard Disk (MBR) –> MBR Finds the active partition (0x80) –> Loads the boot loader at sector
    0 of the active partition and passes control.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.