Dual-boot Windows and Ubuntu laptop stuck on Lenovo screen (no grub)

wimkeir

I have a Lenovo Y520 laptop running Windows 10 and Ubuntu 20.04 with a dual-boot setup. A while ago, Windows decided it no longer wants to boot, and the machine would hum for a while and then promptly shut down when I selected Windows from the grub menu. I barely use Windows and spend 99% of my time in Ubuntu anyway, so I ignored the issue (since Ubuntu still worked). Until yesterday, when I decided I would try to fix this problem...

I came across an answer online that said to edit the /boot/grub/grub.cfg file, namely to find the line chainloader +1 in the Windows menu option and add the line ntldr /bootmgr below it. I restarted the laptop and selected Windows from the grub menu, and got a black background with the message "Command ntldr is missing" and prompting me to press Enter to continue. Which I did, and that took me to the grub rescue console. At this point I (stupidly) got worried and powered the laptop off by holding in the power button, thinking I'd boot back into Ubuntu and remove the offending line from the grub config, and continue debugging.

Only now nothing boots - not even grub. The laptop simply hangs on the Lenovo logo indefinitely. I've tried pressing all the F-keys, holding power in for 10 seconds, pressing power and F9 simultaneously, and nothing helps. I can only shut down by holding the power in again.

Is there a way to remedy this situation without having to format the laptop? Most of my important data is backed up, but there's still a lot on there that I'd rather not lose. Any suggestions are welcome. Obviously I'd like to save the whole setup but if it's a choice between losing Ubuntu or losing Windows, I'd prefer to keep my Ubuntu partitions safe.

DrMoishe Pippik

If that doesn't work,

  • Make an image of the drive using the Live USB and dd, or a third-party rescue/imaging USB, such as Macrium Reflect.
  • Reinstall Ubuntu from the Live USB, keeping Windows dual-boot.
  • From the image, restore the ext4 partition. (hopefully, Windows will not need to be restored as well, but it can be, if necessary.)

Finally, on some machines you might need to edit the boot .efi files. DiskGenius has a useful guide to editing these boot options. On some PC's I've found the only way to have Grub2 show consistently is by copying the Windows .efi file as a backup and renaming shhim64.efi or similar Linux file o that of the Windows option.

N.B. Make a full disk image before editing UEFI boot items, lest a change make the device unbootable.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Ubuntu 및 Windows 10 Dual Boot Grub 문제

분류에서Dev

Dual-Boot Windows 10 and Ubuntu, GRUB 2 not booting

분류에서Dev

setting up dual boot for Lenovo ideapad500 with Windows10 and ubuntu 16.04

분류에서Dev

What should I do to get Ubuntu dual-boot with Windows 10 on this Toshiba laptop?

분류에서Dev

Dual Boot Windows 10 with Ubuntu

분류에서Dev

How to prevent GRUB from appearing after selecting Ubuntu from Windows' Dual Boot menu?

분류에서Dev

Ubuntu 13.04 및 Windows 8 Dual Boot GRUB 옵션 / 문제

분류에서Dev

Dual-boot Ubuntu 12.10 on UEFI along Windows 8 (GRUB - error: can't find command drivemap)

분류에서Dev

Ubuntu 13.04 및 Windows 8 Dual Boot GRUB 옵션 / 문제

분류에서Dev

Preinstalled Windows 8 and Linux UEFI dual boot on a laptop

분류에서Dev

Dual boot Ubuntu 12.04 and Windows 7 PROBLEM

분류에서Dev

Ubuntu 15.10 then windows 7 dual boot issue

분류에서Dev

Ubuntu 14.04 dual boot with windows 10

분류에서Dev

How to dual-boot Windows and Ubuntu?

분류에서Dev

Can Not Boot to Ubuntu - Windows 8/Ubuntu 13.04 Dual Boot

분류에서Dev

GRUB IS GONE-WINDOWS 10 / UBUNTU DUAL OS

분류에서Dev

Dell laptop boot up failure after trying to install linux and windows to dual boot

분류에서Dev

Ubuntu dual boot with Windows 10. Issue with windows disk access

분류에서Dev

Ubuntu and Windows boot trouble with work laptop...HELP

분류에서Dev

Dual boot Ubuntu and Windows 8 - no operating system found

분류에서Dev

How to install BURG on Ubuntu 13.04 with Windows 8 dual boot?

분류에서Dev

How to partition hard disk for dual boot for Windows 7 and Ubuntu Linux

분류에서Dev

Multiple problems setting up Windows 10 and Ubuntu 14.04.03 dual boot

분류에서Dev

How can I install Ubuntu and Windows 10 as dual boot?

분류에서Dev

Problems in dual-boot of ubuntu 14.04 and windows 8.1

분류에서Dev

Removing Linux from a dual-boot setup. How to recover Windows bootloader or keep GRUB?

분류에서Dev

How can I prevent Windows from overwriting GRUB when using a dual-boot machine

분류에서Dev

Dual boot - SSD + mSATA - GRUB partition placement

분류에서Dev

How to remove "Ubuntu" from Boot Menu after deleting Ubuntu partition in Windows 10 (Dual Boot)

Related 관련 기사

  1. 1

    Ubuntu 및 Windows 10 Dual Boot Grub 문제

  2. 2

    Dual-Boot Windows 10 and Ubuntu, GRUB 2 not booting

  3. 3

    setting up dual boot for Lenovo ideapad500 with Windows10 and ubuntu 16.04

  4. 4

    What should I do to get Ubuntu dual-boot with Windows 10 on this Toshiba laptop?

  5. 5

    Dual Boot Windows 10 with Ubuntu

  6. 6

    How to prevent GRUB from appearing after selecting Ubuntu from Windows' Dual Boot menu?

  7. 7

    Ubuntu 13.04 및 Windows 8 Dual Boot GRUB 옵션 / 문제

  8. 8

    Dual-boot Ubuntu 12.10 on UEFI along Windows 8 (GRUB - error: can't find command drivemap)

  9. 9

    Ubuntu 13.04 및 Windows 8 Dual Boot GRUB 옵션 / 문제

  10. 10

    Preinstalled Windows 8 and Linux UEFI dual boot on a laptop

  11. 11

    Dual boot Ubuntu 12.04 and Windows 7 PROBLEM

  12. 12

    Ubuntu 15.10 then windows 7 dual boot issue

  13. 13

    Ubuntu 14.04 dual boot with windows 10

  14. 14

    How to dual-boot Windows and Ubuntu?

  15. 15

    Can Not Boot to Ubuntu - Windows 8/Ubuntu 13.04 Dual Boot

  16. 16

    GRUB IS GONE-WINDOWS 10 / UBUNTU DUAL OS

  17. 17

    Dell laptop boot up failure after trying to install linux and windows to dual boot

  18. 18

    Ubuntu dual boot with Windows 10. Issue with windows disk access

  19. 19

    Ubuntu and Windows boot trouble with work laptop...HELP

  20. 20

    Dual boot Ubuntu and Windows 8 - no operating system found

  21. 21

    How to install BURG on Ubuntu 13.04 with Windows 8 dual boot?

  22. 22

    How to partition hard disk for dual boot for Windows 7 and Ubuntu Linux

  23. 23

    Multiple problems setting up Windows 10 and Ubuntu 14.04.03 dual boot

  24. 24

    How can I install Ubuntu and Windows 10 as dual boot?

  25. 25

    Problems in dual-boot of ubuntu 14.04 and windows 8.1

  26. 26

    Removing Linux from a dual-boot setup. How to recover Windows bootloader or keep GRUB?

  27. 27

    How can I prevent Windows from overwriting GRUB when using a dual-boot machine

  28. 28

    Dual boot - SSD + mSATA - GRUB partition placement

  29. 29

    How to remove "Ubuntu" from Boot Menu after deleting Ubuntu partition in Windows 10 (Dual Boot)

뜨겁다태그

보관