You are not logged in.

#1 2016-07-24 01:24:26

lezned
Member
Registered: 2016-07-24
Posts: 11

Unable to boot in archlinux after upgrade to windows 10

Hi all,
after upgrade of windows 7 to 10 I'm unable to boot arch.
I menage multiboot from bios, due to UEFI system.
This is the problem:

: : performing fsck on '/dev/sda4'
: : mounting '/dev/sda4' on real root
mount: unknown filesystem type 'ntfs'
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
[rootfs /]# _

It seems like windows 10 created a new partition between linux and windows partitions, so that now my arch partition is sda5 while before was sda4.

This is the content of grub.cfg, from boot partition (sda1):

#
# 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
set default="0"

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 part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  ad4103fa-d940-47ca-8506-301d8071d467
else
  search --no-floppy --fs-uuid --set=root ad4103fa-d940-47ca-8506-301d8071d467
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
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-ad4103fa-d940-47ca-8506-301d8071d467' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  ad4103fa-d940-47ca-8506-301d8071d467
	else
	  search --no-floppy --fs-uuid --set=root ad4103fa-d940-47ca-8506-301d8071d467
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-ad4103fa-d940-47ca-8506-301d8071d467' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  ad4103fa-d940-47ca-8506-301d8071d467
	else
	  search --no-floppy --fs-uuid --set=root ad4103fa-d940-47ca-8506-301d8071d467
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 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/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

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

this the fstab file:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# UUID=a82c21de-3ac9-4ebc-bda0-81cf8f426766
/dev/sda4                       /                           ext4      	rw,noatime,data=ordered,discard   0 1

# UUID=9C02-1211
/dev/sda1                       /boot                       vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro   0 2

and this the output of blkid:

/dev/sda1: UUID="9C02-1211" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="cf046cd6-01"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="d5ad3834-bf24-426e-b039-a56358a59c0a"
/dev/sda3: UUID="9A701B56701B3889" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e3ec4f25-e377-4e35-86ca-293b77a12c27"
/dev/sda4: UUID="289C881C9C87E2A4" TYPE="ntfs" PARTUUID="dfb207e1-c641-4b75-9449-b40cfa4372e4"
/dev/sda5: UUID="a82c21de-3ac9-4ebc-bda0-81cf8f426766" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="5fe36390-967d-405f-8c64-5e44146e1a8f"

Replace sda4 with sda5 in fstab didn't solve,
Thank you!

Last edited by lezned (2016-07-24 12:55:59)

Offline

#2 2016-07-24 02:37:17

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

Re: Unable to boot in archlinux after upgrade to windows 10

Your grub line points at a different root:

linux	/boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 rw  quiet

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-07-24 12:57:10

lezned
Member
Registered: 2016-07-24
Posts: 11

Re: Unable to boot in archlinux after upgrade to windows 10

Replacing all occurrences of ad4103fa-d940-47ca-8506-301d8071d467 with a82c21de-3ac9-4ebc-bda0-81cf8f426766 in grub.cfg didn't solve the issue....
Error is always the same.

I cannot figure out where grub (is it grub doing this?) is getting the value /dev/sda4 to mount on real root.. any idea?

Last edited by lezned (2016-07-24 12:59:26)

Offline

#4 2016-07-24 16:41:52

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

Re: Unable to boot in archlinux after upgrade to windows 10

Did you regenerate your initramfs after changing grub?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-07-24 22:09:40

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Unable to boot in archlinux after upgrade to windows 10

Please post the full output of:

# efibootmgr -v

This command could be run from a Fedora (or similar) live ISO image to aid posting.

Offline

Board footer

Powered by FluxBB