I installed Leap 15.4 onto an HP laptop that has Windows 10 preinstalled. I do not have windows media.
During the process the efi partition was formatted and now Windows 10 is not being found as a foreign OS by Grub2. The ask is for help to get it back as an option.
The Windows partitions are still in tact and were not touched.
They are:
UUID=8A465F18465F03FB /windows10
UUID=543259BF3259A730 /windowsRE
Device Start End Sectors Size Type
/dev/sda1 2048 534527 532480 260M Microsoft basic data
/dev/sda2 534528 796671 262144 128M Microsoft reserved
/dev/sda3 796672 1611409407 1610612736 768G Microsoft basic data
/dev/sda4 1951516672 1953523711 2007040 980M Windows recovery environment
/dev/sda5 1790033920 1951516671 161482752 77G Linux LVM
/dev/sda6 1611409408 1790033919 178624512 85.2G Microsoft basic data
Windows 10 came preinstalled. I do not have windows media. I am trying to locate a Windows recovery usb, but so far all of the files found are windows exe, and require windows to make the recovery tool. I just installed wine to see if that will let me run the exe and created a bootable “media creation tool”
I am pretty sure the efi partition was reformatted. But I will try anything. What is the prompt for the os-prober? I have it set in Yast Boot manager, but it’s worth a try.
There are dozens of hits searching for “create Windows installation usb on Linux”. As long as ISO image does not have files over 4GB, simply copying content of ISO image to USB FAT32 partition should be enough for UEFI boot. Or you can use USB DVD and simply burn installation image to DVD.
Well, then os-prober will not help. If you want to you can execute (as “root” in a terminal)
os-prober
and check the output.
If you really lost your MS Windows bootloader just visit the Microsoft website and download MS Windows 10 installation .iso, put it on an USB storage device, boot from that device and use the repair option.
The repair functions in the Win installer did not find the issue, but they did provide a command prompt. Doing some digging in Windows articles I did find the command prompts to repair the boot records. bcdboot D:\Windows /s C:
The current output from lsblk -f and ls -lR /boot/efi are below. Is there any need to reduce the number of MS entries?
Currently the system will boot into Windows, but only if I enter the bios and select Windows from the bios boot options list. Windows running again is good news, however Grub does not list Windows as a boot option.
I have used the Yast boot manager to verify the os probe is selected.
When I run os-prober, there is no output.
Are you intentionally making computer output more difficult to read? There is preformatted text button, there are <code> and [code] tags to make it properly aligned. Pick your choice.
├─sda1 vfat FAT16 SYSTEM E8FA-DA69 229.1M 12% /boot/efi
/dev/sda1 2048 534527 532480 260M Microsoft basic data
os-prober checks that ESP has proper partition type. Your ESP does not; it should have type “EFI System Partition” (GUID c12a7328-f81f-11d2-ba4b-00a0c93ec93b). Run
gdisk /dev/sda
and use t command to change the first partition type to EF00. It should look like this in fdisk output
Disklabel type: gpt
...
Device Start End Sectors Size Type
/dev/sda1 2048 1026047 1024000 500M EFI System
or in gdisk
Number Start (sector) End (sector) Size Code Name
1 2048 1026047 500.0 MiB EF00 EFI system partition
Sorry and no I am not. The new forum doesn’t show the code option and I was not familiar with the preformatted text button. I will put the code tags in.
I prepared a concise comment on multiboot install: Install Leap / Tumbleweed from USB Stick On Internal Disk Following this procedure never damaged any EFI System Partition and always worked since several years. Taking a short cut is risky and may result in faulty installations.
gdisk /dev/sda
p
t
Partition number (1-3): 1
Current type is 700 (Microsoft basic data)
Hex code or GUID (L to show codes, Enter = 700):ef00
p
w
Part of that is computer output. You use the command “gdisk” (as the root user).
The the “p” subcommand asks for a printout of current partitions.
The “t” subcommand is to set the partition type. It will tell you the current type and prompt. You enter the “ef00” as the new partition type.
Then use “p” again to check the results. If they are correct, use the “w” subcommand to write the changes to disk (and quit from the command).
below is the output from running the changes above.
Command (? for help): t
Partition number (1-6): 1
Current type is 700 (Microsoft basic data)
Hex code or GUID (L to show codes, Enter = 700): ef00
Changed type of partition to 'EFI system partition'
Command (? for help): p
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Model: ST1000LM035-1RK1
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 187623D5-C0E3-434C-A0A4-3E91D4ACA96B
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 3437 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 534527 260.0 MiB EF00 EFI system partition
2 534528 796671 128.0 MiB 0C01 Microsoft reserved ...
3 796672 1611409407 768.0 GiB 0700 Basic data partition
4 1951516672 1953523711 980.0 MiB 2700 Basic data partition
5 1790033920 1951516671 77.0 GiB 8E00
6 1611409408 1790033919 85.2 GiB 0700 Linux Data
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
hoping to come back successfully after the reboot.