After deleting my first partition from Debian with sgdisk, I get a BSOD when booting Windows 10:
Votre appareil a rencontré un problème et doit être redémarré. Nous allons redémarrer l'ordinateur pour vous. Code d'arrêt : IO1_INITIALIZATION_FAILED
which in English gives:
Your PC ran into a problem and needs to restart. We'll restart for you. Stop code: IO1_INITIALIZATION_FAILED
I had two WINRE partitions after the Windows 10 migration. The first WINRE partition was the Windows 8.1 one and the fifth partition is the Windows 10 one. System ESP partition was the second partition, Windows 10 system the fourth partition, and Microsoft Reserved partition the third partition. I have a Debian system on the sixth partition.
sudo sgdisk -p /dev/sda
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Model: CT1000MX500SSD1
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 3A174052-4E14-4820-A5DB-6BFF35BC13E2
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 20252532 sectors (9.7 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 2050047 1000.0 MiB 2700
2 2050048 2582527 260.0 MiB EF00 EFI system partition
3 2582528 2844671 128.0 MiB 0C01 Microsoft reserved ...
4 2844672 136246776 63.6 GiB 0700 Basic data partition
5 136247296 137547775 635.0 MiB 2700
6 137549824 473094143 160.0 GiB 8300 /
7 473094144 1899075583 680.0 GiB 8300
8 1919322112 1953523711 16.3 GiB 8200
after deleting the first partition with sgdisk, I get:
sudo sgdisk -p /dev/sda
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Model: CT1000MX500SSD1
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 3A174052-4E14-4820-A5DB-6BFF35BC13E2
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 22300532 sectors (10.6 GiB)
Number Start (sector) End (sector) Size Code Name
2 2050048 2582527 260.0 MiB EF00 EFI system partition
3 2582528 2844671 128.0 MiB 0C01 Microsoft reserved ...
4 2844672 136246776 63.6 GiB 0700 Basic data partition
5 136247296 137547775 635.0 MiB 2700
6 137549824 473094143 160.0 GiB 8300 /
7 473094144 1899075583 680.0 GiB 8300
8 1919322112 1953523711 16.3 GiB 8200
The aim was to switch to systemd-boot which requires a bigger than 260MiB partition to hold my two kernels and their initrd in the system EFI partition with Debian initramfs-tools config /etc/initramfs-tools/initramfs.conf MODULES=most
(it is fine with MODULES=dep
though).
Thus I planned to delete this first partition and expand my system partition (the second) with this new space.