You are not logged in.

#1 2016-04-06 05:55:48

Earth2
Member
Registered: 2016-04-06
Posts: 13

Arch Linux fails to boot

I'm attempting to dual boot Windows 10 and Arch on a Surface 4.  I'm convinced I'm missing something quite obvious, but I figured given my relative inexperience I ought to come here and ask about next steps before I gum things up too much.

Thus far, I have created and formatted primary and swap partitions for Linux, and installed the Linux kernel and Arch base system (and GNOME, though I haven't been able to use it yet).  The partition table is GPT.

The problem seems to have something to do with the bootloader being unable to find the Linux partition.  I mounted the primary partition (/dev/nvme0n1p5) in /mnt and the EFI partition (/dev/nvme0n1p1) in /mnt/boot/efi prior to installing the base system and GRUB.  My current fstab (sorry it's got repeat entries still):

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# UUID=35bf1eb0-3ab8-47ae-a030-d489ae821268
/dev/nvme0n1p5      	/         	ext4      	rw,relatime,data=ordered	0 1

# UUID=FABF-73DD LABEL=SYSTEM
/dev/nvme0n1p1      	/boot/efi 	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

# UUID=91f8000c-b12c-4ddd-9908-26c4d517be09
/dev/nvme0n1p6      	none      	swap      	defaults  	0 0

# UUID=35bf1eb0-3ab8-47ae-a030-d489ae821268
/dev/nvme0n1p5      	/         	ext4      	rw,relatime,data=ordered	0 1

# UUID=FABF-73DD LABEL=SYSTEM
/dev/nvme0n1p1      	/boot/efi 	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

# UUID=35bf1eb0-3ab8-47ae-a030-d489ae821268
/dev/nvme0n1p5      	/         	ext4      	rw,relatime,data=ordered	0 1

# UUID=FABF-73DD LABEL=SYSTEM
/dev/nvme0n1p1      	/boot/efi 	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

...but the output for efibootmgr -v included:

arch    HD(1,GPT,b41d72ad-db14-4a58-bba9-b7fbd0b9a76d,0x800,0x82000)/File(\EFI\arch\grubx64.efi)

The Linux Boot Manager and Windows Boot Manager both use the same UUID as output above.  Windows still boots; I am posting from there now.

When I choose the "arch" boot option directly from the UEFI menu, I continue to get:

error: no such device: 35bf1eb0-3ab8-47ae-a030-d489ae821268.
Entering rescue mode...
grub rescue> ls
(hd0) (hd1)

When I choose Arch Linux from the Linux Boot Manager menu, it instead tells me that it can't find vmlinuz-linux or initramfs-linux.img.  This, I imagine, has something to do with the fact that these are being generated into /boot while the EFI partition is mounted in /boot/efi.

Here is 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  35bf1eb0-3ab8-47ae-a030-d489ae821268
else
  search --no-floppy --fs-uuid --set=root 35bf1eb0-3ab8-47ae-a030-d489ae821268
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-35bf1eb0-3ab8-47ae-a030-d489ae821268' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod ext2
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  35bf1eb0-3ab8-47ae-a030-d489ae821268
	else
	  search --no-floppy --fs-uuid --set=root 35bf1eb0-3ab8-47ae-a030-d489ae821268
	fi
	echo	'Loading Linux linux ...'
	linux	/boot/vmlinuz-linux root=UUID=35bf1eb0-3ab8-47ae-a030-d489ae821268 rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	 /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-35bf1eb0-3ab8-47ae-a030-d489ae821268' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-35bf1eb0-3ab8-47ae-a030-d489ae821268' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  35bf1eb0-3ab8-47ae-a030-d489ae821268
		else
		  search --no-floppy --fs-uuid --set=root 35bf1eb0-3ab8-47ae-a030-d489ae821268
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=35bf1eb0-3ab8-47ae-a030-d489ae821268 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /boot/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-35bf1eb0-3ab8-47ae-a030-d489ae821268' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  35bf1eb0-3ab8-47ae-a030-d489ae821268
		else
		  search --no-floppy --fs-uuid --set=root 35bf1eb0-3ab8-47ae-a030-d489ae821268
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=35bf1eb0-3ab8-47ae-a030-d489ae821268 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /boot/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+ ###

What should I do?  Sorry if this is an easy problem to solve, but I'd love to know what I'm missing.  smile

Offline

#2 2016-04-06 06:05:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Arch Linux fails to boot

The UUID in your NVRAM entry does not match that in your fstab... What is tha actual UUID for your root partition?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-04-06 06:21:14

Earth2
Member
Registered: 2016-04-06
Posts: 13

Re: Arch Linux fails to boot

Using blkid it says the UUID for nvme0n1p5 is 35bf1eb0-3ab8-47ae-a030-d489ae821268.  (It also gives PARTUUID="d3a0e5b6-2b79-4059-bf3d-420a904d210f".)

b41d72ad-db14-4a58-bba9-b7fbd0b9a76d appears to be for the EFI partition.

Offline

#4 2016-04-06 06:24:23

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Arch Linux fails to boot

There are duplicated entry in /etc/fstab. Also useless submenu entries in grub.cfg.
I suggest you put labels to your partitions, if not yet, then it will be much easier using them.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB