After I've installed Ubuntu 22.10, Windows 10 doesn't boot from GRUB (the computer just reboots). My computer has a BIOS motherboard that doesn't support UEFI.
The Ubuntu installer couldn't automatically partition my drive because it already had 4 partitions (MBR limit).
I've prepared my drive for partitioning the following way:
- Shrinked sda2
- Moved sda3 and sda4 just after sda2
- Converted the MBR to GPT using
gdisk -f - Ran the Ubuntu installation, chosing "Install alongside Windows 10"
Current drive partitions (fdisk -l):
Disk /dev/sda: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 283EE3B5-B530-4F2E-9FB2-149FB9A724D7
Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M Microsoft basic data
/dev/sda2 206848 1644306431 1644099584 784G Microsoft basic data
/dev/sda3 1644306432 1645398015 1091584 533M Windows recovery environment
/dev/sda4 1645398016 1646319615 921600 450M Windows recovery environment
/dev/sda5 1646319616 1646321663 2048 1M BIOS boot
/dev/sda6 1646321664 1647372287 1050624 513M EFI System
/dev/sda7 1647372288 1953523711 306151424 146G Linux filesystem
Disk /dev/sdb: 10,91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: ST12000VN0008-2Y
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C984BE76-DC83-4A2C-99DF-6F27D46768B1
Device Start End Sectors Size Type
/dev/sdb1 34 32767 32734 16M Microsoft reserved
/dev/sdb2 32768 23437766655 23437733888 10,9T Microsoft basic data
Things I've tried to fix the problem:
- Added
ntldr /bootmgrat the end of the Windows menu entry in grub.cfg - Used boot-repair as described here
- Ran update-grub.
None of those worked.
Things I don't want to do: reinstall Windows 10.
Please help.
gdiskprovides a comment to convert back from GPT to MBR but best to delete all Ubuntu partitions first (sda5, sda6, sda7) to make conversion easier. seeman gdisk. No guarantee that you can boot Windows after conversion, maybe still needs repair. We are not the Windows experts here, sorry. – mook765 Dec 16 '22 at 20:10