Jump to content

"error: no such device: FED8 - 19D0" after choosing operating system in grub bootloader.

Hi,

I am a new user to Linux. On my laptop I am dual booting PopOs and windows 10. But recently my grub bootloader suddenly started giving me this error every time I choose Windows from grub menu. 

error: no such device: FED8-19D0
error: disk `hd1, gpt1` not found.

Press any key to continue...

After I press a key it takes me back to the grub menu. Although when I choose anything other than windows it works as it should. 

I am not really sure if this is the reason for the error but I believe the error started appearing after this one time I tried to mount the C drive (which is where windows is stored) onto Linux through the utility app. 

 

Btw, I am still a beginner to Linux so I would appreciate if you make the answer a little more beginner friendly. :old-smile:

Link to comment
Share on other sites

Link to post
Share on other sites

Hi,

I am a new user to Linux. On my laptop I am dual booting PopOs and windows 10. But recently my grub bootloader suddenly started giving me this error every time I choose Windows from grub menu. 

error: no such device: FED8-19D0
error: disk `hd1, gpt1` not found.

Press any key to continue...

After I press a key it takes me back to the grub menu. Although when I choose anything other than windows it works as it should. 

I am not really sure if this is the reason for the error but I believe the error started appearing after this one time I tried to mount the C drive (which is where windows is stored) onto Linux through the utility app. 

 

Also I have both legacy and secure boot disabled. 

 

Btw, I am still a beginner to Linux so I would appreciate if you make the answer a little more beginner friendly. :old-smile:

Link to comment
Share on other sites

Link to post
Share on other sites

Can you post the contents of /etc/fstab in PopOS? It looks like your fstab file contains partition labels rather than UUIDs - partition labels sometimes change for various reasons (even just because you added or removed a drive) so it's generally recommended to use UUIDs which don't do that.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, Sauron said:

Can you post the contents of /etc/fstab in PopOS?

Here is the content I found in fstab.

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>  <mount point>  <type>  <options>  <dump>  <pass>
PARTUUID=a93f1830-6082-419d-aab6-3d352b82b0fc  /boot/efi  vfat  umask=0077  0  0
/dev/mapper/cryptswap  none  swap  defaults  0  0
UUID=1490d63d-2e87-4e62-999d-ae13ebe95db8  /  ext4  noatime,errors=remount-ro  0  0

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Alex MR46 said:

Here is the content I found in fstab.


# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>  <mount point>  <type>  <options>  <dump>  <pass>
PARTUUID=a93f1830-6082-419d-aab6-3d352b82b0fc  /boot/efi  vfat  umask=0077  0  0
/dev/mapper/cryptswap  none  swap  defaults  0  0
UUID=1490d63d-2e87-4e62-999d-ae13ebe95db8  /  ext4  noatime,errors=remount-ro  0  0

 

I don't see an entry for the windows partition so it's probably autodiscovered by grub in this case, try running the folliowing commands:
 

grub-probe --target=fs_uuid esp/EFI/Microsoft/Boot/bootmgfw.efi

grub-probe --target=hints_string esp/EFI/Microsoft/Boot/bootmgfw.efi

This should tell us if there's something wrong with the Windows entry in the grub configuration. Also please post the contents of /boot/grub/grub.cfg

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Sauron said:

..., try running the following commands:
 


grub-probe --target=fs_uuid esp/EFI/Microsoft/Boot/bootmgfw.efi

grub-probe --target=hints_string esp/EFI/Microsoft/Boot/bootmgfw.efi

Here is the result I got form terminal. 

362314307_Screenshotfrom2021-06-2612-09-18.png.f33aa0546922962dee22d3facd9b73c1.png

 

6 minutes ago, Sauron said:

Also please post the contents of /boot/grub/grub.cfg

And the content for /boot/grub/grub.cfg. I will also attach the file itself. 

 

#
# 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 [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
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 initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; 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
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  1490d63d-2e87-4e62-999d-ae13ebe95db8
else
  search --no-floppy --fs-uuid --set=root 1490d63d-2e87-4e62-999d-ae13ebe95db8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1920x1080
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  1490d63d-2e87-4e62-999d-ae13ebe95db8
else
  search --no-floppy --fs-uuid --set=root 1490d63d-2e87-4e62-999d-ae13ebe95db8
fi
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/CyberRe/dejavu_14.pf2
loadfont ($root)/usr/share/grub/themes/CyberRe/droidlogo_bold_17.pf2
loadfont ($root)/usr/share/grub/themes/CyberRe/droidlogo_bold_20.pf2
loadfont ($root)/usr/share/grub/themes/CyberRe/droidlogo_bold_26.pf2
loadfont ($root)/usr/share/grub/themes/CyberRe/droidlogo_regular_12.pf2
loadfont ($root)/usr/share/grub/themes/CyberRe/droidlogo_regular_17.pf2
insmod png
set theme=($root)/usr/share/grub/themes/CyberRe/theme.txt
export theme
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 ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_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 'Pop GNU/Linux' --class pop --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1490d63d-2e87-4e62-999d-ae13ebe95db8' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  1490d63d-2e87-4e62-999d-ae13ebe95db8
	else
	  search --no-floppy --fs-uuid --set=root 1490d63d-2e87-4e62-999d-ae13ebe95db8
	fi
	linux	/boot/vmlinuz-5.11.0-7614-generic root=UUID=1490d63d-2e87-4e62-999d-ae13ebe95db8 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.11.0-7614-generic
}
submenu 'Advanced options for Pop GNU/Linux' $menuentry_id_option 'gnulinux-advanced-1490d63d-2e87-4e62-999d-ae13ebe95db8' {
	menuentry 'Pop GNU/Linux, with Linux 5.11.0-7614-generic' --class pop --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.11.0-7614-generic-advanced-1490d63d-2e87-4e62-999d-ae13ebe95db8' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  1490d63d-2e87-4e62-999d-ae13ebe95db8
		else
		  search --no-floppy --fs-uuid --set=root 1490d63d-2e87-4e62-999d-ae13ebe95db8
		fi
		echo	'Loading Linux 5.11.0-7614-generic ...'
		linux	/boot/vmlinuz-5.11.0-7614-generic root=UUID=1490d63d-2e87-4e62-999d-ae13ebe95db8 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.11.0-7614-generic
	}
	menuentry 'Pop GNU/Linux, with Linux 5.11.0-7614-generic (recovery mode)' --class pop --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.11.0-7614-generic-recovery-1490d63d-2e87-4e62-999d-ae13ebe95db8' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  1490d63d-2e87-4e62-999d-ae13ebe95db8
		else
		  search --no-floppy --fs-uuid --set=root 1490d63d-2e87-4e62-999d-ae13ebe95db8
		fi
		echo	'Loading Linux 5.11.0-7614-generic ...'
		linux	/boot/vmlinuz-5.11.0-7614-generic root=UUID=1490d63d-2e87-4e62-999d-ae13ebe95db8 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.11.0-7614-generic
	}
}

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

### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###

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

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

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-efi-FED8-19D0' {
	insmod part_gpt
	insmod fat
	set root='hd1,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  FED8-19D0
	else
	  search --no-floppy --fs-uuid --set=root FED8-19D0
	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 'UEFI Firmware Settings' $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 ###

 

grub.cfg

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Alex MR46 said:

Here is the result I got form terminal. 

I forgot to mention "esp" is a placeholder for your efi boot partition, judging from the grub.cfg file the correct path would be /efi/Microsoft/Boot/bootmgfw.efi, so

grub-probe --target=fs_uuid /efi/Microsoft/Boot/bootmgfw.efi

grub-probe --target=hints_string /efi/Microsoft/Boot/bootmgfw.efi

 

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Sauron said:

I forgot to mention "esp" is a placeholder for your efi boot partition, judging from the grub.cfg file the correct path would be /efi/Microsoft/Boot/bootmgfw.efi, so

Sorry, I am a newbie. 😁

 

But still i am getting errors. Maybe I am doing something wrong again. 

1380438276_Screenshotfrom2021-06-2612-29-14.png.787c26ac4370550cfcfff0b7a15378ce.png

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Alex MR46 said:

Sorry, I am a newbie. 😁

 

But still i am getting errors. Maybe I am doing something wrong again. 

1380438276_Screenshotfrom2021-06-2612-29-14.png.787c26ac4370550cfcfff0b7a15378ce.png

 

 

Is there anything in your /efi folder? maybe it's /boot/efi in PopOS... 🤔

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Sauron said:

Is there anything in your /efi folder? maybe it's /boot/efi in PopOS... 🤔

Yes, there is a "efi" directory in /boot. Here is how the tree for the /boot/efi looks like.

1296960187_Screenshotfrom2021-06-2612-40-15.png.e65a6cbb1598bd35e7ea07037772eb4e.png

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, Alex MR46 said:

Yes, there is a "efi" directory in /boot. Here is how the tree for the /boot/efi looks like.

1296960187_Screenshotfrom2021-06-2612-40-15.png.e65a6cbb1598bd35e7ea07037772eb4e.png

Can't see the windows boot image there, might be faster to just get the UUID with fdisk:

sudo fdisk -l

 

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Sauron said:

Can't see the windows boot image there, might be faster to just get the UUID with fdisk:


sudo fdisk -l

763470772_Screenshotfrom2021-06-2613-00-05.png.9f8faf8327d8dae54c90eaf475273704.png

1269013283_Screenshotfrom2021-06-2613-00-20.png.bd708fe2c3286981346e27c1e988aae3.png

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×