Results 1 to 7 of 7

Thread: GRUB2 broken after Win Update, boot-repair does not work

  1. #1
    Join Date
    Dec 2020
    Beans
    2

    GRUB2 broken after Win Update, boot-repair does not work

    Hi everyone,

    I have a dual boot on my PC, with Win10 and Ubuntu.
    After an Windows update, my PC would not go to my GRUB2 selection menu any more.
    Instead, I receive the message:
    Code:
    error: failure reading sector 0x654c380 from `hd0'.
    error: failure reading sector 0x654c380 from `hd0'.
    error: failure reading sector 0x654c380 from `hd0'.
    and after a few minutes it goes to the GRUB command promt:
    Code:
    GNU GRUB version 2.02~beta2-9ubuntu1.17
    grub >
    To fix this, I created a bootable USB stick with Ubuntu.
    I booted from that stick, choose 'try ubuntu' and installed boot-repair.

    After running boot-repair, it gave me this summary:
    https://paste.ubuntu.com/p/ShX4SZtChx/
    but my boot was not repaired and the problem remained the same.

    I'd appreciate any idea on how to proceede from here, I am very new to this.
    Happy holidays to everyone reading this,
    TJ
    Last edited by tj-average; December 26th, 2020 at 06:37 PM.

  2. #2
    tea for one is offline Chocolate-Covered Ubuntu Beans
    Join Date
    May 2008
    Beans
    1,345
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: GRUB2 broken after Win Update, boot-repair does not work

    Line 52 - 54 Windows is in hibernation mode
    Line 170 - 172 One Operating System Windows 10 on sda4

    It is true that sometimes Windows 10 updates prevent Grub2 from operating correctly but these updates wouldn't completely destroy your Ubuntu partition.
    Was your Ubuntu partition originally sda6?

    It appears that something else happened recently to create this unusual situation, can you let us know what that may be?

    Two key questions:-

    Do you have back ups of your Windows and Ubuntu data?
    Do you have a Windows repair disk (or even a Windows 10 iso)?

    I think that you will probably need Windows tools to repair the Windows bootloader?

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: GRUB2 broken after Win Update, boot-repair does not work

    Since UEFI, you should be able to directly boot Windows from UEFI boot menu and turn fast start up off.
    But better to also have Windows repair/recovery flash drive in addition to good regular backups.

    That Linux partition not seen as ext4 (was it ext4 and not some other format?), may indicate abnormal shutdown, drive corruption or drive failure where sectors with Linux partition are damaged.
    I might first try full fsck or e2fsck from Ubuntu live installer.

    To see all the ext4 partitions, if sda6 not seen as ext4 then this will not work. That has to be fixed first.
    sudo parted -l
    #From liveDVD/Flash so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s)
    #e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p tries fixes where response not required, Run both commands as they have different parameters.
    sudo e2fsck -C0 -p -f -v /dev/sdb1
    # -y auto answers yes for fixes needing response, also see man e2fsck
    sudo e2fsck -f -y -v /dev/sdb1

    You can try testdisk to see it it recovers sda6 if not seen as ext4, and will probably still need above fsck after recovery.
    http://ubuntuforums.org/showthread.php?t=2288988 &
    http://ubuntuforums.org/showthread.php?t=2290190
    http://ubuntuforums.org/showthread.php?t=2292545
    Use parted rescue to restore missing partition details in post #22
    http://ubuntuforums.org/showthread.php?t=1775331
    https://www.gnu.org/software/parted/...ed.html#rescue
    http://gparted.sourceforge.net/faq.php/#faq-22
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Dec 2020
    Beans
    2

    Re: GRUB2 broken after Win Update, boot-repair does not work

    Hi tea-for-one,

    thanks for the reply!
    I think I managed to fix the windows in hybernating by running:
    sudo ntfsfix /dev/sda4

    After this, I run boot-repair again, this is the resulting summary:
    https://paste.ubuntu.com/p/7vmxQcr8rk/
    as you can see, the error of Windows being in hybernating mode has disappeared.

    To give you a context/ a timeline of what happened:
    Usually when I started my PC, it would give me the GRUB2 menu where I could choose weather I want to boot in Ubuntu or Windows.
    After the Windows update, my PC would suddenly boot straight into Windows, not giving me the option to go to Ubuntu any more.
    I was surprised by this, but not too worried (little did I know...)
    Windows was very slow, so I decided to restart the PC, and since then it would give me the error: failure reading sector 0x654c380 from `hd0'

    To answer your questions:
    I don't know what partition Ubuntu was originally on, from what I've seen so far I assume Windows is on
    /dev/sda4 and Ubuntu is on /dev/sda6
    No, I don't have any backup of my data neither from my Windows or my Ubuntu.
    No, I don't have a Windows repair disk or Windows ISO

    Right now, I managed to mount the partition /dev/sda4 which allows my to extract all my valuable data to a hard drive.
    Then I will try to restart again.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: GRUB2 broken after Win Update, boot-repair does not work

    The NTFSfix does very little.
    It primarily turns on the chkdsk flag, so when Windows is rebooted, it will run chkdsk.

    Best to make Windows repair/recovery flash drive & backups while Windows is working.
    Then once Linux is fixed, back that up.

    Windows 10 repair disk
    https://askubuntu.com/questions/1156...925839_1156795
    https://www.tenforums.com/software-a...scue-disk.html
    http://www.tenforums.com/tutorials/4...dows-10-a.html
    http://www.tenforums.com/tutorials/3...dows-10-a.html
    Repair/backup/restore
    https://support.microsoft.com/en-us/...recovery-drive &
    http://windows.microsoft.com/en-us/w...covery-options
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    tea for one is offline Chocolate-Covered Ubuntu Beans
    Join Date
    May 2008
    Beans
    1,345
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: GRUB2 broken after Win Update, boot-repair does not work

    Line 14 - error: cannot read `/dev/sda': Input/output error.
    Line 163 - 1 OS detected (Windows 10 on sda4). No mention of Ubuntu
    Line 341 - Unknown BootLoader on sda6

    The boot-repair report is not promising.

    Back up your Windows data (inc sda8 and sda9 if they contain data) - Please confirm when done
    Boot into a live Ubuntu session and see if you can access partition sda6
    If you can access sda6, then back up your data

    My gut feeling is that Boot-Repair will not really help you so it is better, quicker and more reliable to:-
    • Re-install Windows and restore back up (or possibly fix Windows 10 boot with Windows tools)
    • Re-install Ubuntu followed by restoring your Ubuntu data back ups.

    If i were in your position, I would back up, re-install Windows using UEFI mode with GPT and then double check as much as possible.
    Then, I would re-install Ubuntu in the same mode.

    Ubuntu is more co-operative with sharing a drive than Windows, hence Windows is re-installed first (just an opinion not a fact)

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: GRUB2 broken after Win Update, boot-repair does not work

    Boot-Repair's main fix is reinstall of grub and/or update of grub menu.
    And the report then can show us other issues.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •