Здравствуйте. На ноутбуке Lenovo IdeaPad-S340-15API была установлена система Windows 10 (BIOS Legacy) с дисками С:/ и D:/. При установке Ubuntu было предложено установить систему рядом с FreeDOS, но не Windows 10. Поделил разделы из свободного пространства (сжимал том D), установил Ubuntu. В загрузчике Grub не появляется Windows 10, пробовал многие способы (sudo os-prober, update-grub, boot-repair). Также были попытки восстановить загрузчик с загрузочной флешки Windows 10, но безрезультатно. Предоставляю отчёт Boot Repair.
boot-repair-4ppa125 [20200906_1100]
============================= Boot Repair Summary ==============================
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub2 of
nvme0n1p5 into the MBR of nvme0n1.
Grub-efi will not be selected by default because: legacy-win no-win-efi
Additional repair will be performed: unhide-bootmenu-10s win-legacy-basic-fix
Quantity of real Windows: 1
======================= Reinstall the grub2 of nvme0n1p5 =======================
grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.3
==> Reinstall the GRUB of nvme0n1p5 into the MBR of nvme0n1
grub-install /dev/nvme0n1
Installing for i386-pc platform.
Installation finished. No error reported.
update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-45-generic
Found initrd image: /boot/initrd.img-5.4.0-45-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found FreeDOS on /dev/nvme0n1p1
Unhide GRUB boot menu in nvme0n1p5/boot/grub/grub.cfg
Загрузка успешно восстановлена.
Вы можете перезагрузить компьютер.
============================ Boot Info After Repair ============================
=> Grub2 (v2.00) is installed in the MBR of /dev/nvme0n1 and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks for (,msdos5)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
nvme0n1p1: _____________________________________________________________________
File system: vfat
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v2.00) is installed in the boot sector of
nvme0n1p1 and looks at sector 756764944 of the same
hard drive for core.img. core.img is at this location
and looks for (,msdos5)/boot/grub. It also embeds
following components:
modules
-------------------------------------------------------
fshelp ext2 part_msdos biosdisk
-------------------------------------------------------
-------------------------. No errors found in the Boot
Parameter Block.
Operating System:
Boot files: /bootmgr /boot/bcd /KERNEL.SYS /COMMAND.COM
nvme0n1p2: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /Windows/System32/winload.exe
nvme0n1p3: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p4: _____________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
nvme0n1p5: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
nvme0n1p6: _____________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
nvme0n1p7: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 3 OS detected =================================
OS#1: ОС уже используется - Ubuntu 20.04.1 LTS CurrentSession on nvme0n1p5
OS#2: FreeDOS (boot) on nvme0n1p1
OS#3: Windows 8 or 10 on nvme0n1p2
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-45-generic root=UUID=db9f4f79-7508-4249-8217-bc2d70ca50ea ro quiet splash
===================================== UEFI =====================================
This installed-session is not in EFI-mode.
EFI in dmesg.
[ 0.018120] ACPI: UEFI 0x00000000AF77D000 000236 (v01 LENOVO CB-01 00000001 ACPI 00040000)
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : notGPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p5 : is-os, 64, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, farbios
nvme0n1p1 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p2 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
nvme0n1p3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
nvme0n1p7 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
nvme0n1p5 : isnotESP, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot
nvme0n1p2 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p7 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p5 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
nvme0n1p1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
nvme0n1p2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
nvme0n1p3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
nvme0n1p7 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
fdisk -l (filtered): ___________________________________________________________
Disk nvme0n1: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 0xd9fa2484
Boot Start End Sectors Size Id Type
nvme0n1p1 * 2048 2050047 2048000 1000M b W95 FAT32
nvme0n1p2 2050048 256002047 253952000 121.1G 7 HPFS/NTFS/exFAT
nvme0n1p3 256002048 739604479 483602432 230.6G 7 HPFS/NTFS/exFAT
nvme0n1p4 739606526 1000214527 260608002 124.3G 5 Extended
nvme0n1p5 739606528 801045981 61439454 29.3G 83 Linux
nvme0n1p6 801048576 826214399 25165824 12G 82 Linux swap / Solaris
nvme0n1p7 826216448 1000214527 173998080 83G 83 Linux
parted -lm (filtered): _________________________________________________________
nvme0n1:512GB:nvme:512:512:msdos:WDC PC SN520 SDAPMUW-512G-1101:;
1:1049kB:1050MB:1049MB:fat32::boot;
2:1050MB:131GB:130GB:ntfs::;
3:131GB:379GB:248GB:ntfs::;
4:379GB:512GB:133GB:::;
5:379GB:410GB:31.5GB:ext4::;
6:410GB:423GB:12.9GB:linux-swap(v1)::;
7:423GB:512GB:89.1GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
nvme0n1
├─nvme0n1p1 vfat EE5C-6E50 d9fa2484-01
├─nvme0n1p2 ntfs F6F8909CF8905D25 d9fa2484-02
├─nvme0n1p3 ntfs 92308A47308A31F1 d9fa2484-03
├─nvme0n1p4 d9fa2484-04
├─nvme0n1p5 ext4 db9f4f79-7508-4249-8217-bc2d70ca50ea d9fa2484-05 root
├─nvme0n1p6 swap d18328ba-0a70-46e8-9ab9-846f86e26520 d9fa2484-06
└─nvme0n1p7 ext4 78c367aa-d539-4225-88c2-fd6d63830516 d9fa2484-07 home
df (filtered): _________________________________________________________________
Avail Use% Mounted on
nvme0n1p1 976.3M 2% /mnt/boot-sav/nvme0n1p1
nvme0n1p2 55.7G 54% /mnt/boot-sav/nvme0n1p2
nvme0n1p3 175.9G 24% /mnt/boot-sav/nvme0n1p3
nvme0n1p5 20.7G 23% /
nvme0n1p7 76.2G 1% /home
Mount options: __________________________________________________________________
nvme0n1p1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
nvme0n1p2 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
nvme0n1p3 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
nvme0n1p5 rw,relatime,errors=remount-ro
nvme0n1p7 rw,relatime
=================== nvme0n1p5/boot/grub/grub.cfg (filtered) ====================
Ubuntu db9f4f79-7508-4249-8217-bc2d70ca50ea
Ubuntu, with Linux 5.4.0-45-generic db9f4f79-7508-4249-8217-bc2d70ca50ea
Ubuntu, with Linux 5.4.0-42-generic db9f4f79-7508-4249-8217-bc2d70ca50ea
FreeDOS (on nvme0n1p1) EE5C-6E50
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
======================== nvme0n1p5/etc/fstab (filtered) ========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=db9f4f79-7508-4249-8217-bc2d70ca50ea / ext4 errors=remount-ro 0 1
# /home was on /dev/nvme0n1p7 during installation
UUID=78c367aa-d539-4225-88c2-fd6d63830516 /home ext4 defaults 0 2
# swap was on /dev/nvme0n1p6 during installation
UUID=d18328ba-0a70-46e8-9ab9-846f86e26520 none swap sw 0 0
==================== nvme0n1p5/etc/default/grub (filtered) =====================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
================= nvme0n1p5: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
370,804710388 = 398,148526080 boot/grub/grub.cfg 1
364,936553955 = 391,847641088 boot/grub/i386-pc/core.img 1
364,299930573 = 391,164071936 boot/vmlinuz 1
355,460933685 = 381,673271296 boot/vmlinuz-5.4.0-42-generic 2
364,299930573 = 391,164071936 boot/vmlinuz-5.4.0-45-generic 1
355,460933685 = 381,673271296 boot/vmlinuz.old 2
364,577377319 = 391,461978112 boot/initrd.img 3
364,060993195 = 390,907514880 boot/initrd.img-5.4.0-42-generic 7
364,577377319 = 391,461978112 boot/initrd.img-5.4.0-45-generic 3
364,060993195 = 390,907514880 boot/initrd.img.old 7
=================== nvme0n1p5: ls -l /etc/grub.d/ (filtered) ===================
итого 136
-rwxr-xr-x 1 root root 17622 авг 17 18:04 10_linux
-rwxr-xr-x 1 root root 42359 авг 17 18:04 10_linux_zfs
-rwxr-xr-x 1 root root 12894 июл 31 04:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 июл 31 04:34 30_os-prober
-rwxr-xr-x 1 root root 1424 июл 31 04:34 30_uefi-firmware
-rwxr-xr-x 1 root root 214 сен 5 14:01 40_custom
-rwxr-xr-x 1 root root 271 сен 5 13:59 40_custom.save
-rwxr-xr-x 1 root root 216 июл 31 04:34 41_custom
===================== nvme0n1p5/etc/grub.d/40_custom.save ======================
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
ubuntu изменить место загрузчика