You are not logged in.

#1 2016-05-12 07:07:36

mitch_feaster
Member
From: San Diego, CA
Registered: 2011-02-27
Posts: 55
Website

[grub] error: disk `' not found. (UEFI)

I just installed Arch on my shiny new ASUS Zenbook Pro UX501VW-DS71T but I can't boot it sad.  Grub is complaining with:

Welcome to grub

error: disk `' not found.
Entering rescue mode...
grub rescue> _

I installed grub (from within my arch-chroot, with my EFI system partition mounted at /boot) with:

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg

I made sure that everything looks good on my /boot partition. I see my vmlinux and initrd there as usual.  I also verified that the UUID in my grub.cfg matches the one where my arch install lives.

Any ideas what could be going wrong here?  I've tried re-installing and re-configuring grub several times. I've even tried re-installing everything from scratch again, but I get the same error message and grub rescue prompt.

Here's the output of blkid (EFI system partition is on /dev/nvme0n1p1, Arch is on /dev/nvme0n1p5):

/dev/nvme0n1p1: LABEL="SYSTEM" UUID="DABA-72EF" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="fccfcb65-5287-4e24-909f-5b71ce084288"
/dev/nvme0n1p3: UUID="0666BC2966BC1AFF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bc9fc29c-277a-4c28-ad90-1f1870f8a70c"
/dev/nvme0n1p4: LABEL="RECOVERY" UUID="A6F0842AF0840333" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="183a2fd6-1755-4091-8df0-134f04769289"
/dev/nvme0n1p5: UUID="2873ccb1-735c-497f-ae0b-70b28f5b8809" TYPE="ext4" PARTLABEL="arch" PARTUUID="209c0fe6-da26-43b1-91d9-54e809f24356"
/dev/sda1: LABEL="ARCH_201605" UUID="E4EE-AB4E" TYPE="vfat" PARTLABEL="Microsoft Basic Data" PARTUUID="348adda9-6284-4e05-9718-18b23b9373ac"
/dev/loop0: TYPE="squashfs"
/dev/nvme0n1: PTUUID="d56f1514-5d43-4d70-8bf2-cda5d875f710" PTTYPE="gpt"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="d2ebf45d-4fd3-41a5-8b86-efac9f56f382"

Here's my full grub.cfg:

#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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 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 ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  2873ccb1-735c-497f-ae0b-70b28f5b8809
else
  search --no-floppy --fs-uuid --set=root 2873ccb1-735c-497f-ae0b-70b28f5b8809
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_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2873ccb1-735c-497f-ae0b-70b28f5b8809' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod fat
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  DABA-72EF
	else
	  search --no-floppy --fs-uuid --set=root DABA-72EF
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=2873ccb1-735c-497f-ae0b-70b28f5b8809 rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	 /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-2873ccb1-735c-497f-ae0b-70b28f5b8809' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-2873ccb1-735c-497f-ae0b-70b28f5b8809' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  DABA-72EF
		else
		  search --no-floppy --fs-uuid --set=root DABA-72EF
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=2873ccb1-735c-497f-ae0b-70b28f5b8809 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-2873ccb1-735c-497f-ae0b-70b28f5b8809' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  DABA-72EF
		else
		  search --no-floppy --fs-uuid --set=root DABA-72EF
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=2873ccb1-735c-497f-ae0b-70b28f5b8809 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /initramfs-linux-fallback.img
	}
}

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

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

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### 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 ###

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

Last edited by mitch_feaster (2016-05-12 15:39:56)

Offline

#2 2016-05-19 17:36:55

mitch_feaster
Member
From: San Diego, CA
Registered: 2011-02-27
Posts: 55
Website

Re: [grub] error: disk `' not found. (UEFI)

So I ended up sending this bad boy back.  It was too big and ran too hot, and this UEFI issue didn't help either smile.  If I still had it I might have tried updating the BIOS, in case anyone else gets caught in this same situation and needs ideas.

Offline

#3 2016-05-23 11:34:23

Elizine
Member
From: United Kingdom
Registered: 2015-10-07
Posts: 39
Website

Re: [grub] error: disk `' not found. (UEFI)

The error might occur because you are using too old version of grub. Unmask the newest 9999 grub to make it working as current stable grub doesnt support NVME disks (SSDs connected directly to PCIe). Now, reinstall new grub and check.

Offline

#4 2016-05-24 12:02:17

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: [grub] error: disk `' not found. (UEFI)

for i.m.h.o. better to use systemd boot


hp-envy dv7

Offline

#5 2016-05-24 12:10:27

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: [grub] error: disk `' not found. (UEFI)

the steps for systemd-boot are:
remove grub and install efibootmgr and efivar.
Next, we need the PARTUUID of the /root partition in order to add it to our bootloader configuration.
Do this by typing:

blkid -s PARTUUID -o value /dev/sdxY

Where ‘x’ is the device letter and ‘Y’ is the partition number for the root ,add an entry for Arch Linux to systemd-boot

nano /boot/loader/entries/arch.conf

Type the following, make sure sdaX is your root partition

title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=the-id-you-just-copied rw

save and exit,reboot.


hp-envy dv7

Offline

Board footer

Powered by FluxBB