AngeloU wrote:Is it sensible,recommended, to change Bios into UEFI or remain with old Legacy (which seems very obsolete) ?
My aim is to install Debian alongside Windows (dual Boot).
It depends on your needs. Dual boot with Windows adds constraints. I'll assume Debian and Windows will be installed on the same drive.
Unlike GNU/Linux, Windows boot mode is tightly bound to the system drive partition scheme :
- UEFI boot requires GPT partition scheme
- BIOS/legacy boot requires DOS/MBR partition scheme
So if you want GPT on the system drive, you must switch to UEFI boot before installing Debian. You can either reinstall Windows in UEFI mode or convert the system drive to GPT with MBR2GPT.EXE.
In BIOS/legacy boot mode, only one boot loader (GRUB or Windows) ca be installed in the boot drive MBR. Usually Debian is installed after Windows so that GRUB takes control of the boot process and manages dual boot. But Windows updates may overwrite GRUB's boot sector.
In UEFI boot mode, each OS has its own main boot loader in a separate subdirectory within an EFI system partition and registers it in the EFI boot variables (stored in the motherboard non volatile memory). They cannot overwrite each other, but they can mess with EFI boot variables, either changing the boot order or deleting EFI boot entries. An OS may also install a fallback boot loader in a special location of the EFI system partition (called "removable device path"), which does not need a registered boot entry and can be used when all boot entries failed. That may be useful with broken UEFI firmwares which do not handle EFI boot entries properly. Windows does so, and Debian can do it optionally when doing an expert install. But there is only one such location in an EFI system partition and it may be overwritten during an OS update, like the MBR for BIOS boot. A workaround to this is to create a separate EFI system partition for each OS.
Note that you can install Debian and Windows in different boot modes. You will lose the dual-boot capability in GRUB and have to select the OS by selecting the boot mode in the BIOS/UEFI boot menu, but on the other hand it should avoid interference between boot loaders.
Head_on_a_Stick wrote:The 2TiB limitation applies to MS-DOS partition tables
With 512-byte logical sectors. With 4096-byte logical sectors (4Kn native Advanced Format), the limit is raised to 16 TiB.
Head_on_a_Stick wrote:Some non-UEFI systems can boot from a GUID partition table (I have a ThinkPad X201 that can)
I have yet to find a non-UEFI machine which cannot boot from GPT. The only required trick with some broken BIOS firmwares was to set the boot flag in the protective MBR.
Head_on_a_Stick wrote:Windows will install a non-UEFI system if the disk has an MS-DOS partition table
In my experience (limited to Windows 7), it was the other way around : the Windows installer required a DOS partition table if it was booted in legacy mode, and a GPT partition table if it was booted in UEFI mode. Did that change in later versions ?
Head_on_a_Stick wrote:https://docs.microsoft.com/en-us/windows-server/storage/disk-management/change-an-mbr-disk-into-a-gpt-disk
I'll just quote the first sentences :
Master Boot Record (MBR) disks use the standard BIOS partition table. GUID Partition Table (GPT) disks use Unified Extensible Firmware Interface (UEFI). One advantage of GPT disks is that you can have more than four partitions on each disk.
Wow. Three sentences, three mistakes. Is this really official Microsoft documentation ?