Dual boot fails on Lenovo ThinkCentre with Windows 10
https://askubuntu.com/questions/1568631/dual-boot-fails-on-lenovo-thinkcentre-with-windows-10
Initially I succeeded in installing Ubuntu 24.04 in parallel to Windows 10, but even after repairing the boot partition with Boot-Repair (https://paste.debian.net/hidden/bc192e4d) I don't get the system working, because it fails to find the boot partition.
============================= Boot Repair Summary ==============================
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.14.0-27-generic
cat: /mnt/boot-sav/sda4/etc/apt/sources.list: No such file or directory
cat: /mnt/boot-sav/sda4/etc/apt/sources.list: No such file or directory
cat: /mnt/boot-sav/sda4/etc/apt/sources.list: No such file or directory
cat: /mnt/boot-sav/sda4/etc/apt/sources.list: No such file or directory
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will purge (in order to remove grub-efi) and reinstall the grub2 of
sda4 into the MBR of sda.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s win-legacy-basic-fix
/boot/efi removed in sda4/fstab
Quantity of real Windows: 1
WinSE in sda2
Copied Win boot files from sda1 to sda2
chroot /mnt/boot-sav/sda4 apt-get -y update
Purge the GRUB of /dev/sda4
grub-pc available
Paketlisten werden gelesen…
Abhängigkeitsbaum wird aufgebaut…SET@_progressbar1.pulse()
Statusinformationen werden eingelesen…
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 441 nicht aktualisiert.
Es müssen 137 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 grub-pc amd64 2.12-1ubuntu7.3 [137 kB]
Herunterladen abgeschlossen; Nur-Herunterladen-Modus aktiv
DEBCHECK debOK, grub-pc
DEBCHECK debOK
Please type: sudo chroot "/mnt/boot-sav/sda4" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda4" apt-get install -fynsudo chroot "/mnt/boot-sav/sda4" apt-get purge --allow-remove-essential -y grub-com*nsudo chroot "/mnt/boot-sav/sda4" apt-get purge --allow-remove-essential -y grub2-com*nsudo chroot "/mnt/boot-sav/sda4" apt-get purge --allow-remove-essential -y shim-signednsudo chroot "/mnt/boot-sav/sda4" apt-get purge --allow-remove-essential -y grub-common:*nsudo chroot "/mnt/boot-sav/sda4" apt-get purge --allow-remove-essential -y grub2-common:*n
Then type: sudo chroot "/mnt/boot-sav/sda4" apt-get install -y grub-pc
Unhide GRUB boot menu in sda4/etc/default/grub
====================== Reinstall the grub-pc of /dev/sda4 ======================
chroot /mnt/boot-sav/sda4 grub-install --version
grub-install (GRUB) 2.12-1ubuntu7.3
==> Reinstall the GRUB of /dev/sda4 into the MBR of /dev/sda
chroot /mnt/boot-sav/sda4 grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
chroot /mnt/boot-sav/sda4 update-grub
Sourcing file `/etc/default/grub'
Found linux image: /boot/vmlinuz-6.14.0-27-generic
Found initrd image: /boot/initrd.img-6.14.0-27-generic
Adding boot menu entry for UEFI Firmware Settings ...
Unhide GRUB boot menu in sda4/boot/grub/grub.cfg
Bootsektor wurde erfolgreich repariert.
Sie können Ihren Rechner nun neu starten.
Bitte stellen Sie sicher, dass Ihr BIOS von sda (ATA SAMSUNG MZ7LH480) startet!
Die Startdateien für [sda4 (end>100GB)] liegen weit hinten auf der Festplatte. Ihr BIOS könnte sie nicht erkennen. Bitte legen Sie eine Partition vom Typ /boot an und versuchen es ggf. erneut. (EXT4, >200MB, Anfang des Datenträgers). Das könnte mit Werkzeugen wie gParted geschehen. Danach wählen Sie diese Partition über Option [Separate /boot-Partition:] von [Startreparatur]. (https://help.ubuntu.com/community/BootPartition)Bitte setzen Sie Ihr BIOS in den Legacy-Modus, um Ihr Ubuntu 24.04.3 LTS zu starten, und geben Sie dann den Befehl [sudo update-grub] ein, um den Eintrag Windows in Ihr GRUB-Menü aufzunehmen.
============================ Boot Info After Repair ============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos4)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
=> Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (hd0,msdos1)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
biosdisk fshelp fat exfat ext2 ntfs ntfscomp part_msdos
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 24.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: MSWIN4.1: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /efi/boot/bootx64.efi
/efi/boot/grubx64.efi /efi/boot/mmx64.efi
sdb2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
================================ 2 OS detected =================================
OS#1 (linux): Ubuntu 24.04.3 LTS on sda4
OS#2 (windows): Windows 8 or 10 on sda2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.3 LTS, noble, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: FBKTE0AUS(1.224) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot enabled according to mokutil - Bitte melden Sie diese Nachricht an boot.repair@gmail.com.
BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 000A,0008,0009,0004,0003,0000
Boot0000* Ubuntu VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0003* Generic Usb Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* CD/DVD Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0008 UEFI: IP6 Intel(R) Ethernet Connection I217-LM PciRoot(0x0)/Pci(0x19,0x0)/MAC(d8cb8ababd3c,0)/IPv6([::]:<->[::]:,0,0)0000424f
Boot0009 UEFI: IP4 Intel(R) Ethernet Connection I217-LM PciRoot(0x0)/Pci(0x19,0x0)/MAC(d8cb8ababd3c,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot000A* UEFI: (FAT)SanDisk PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(1,0)/HD(1,MBR,0xfbc93123,0x80,0x3b9fee0)0000424f
94c7467f956700d44c5b4dcd3967535c sda1/BOOT/bootx64.efi
39bc76ff6662f4fbe9aa116e4c997b41 sda1/BOOT/fbx64.efi
4ba5a5aad43c197e9fb58b76b404d287 sda1/BOOT/mmx64.efi
94c7467f956700d44c5b4dcd3967535c sda1/ubuntu/grubx64.efi
4ba5a5aad43c197e9fb58b76b404d287 sda1/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e sda1/ubuntu/shimx64.efi
07e25dcaf57c776875f78fa36827c58e sda1/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sdb : notGPT, no-BIOSboot, has-noESP, usb-disk, not-mmc, no-os, no-wind, 128 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda3 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda4 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
sdb2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot, ntfs
sda2 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot, ntfs
sda3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ntfs
sda4 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ext4
sdb2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot,
Partitions info (3/3): _________________________________________________________
sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda4 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sdb2 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk identifier: 0xac5a2c2c
Boot Start End Sectors Size Id Type
sda1 * 2048 104447 102400 50M 7 HPFS/NTFS/exFAT
sda2 104448 468375058 468270611 223.3G 7 HPFS/NTFS/exFAT
sda3 936646656 937697279 1050624 513M 27 Hidden NTFS WinRE
sda4 468375060 936645668 468270609 223.3G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 29.81 GiB, 32010928128 bytes, 62521344 sectors
Disk identifier: 0xfbc93123
Boot Start End Sectors Size Id Type
sdb1 * 128 62521183 62521056 29.8G c W95 FAT32 (LBA)
sdb2 62521263 62521325 63 31.5K ea Linux extended boot
parted -lm (filtered): _________________________________________________________
sda:480GB:scsi:512:4096:msdos:ATA SAMSUNG MZ7LH480:;
1:1049kB:53.5MB:52.4MB:ntfs::boot;
2:53.5MB:240GB:240GB:ntfs::;
4:240GB:480GB:240GB:ext4::;
3:480GB:480GB:538MB:ntfs::msftres;
sdb:32.0GB:scsi:512:512:msdos:SanDisk Cruzer Fit:;
1:65.5kB:32.0GB:32.0GB:fat32::boot, lba;
2:32.0GB:32.0GB:32.3kB:::bls_boot;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ntfs 4888F79388F77DAE ac5a2c2c-01 System-reserviert
├─sda2 ntfs E048F94948F91ECA ac5a2c2c-02
├─sda3 ntfs 742498FD2498C410 ac5a2c2c-03
└─sda4 ext4 a0ca6ff1-b6d7-4a85-98b2-d1a9df00a032 ac5a2c2c-04 kubuntu_2404
sdb
├─sdb1 vfat FABD-3A4E fbc93123-01 THOMAS_LAUK
└─sdb2 fbc93123-02
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda1 14.3M 71% /mnt/boot-sav/sda1
/dev/sda2 87.8G 61% /mnt/boot-sav/sda2
/dev/sda3 88.3M 83% /mnt/boot-sav/sda3
/dev/sda4 199.8G 4% /mnt/boot-sav/sda4
/dev/sdb1 10.8G 64% /cdrom
efivarfs 77.4K 36% /sys/firmware/efi/efivars
Mount options (filtered): ______________________________________________________
/dev/sda1 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda3 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda4 ext4 rw,relatime
/dev/sdb1 vfat ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
====================== sda4/boot/grub/grub.cfg (filtered) ======================
Ubuntu a0ca6ff1-b6d7-4a85-98b2-d1a9df00a032
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda4/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=a0ca6ff1-b6d7-4a85-98b2-d1a9df00a032 / ext4 discard 0 1
/swapfile swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
======================= sda4/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
==================== sda4: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
377,468076706 = 405,303261184 boot/grub/i386-pc/core.img 1
340,948003769 = 366,090131456 boot/vmlinuz 2
340,948003769 = 366,090131456 boot/vmlinuz-6.14.0-27-generic 2
340,948003769 = 366,090131456 boot/vmlinuz.old 2
341,104253769 = 366,257903616 boot/initrd.img 3
341,104253769 = 366,257903616 boot/initrd.img-6.14.0-27-generic 3
341,104253769 = 366,257903616 boot/initrd.img.old 3
===================== sda4: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18133 Mär 17 2025 10_linux
-rwxr-xr-x 1 root root 43202 Mär 17 2025 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Mär 17 2025 20_linux_xen
-rwxr-xr-x 1 root root 786 Mär 17 2025 25_bli
-rwxr-xr-x 1 root root 13120 Mär 17 2025 30_os-prober
-rwxr-xr-x 1 root root 1174 Mär 17 2025 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mär 17 2025 40_custom
-rwxr-xr-x 1 root root 215 Mär 17 2025 41_custom
====================== sdb1/boot/grub/grub.cfg (filtered) ======================
Try or Install Kubuntu
Kubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings
Test memory
==================== sdb1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
paste.ubuntu.com ko ()
I hesitate to follow the advice to increase sda1 on linux because it would end up in resizing sda2 (Windows 7/8/10 partitions should only be modified by windows tools!?) ...
The final advice of boot-repair '... Finally select sda1 as [Separate /boot-Partition:] in register [Startreparatur] ...) could not be followed, because on my live-ubuntu sda1 wasn't detected, thus it couldn't be selected. ...
What would be the best solution?
Would it be possible to follow the aforementioned advice while running Boot-Repair from a live image or isn't sda1 big enough? Is there a console command to point from sda1 to sda4?