grub booting windows 7 stopped working

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Sgthawker
Level 4
Level 4
Posts: 226
Joined: Sun Apr 27, 2014 2:23 am

grub booting windows 7 stopped working

Post by Sgthawker »

Hello all.

I have had a multi-boot scenario working for months. I have 3 drives, I installed Windows 7 to sda with it's own EFI boot partition over a year ago, then unplugged sda while I partitioned nvme0np for linux with it's own ESP, several /, and a /DATA and swap, then sdb is partitioned but unused at this point. Linux Mint 17.3 KDE is my main OS and last install to nvme0np, preceded by KDE neon 5.8, Fedora 25, and openSUSE 42.2.

Grub has been controlled by LM17.3 including the windows 7 option to boot there along with the others. All was working fine UNTIL, I tried to boot a non EFI USB stick, I think it was Tails for testing, I changed a firmware setting for Boot\CSM\Boot Device Control from <UEFI only> to <UEFI and Legacy OPROM>. This allowed me to boot the USB fine. I then booted back into LM 17.3 and all was good. At some point I went to do a specific task in Windows and I received this error and then grub goes back to my grub menu with all selections available after about 30 seconds with the Win selection erroring ad nauseum if chosen:

Code: Select all

error: failure reading sector 0xfc from 'hd3'.
error: failure reading sector 0xe0 from 'hd3'.
error: failure reading sector 0x0 from 'hd3'.
error: failure reading sector 0xfc from 'hd4'.
error: failure reading sector 0xe0 from 'hd4'.
error: failure reading sector 0x0 from 'hd4'.
error: failure reading sector 0xfc from 'hd3'.
error: failure reading sector 0xe0 from 'hd3'.
error: failure reading sector 0x0 from 'hd3'.
error: failure reading sector 0xfc from 'hd4'.
error: failure reading sector 0xe0 from 'hd4'.
error: failure reading sector 0x0 from 'hd4'.
error: no such device: F055-BB96.
error: file '/efi/Microsoft/Boot/bootmgfw.efi' not found.

Press any key to continue..._
I changed the setting in the firmware back to <UEFI only> and the error persists.

I did some research and found some things to look at, but I don't see what the issue is or how to correct it. In the research I used a few commands at the terminal as follows:

sudo blkid

Code: Select all

/dev/nvme0n1p1: UUID="B403-2304" TYPE="vfat"                             
/dev/nvme0n1p2: UUID="74099c04-6b7a-403c-944e-ce2eba57e7a2" TYPE="ext4"  
/dev/nvme0n1p3: UUID="30c57934-3aca-4e2f-8035-45ba8e5abde2" TYPE="ext4"  
/dev/nvme0n1p4: UUID="c620b565-3f19-4cb6-a32a-452060505520" UUID_SUB="17917326-f4e0-46ae-bd08-f85563b1c54f" TYPE="btrfs" 
/dev/nvme0n1p5: UUID="1557ed4f-6fdd-4916-8975-5f8a90d51d01" TYPE="ext4" 
/dev/nvme0n1p6: LABEL="/DATA" UUID="d4ebe458-1bce-43d0-bcef-904a4ae1e46b" TYPE="ext4" 
/dev/nvme0n1p7: UUID="61b6fc73-04d3-44e6-8567-ac42525f92fa" TYPE="swap" 
/dev/sda1: LABEL="casper-rw" UUID="7749cfc2-508a-4530-80bf-32593dec4a2e" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda3: UUID="34F07FB9F07F8042" TYPE="ntfs" 
/dev/sdb1: UUID="a87c9e27-016a-4039-94d1-13ced0841e09" TYPE="ext4" 
/dev/sdb2: UUID="0d8bfae7-e910-40b8-ba9d-85df10d510bc" TYPE="ext4" 
/dev/sdb3: UUID="84d7274b-ffd3-40d6-8f56-8c828d2be339" TYPE="ext4" 
/dev/sdb4: UUID="f8d3cdd2-65aa-412f-b6fa-09b73c2d0c38" TYPE="ext4" 
/dev/sdb5: UUID="3da646e7-d879-4909-b4c6-2b09f20ab373" TYPE="ext4" 
/dev/sdb6: UUID="d4ebba46-a955-4bfc-93b3-84eeb58ac72d" TYPE="ext4" 
/dev/sdb7: LABEL="/DATA" UUID="395fd9fe-fa4b-4d01-b3e5-7079c093ea83" TYPE="ext4"
sudo fdisk -l

Code: Select all

WARNING: GPT (GUID Partition Table) detected on '/dev/nvme0n1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/nvme0n1: 512.1 GB, 512110190592 bytes
255 heads, 63 sectors/track, 62260 cylinders, total 1000215216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

        Device Boot      Start         End      Blocks   Id  System
/dev/nvme0n1p1               1  1000215215   500107607+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 480.1 GB, 480103981056 bytes
256 heads, 63 sectors/track, 58141 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x60b55255

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000574a7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1   937703087   468851543+  ee  GPT
and finally:
cat /boot/grub/grub.cfg

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  74099c04-6b7a-403c-944e-ce2eba57e7a2
else
  search --no-floppy --fs-uuid --set=root 74099c04-6b7a-403c-944e-ce2eba57e7a2
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  74099c04-6b7a-403c-944e-ce2eba57e7a2
else
  search --no-floppy --fs-uuid --set=root 74099c04-6b7a-403c-944e-ce2eba57e7a2
fi
insmod jpeg
if background_image /boot/grub/kLdeLSm.jpg; then
  true
else
  set menu_color_normal=white/black
  set menu_color_highlight=black/light-gray
  if background_color 0,0,0; then
    clear
  fi
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
        set gfxpayload="${1}"
        if [ "${1}" = "keep" ]; then
                set vt_handoff=vt.handoff=7
        else
                set vt_handoff=
        fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 17.3 KDE 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-74099c04-6b7a-403c-944e-ce2eba57e7a2' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_gpt
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  74099c04-6b7a-403c-944e-ce2eba57e7a2
        else
          search --no-floppy --fs-uuid --set=root 74099c04-6b7a-403c-944e-ce2eba57e7a2
        fi
        linux   /boot/vmlinuz-3.19.0-32-generic root=UUID=74099c04-6b7a-403c-944e-ce2eba57e7a2 ro  quiet splash $vt_handoff
        initrd  /boot/initrd.img-3.19.0-32-generic
}
submenu 'Advanced options for Linux Mint 17.3 KDE 64-bit' $menuentry_id_option 'gnulinux-advanced-74099c04-6b7a-403c-944e-ce2eba57e7a2' {
        menuentry 'Linux Mint 17.3 KDE 64-bit, with Linux 3.19.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-32-generic-advanced-74099c04-6b7a-403c-944e-ce2eba57e7a2' {
                recordfail
                load_video
                gfxmode $linux_gfx_mode
                insmod gzio
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  74099c04-6b7a-403c-944e-ce2eba57e7a2
                else
                  search --no-floppy --fs-uuid --set=root 74099c04-6b7a-403c-944e-ce2eba57e7a2
                fi
                echo    'Loading Linux 3.19.0-32-generic ...'
                linux   /boot/vmlinuz-3.19.0-32-generic root=UUID=74099c04-6b7a-403c-944e-ce2eba57e7a2 ro  quiet splash $vt_handoff
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.19.0-32-generic
        }
        menuentry 'Linux Mint 17.3 KDE 64-bit, with Linux 3.19.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-32-generic-recovery-74099c04-6b7a-403c-944e-ce2eba57e7a2' {
                recordfail
                load_video
                insmod gzio
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  74099c04-6b7a-403c-944e-ce2eba57e7a2
                else
                  search --no-floppy --fs-uuid --set=root 74099c04-6b7a-403c-944e-ce2eba57e7a2
                fi
                echo    'Loading Linux 3.19.0-32-generic ...'
                linux   /boot/vmlinuz-3.19.0-32-generic root=UUID=74099c04-6b7a-403c-944e-ce2eba57e7a2 ro recovery nomodeset 
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.19.0-32-generic
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'KDE neon User Edition 5.9 (16.04) (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-30c57934-3aca-4e2f-8035-45ba8e5abde2' {
        insmod part_gpt
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  30c57934-3aca-4e2f-8035-45ba8e5abde2
        else
          search --no-floppy --fs-uuid --set=root 30c57934-3aca-4e2f-8035-45ba8e5abde2
        fi
        linux /boot/vmlinuz-4.4.0-62-generic.efi.signed root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro quiet splash $vt_handoff
        initrd /boot/initrd.img-4.4.0-62-generic
}
submenu 'Advanced options for KDE neon User Edition 5.9 (16.04) (on /dev/nvme0n1p3)' $menuentry_id_option 'osprober-gnulinux-advanced-30c57934-3aca-4e2f-8035-45ba8e5abde2' {
        menuentry 'neon GNU/Linux (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic.efi.signed--30c57934-3aca-4e2f-8035-45ba8e5abde2' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  30c57934-3aca-4e2f-8035-45ba8e5abde2
                else
                  search --no-floppy --fs-uuid --set=root 30c57934-3aca-4e2f-8035-45ba8e5abde2
                fi
                linux /boot/vmlinuz-4.4.0-62-generic.efi.signed root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-4.4.0-62-generic
        }
        menuentry 'neon GNU/Linux, with Linux 4.4.0-62-generic (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic.efi.signed--30c57934-3aca-4e2f-8035-45ba8e5abde2' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  30c57934-3aca-4e2f-8035-45ba8e5abde2
                else
                  search --no-floppy --fs-uuid --set=root 30c57934-3aca-4e2f-8035-45ba8e5abde2
                fi
                linux /boot/vmlinuz-4.4.0-62-generic.efi.signed root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-4.4.0-62-generic
        }
        menuentry 'neon GNU/Linux, with Linux 4.4.0-62-generic (recovery mode) (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic.efi.signed-root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro recovery nomodeset-30c57934-3aca-4e2f-8035-45ba8e5abde2' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  30c57934-3aca-4e2f-8035-45ba8e5abde2
                else
                  search --no-floppy --fs-uuid --set=root 30c57934-3aca-4e2f-8035-45ba8e5abde2
                fi
                linux /boot/vmlinuz-4.4.0-62-generic.efi.signed root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro recovery nomodeset
                initrd /boot/initrd.img-4.4.0-62-generic
        }
        menuentry 'neon GNU/Linux, with Linux 4.4.0-59-generic (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--30c57934-3aca-4e2f-8035-45ba8e5abde2' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  30c57934-3aca-4e2f-8035-45ba8e5abde2
                else
                  search --no-floppy --fs-uuid --set=root 30c57934-3aca-4e2f-8035-45ba8e5abde2
                fi
                linux /boot/vmlinuz-4.4.0-59-generic root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-4.4.0-59-generic
        }
        menuentry 'neon GNU/Linux, with Linux 4.4.0-59-generic (recovery mode) (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic-root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro recovery nomodeset-30c57934-3aca-4e2f-8035-45ba8e5abde2' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  30c57934-3aca-4e2f-8035-45ba8e5abde2
                else
                  search --no-floppy --fs-uuid --set=root 30c57934-3aca-4e2f-8035-45ba8e5abde2
                fi
                linux /boot/vmlinuz-4.4.0-59-generic root=UUID=30c57934-3aca-4e2f-8035-45ba8e5abde2 ro recovery nomodeset
                initrd /boot/initrd.img-4.4.0-59-generic
        }
}

menuentry 'Fedora release 25 (Twenty Five) (on /dev/nvme0n1p5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1557ed4f-6fdd-4916-8975-5f8a90d51d01' {
        insmod part_gpt
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  1557ed4f-6fdd-4916-8975-5f8a90d51d01
        else
          search --no-floppy --fs-uuid --set=root 1557ed4f-6fdd-4916-8975-5f8a90d51d01
        fi
        linux /boot/vmlinuz-0-rescue-2ce68a284c5347ae898cdea8b7d1a64e root=/dev/nvme0n1p5
        initrd /boot/initramfs-0-rescue-2ce68a284c5347ae898cdea8b7d1a64e.img
}
submenu 'Advanced options for Fedora release 25 (Twenty Five) (on /dev/nvme0n1p5)' $menuentry_id_option 'osprober-gnulinux-advanced-1557ed4f-6fdd-4916-8975-5f8a90d51d01' {
        menuentry 'Fedora release 25 (Twenty Five) (on /dev/nvme0n1p5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-0-rescue-2ce68a284c5347ae898cdea8b7d1a64e--1557ed4f-6fdd-4916-8975-5f8a90d51d01' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  1557ed4f-6fdd-4916-8975-5f8a90d51d01
                else
                  search --no-floppy --fs-uuid --set=root 1557ed4f-6fdd-4916-8975-5f8a90d51d01
                fi
                linux /boot/vmlinuz-0-rescue-2ce68a284c5347ae898cdea8b7d1a64e root=/dev/nvme0n1p5
                initrd /boot/initramfs-0-rescue-2ce68a284c5347ae898cdea8b7d1a64e.img
        }
        menuentry 'Fedora release 25 (Twenty Five) (on /dev/nvme0n1p5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.8.6-300.fc25.x86_64--1557ed4f-6fdd-4916-8975-5f8a90d51d01' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  1557ed4f-6fdd-4916-8975-5f8a90d51d01
                else
                  search --no-floppy --fs-uuid --set=root 1557ed4f-6fdd-4916-8975-5f8a90d51d01
                fi
                linux /boot/vmlinuz-4.8.6-300.fc25.x86_64 root=/dev/nvme0n1p5
                initrd /boot/initramfs-4.8.6-300.fc25.x86_64.img
        }
        menuentry 'Fedora release 25 (Twenty Five) (on /dev/nvme0n1p5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.6-200.fc25.x86_64--1557ed4f-6fdd-4916-8975-5f8a90d51d01' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  1557ed4f-6fdd-4916-8975-5f8a90d51d01
                else
                  search --no-floppy --fs-uuid --set=root 1557ed4f-6fdd-4916-8975-5f8a90d51d01
                fi
                linux /boot/vmlinuz-4.9.6-200.fc25.x86_64 root=/dev/nvme0n1p5
                initrd /boot/initramfs-4.9.6-200.fc25.x86_64.img
        }
        menuentry 'Fedora release 25 (Twenty Five) (on /dev/nvme0n1p5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.9-200.fc25.x86_64--1557ed4f-6fdd-4916-8975-5f8a90d51d01' {
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  1557ed4f-6fdd-4916-8975-5f8a90d51d01
                else
                  search --no-floppy --fs-uuid --set=root 1557ed4f-6fdd-4916-8975-5f8a90d51d01
                fi
                linux /boot/vmlinuz-4.9.9-200.fc25.x86_64 root=/dev/nvme0n1p5
                initrd /boot/initramfs-4.9.9-200.fc25.x86_64.img
        }
}

menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-F055-BB96' {
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  F055-BB96
        else
          search --no-floppy --fs-uuid --set=root F055-BB96
        fi
        chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
        fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Here is a screenshot of sda with Gparted which can't see the nvme.

Image

Does anyone have a helpful hint to get this corrected? Thanks in advance for your time! :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
LM21.1 KDE/LM21.1 Cin/ UEFI Tuf Gaming X570 Plus, Ryzen 7 5800X, GTX 3060, Samsung 980 Pro M.2 NVMe
LM21.1 KDE/LM21.1 Cin/ UEFI on STRIX laptop, i7700 HQ, GTX 1060, Samsung 980 Pro M.2 NVMe
User avatar
Sgthawker
Level 4
Level 4
Posts: 226
Joined: Sun Apr 27, 2014 2:23 am

Re: grub booting windows 7 stopped working

Post by Sgthawker »

Okay, here is the output of bootinfoscript:

Code: Select all

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => No boot loader is installed in the MBR of /dev/sda.
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 2048 
    of the same hard drive for core.img, but core.img can not be found at this 
    location.

sda1: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 480.1 GB, 480103981056 bytes
256 heads, 63 sectors/track, 58141 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1 4,294,967,295 4,294,967,295  ee GPT

/dev/sda1 ends after the last sector of /dev/sda

GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048       206,847       204,800 EFI System partition
/dev/sda2         206,848       468,991       262,144 Microsoft Reserved Partition (Windows)
/dev/sda3         468,992   937,701,375   937,232,384 Data partition (Windows/Linux)

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1                   1   937,703,087   937,703,087  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sdb1           2,048    48,830,463    48,828,416 Data partition (Linux)
/dev/sdb2      48,830,464    97,658,879    48,828,416 Data partition (Linux)
/dev/sdb3      97,658,880   146,487,295    48,828,416 Data partition (Linux)
/dev/sdb4     146,487,296   195,315,711    48,828,416 Data partition (Linux)
/dev/sdb5     195,315,712   244,144,127    48,828,416 Data partition (Linux)
/dev/sdb6     244,144,128   292,972,543    48,828,416 Data partition (Linux)
/dev/sdb7     292,972,544   937,701,375   644,728,832 Data partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/nvme0n1p1   B403-2304                              vfat       
/dev/nvme0n1p2   74099c04-6b7a-403c-944e-ce2eba57e7a2   ext4       
/dev/nvme0n1p3   30c57934-3aca-4e2f-8035-45ba8e5abde2   ext4       
/dev/nvme0n1p4   c620b565-3f19-4cb6-a32a-452060505520   btrfs      
/dev/nvme0n1p5   1557ed4f-6fdd-4916-8975-5f8a90d51d01   ext4       
/dev/nvme0n1p6   d4ebe458-1bce-43d0-bcef-904a4ae1e46b   ext4       /DATA
/dev/nvme0n1p7   61b6fc73-04d3-44e6-8567-ac42525f92fa   swap       
/dev/sda1        7749cfc2-508a-4530-80bf-32593dec4a2e   ext3       casper-rw
/dev/sda3        34F07FB9F07F8042                       ntfs       
/dev/sdb1        a87c9e27-016a-4039-94d1-13ced0841e09   ext4       
/dev/sdb2        0d8bfae7-e910-40b8-ba9d-85df10d510bc   ext4       
/dev/sdb3        84d7274b-ffd3-40d6-8f56-8c828d2be339   ext4       
/dev/sdb4        f8d3cdd2-65aa-412f-b6fa-09b73c2d0c38   ext4       
/dev/sdb5        3da646e7-d879-4909-b4c6-2b09f20ab373   ext4       
/dev/sdb6        d4ebba46-a955-4bfc-93b3-84eeb58ac72d   ext4       
/dev/sdb7        395fd9fe-fa4b-4d01-b3e5-7079c093ea83   ext4       /DATA

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/nvme0n1p1   /boot/efi            vfat       (rw)
/dev/nvme0n1p2   /                        ext4       (rw,errors=remount-ro)
/dev/nvme0n1p6   /mnt/DATA         ext4       (rw)


=============================== StdErr Messages: ===============================

  No volume groups found

LM21.1 KDE/LM21.1 Cin/ UEFI Tuf Gaming X570 Plus, Ryzen 7 5800X, GTX 3060, Samsung 980 Pro M.2 NVMe
LM21.1 KDE/LM21.1 Cin/ UEFI on STRIX laptop, i7700 HQ, GTX 1060, Samsung 980 Pro M.2 NVMe
kukamuumuka

Re: grub booting windows 7 stopped working

Post by kukamuumuka »

You have no BCD-file and Windows cannot boot without BCD-file. The easiest way to fix the thing is to copy windows boot partition from an another computer (if available) and fix Windows boot.

I put BCD as an attachment here
BCD.tar.gz
https://tweakhound.com/2012/11/13/how-t ... ootloader/
Locked

Return to “Installation & Boot”