0

I am running Lubuntu 23.04 on /dev/sda3, and it's working well. However, my Windows partition (/dev/sda2) is corrupted. As I don't have access to USB or DVD, I extracted a Windows 10 32-bit ISO to an NTFS partition (/dev/sda4) using gnome-disk-utility. Now, I want to boot from this partition to install Windows on /dev/sda2. My system uses Grub2. Can someone guide me on how to achieve this?

Note: I have tried this but it doesn't work (error: invalid signature):

menuentry "Windows 10 Installer" {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos4'
    search --no-floppy --fs-uuid --set=root <UUID>
    chainloader +1
}

1 Answers1

0

In this answer, I'm assuming that:

  1. The drive uses MBR partitioning;
  2. sda4 is NTFS-partitionned.

The following entry should work:

menuentry "Windows 10 Installer" {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos4'
    ntldr /bootmgr
}
nd97
  • 1
  • 1