Score:13

Should I use MBR or GPT when I intend to use both Ubuntu and Windows?

us flag

I installed a new Samsung 870 EVO SATA SSD in my desktop. I want to install Ubuntu 18.04 on this SSD, so I can have Windows on my main SSD, and then Ubuntu on this SSD (effectively a dual boot machine). When I plugged it in, it asked me to initialize it as GPT or as MBR. Which one is better for Ubuntu? screenshot of Disk Management

oldfred avatar
cn flag
I have used gpt since this: GPT Advantages (older 2010 but still valid) see post#2 by srs5694: http://ubuntuforums.org/showthread.php?t=1457901 & https://wiki.archlinux.org/index.php/GUID_Partition_Table#Advantages_of_GPT With gparted select gpt under device, advanced over msdos(MBR) default partitioning before starting. http://askubuntu.com/questions/743095/how-to-prepare-a-disk-on-an-efi-based-pc-for-ubuntu & https://askubuntu.com/questions/343268/how-to-use-manual-partitioning-during-installation
eckes avatar
cn flag
If the first disk is MBR you will have to install your bootloader into it. If both a GPT the Bios should be able to show entries of both to select an OS. So unless your BIoS has some issues, I would go with GPT any day. You also need it for Windows 11.
Score:24
ru flag

Either MBR or GPT would work.

MBR is limited to 4 partitions... but due to a bug in Microsoft's Windows updaters, major Windows updates tend to wipe out MBR Linux partitions and GRUB (on single-drive installations). MBR tends to be used on older BIOS computers.

GPT doesn't have the partition limitation of MBR, and it looks like your Windows disk is probably set up as GPT, and it's good to have them setup the same way. GPT tends to be used on newer UEFI computers. Disks that are 2TB or larger must use GPT.

So I'd vote GPT.

Don't use the Windows Disk Management application to format/init the SSD disk that's going to be used for Ubuntu. Only use Disk Management for work in Windows, and with NTFS partitions. Use gparted to work with Ubuntu and ext4 partitions. Boot to a Ubuntu Live DVD/USB, then use gparted to lay down a fresh GPT partition table (this will wipe the drive), and then use the Ubuntu Installer.

Before using the Samsung SSD, I'd check that the firmware is current. Use the Samsung Magician software that can be found at https://www.samsung.com/semiconductor/minisite/ssd/download/tools/. This tool runs under Windows.

ru flag
Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/129818/discussion-on-answer-by-heynnema-should-i-use-mbr-or-gpt-when-i-intent-to-use-bo).
WinEunuuchs2Unix avatar
in flag
It's a shame magician only has a Windows version. BTW this Q&A made the Ubuntu Weekly Newsletter: https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Issue701
Score:8
cn flag

Microsoft recommends using UEFI for Windows which requires GPT. It is also a more modern system. https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq

Ubuntu's bootloader GRUB will only load Windows if Ubuntu and Windows are both either BIOS or both UEFI.

It is best therefor to initialize both Windows and Ubuntu as GPT.

Unplug the Windows SSD when installing Ubuntu. When done plug it back in, boot Ubuntu and run sudo update-grub to put Windows on the GRUB boot menu.

lk flag
Bob
Also, if you start with a BIOS/MBR Windows system, you can [first convert it to UEFI/GPT](https://docs.microsoft.com/en-us/windows/deployment/mbr-to-gpt) before proceeding. There is no supported conversion in the other direction.
Score:3
tr flag

Both Windows and Ubuntu support both MBR and GPT alike with no issues.

What can be different:

  1. The size limitation - MBR is limited to 2TB disks, GPT limits are much higher and irrelevant for modern disks.

  2. Booting - older motherboards may have issues booting off a GPT disk, modern ones sometimes get picky with MBR. Other elements of booting (e.g. efi vs csm) can interfere with the boot process, too.

  3. Third party tools. Tools for partitioning, backup, recovery, etc... may support GPT less. I am yet to see one dropping the support for MBR and the world already generally understands GPT, but your mileage may vary.

Score:2
in flag

It's debatable which is better in different environments. But setting the second SSD to the same technology as the first will lead to less potential confusion in the future. So if your first SSD is formatted as GPT set the second one the same.

Ubuntu supports both MBR and GPT without any problems (that I know of)

Score:2
us flag

If your main SSD is in GPT, then I would advise on making the 2nd SSD GTP too. And vise versa. P.S. instead of dual boot, why not try virtual machine. It's more convenient.

FedKad avatar
cn flag
I am upvoting this answer for drawing attention to using virtual machines instead of dual booting. Virtual machines are much more flexible and use less resources. There may be some some exceptions though.
Score:1
id flag

I don't think it matters in your case; both MBR and GPT are supported by both Windows and Ubuntu, and the 2TB limitation for disk size on MBR isn't relevant to the disk size you have (and I presume you're not planning on having more than 4 primary partitions which MBR is limited to). I'd personally probably go with GPT as it's more modern, but there's not much advantage in your particular case so you may prefer the very well established MBR.

Score:0
cn flag

As the other answers already explained, you can conceivably use either GPT or MBR and it will work just fine. However, there's one major advantage of GPT, and that's reliability/resilience.

The MBR partition table is stored in a single disk sector right at the beginning of the device. Should anything bad happen to that sector (say, disk block going unreadable, or you accidentally wipe it with a single typo in a dd command), all partitions on the disk will be gone and you'll have to recreate the partition layout by hand.

In contrast to that, GPT keeps a second copy of all of its data at the end of the disk. If the primary GPT at the beginning becomes unusable for any reason, it will get automatically repaired using the backup copy and you won't likely even notice.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.