You are not logged in.

#1 2020-02-23 05:34:48

avneesh
Member
Registered: 2017-07-19
Posts: 62

Root device not found during boot

I updated Arch Linux installed on external hard drive when I boot my system I get this error

Starting version 244.3-1-arch
ERROR: device '170a_ _ _6ba' not found. Skipping fsck.
mount: /new_root: can't find UUID=170a_ _ _6ba.
You are now being dropped into an emergency shell. 
sh: can't access tty; job control turned off 
[rootfs ]#

|

Offline

#2 2020-02-23 05:46:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: Root device not found during boot

That's not a valid UUID. Fix your bootloader config.

Offline

#3 2020-02-23 05:51:23

avneesh
Member
Registered: 2017-07-19
Posts: 62

Re: Root device not found during boot

But when I did blkid in chroot it was showing up this UUID for root. And that was same in my grub.cfg.

Offline

#4 2020-02-23 07:47:08

seth
Member
Registered: 2012-09-03
Posts: 51,149

Re: Root device not found during boot

"170a_ _ _6ba" is not a valid UUID but maybe a pointless and undisclosed exercise in obfuscation?
That UUID is no precious secrect, it's generated on the fly to avoid collisions and doesn't reveal any private information.

Post the actual output as well as that of "lsblk -f" and your grub.cfg - none of that is private unless you labeled a partition "PORN" or sth. and in that case, well: just own up to it ;-)

Offline

#5 2020-02-23 08:49:46

avneesh
Member
Registered: 2017-07-19
Posts: 62

Re: Root device not found during boot

Sorry I was being lazy in writing whole UUID code. Here's my grub.cfg file

#
# 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 part_msdos
insmod ext2
set root='hd1,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275/(null)/sas/disk@0,msdos3' --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3  170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
else
  search --no-floppy --fs-uuid --set=root 170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
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-170af6d0-c5de-4f01-9e42-fe6a0dcee6ba' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275/(null)/sas/disk@0,msdos3' --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3  170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
	else
	  search --no-floppy --fs-uuid --set=root 170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
	fi
	echo	'Loading Linux linux ...'
	linux	/boot/vmlinuz-linux root=UUID=170af6d0-c5de-4f01-9e42-fe6a0dcee6ba rw  loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-170af6d0-c5de-4f01-9e42-fe6a0dcee6ba' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-170af6d0-c5de-4f01-9e42-fe6a0dcee6ba' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275/(null)/sas/disk@0,msdos3' --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3  170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
		else
		  search --no-floppy --fs-uuid --set=root 170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=170af6d0-c5de-4f01-9e42-fe6a0dcee6ba rw  loglevel=3 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-170af6d0-c5de-4f01-9e42-fe6a0dcee6ba' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275/(null)/sas/disk@0,msdos3' --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3  170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
		else
		  search --no-floppy --fs-uuid --set=root 170af6d0-c5de-4f01-9e42-fe6a0dcee6ba
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=170af6d0-c5de-4f01-9e42-fe6a0dcee6ba rw  loglevel=3 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 ###

Here's the output of lsblk -f

NAME   FSTYPE   FSVER LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0  squashfs 4.0                                                                       
sda                                                                                       
├─sda1 ntfs           System Reserved E8C4EBADC4EB7BE6                                    
├─sda2 ntfs                           0C14DA3E14DA2A8A                                    
└─sda3 ntfs                           5E1CF4DC1CF4AFDF                                    
sdb                                                                                       
├─sdb1 ntfs                           1582355C54705293                                    
├─sdb2 swap     1                     589fb4c0-748f-4bd2-b639-a6e3f4f08e77                
└─sdb3 ext4     1.0                   170af6d0-c5de-4f01-9e42-fe6a0dcee6ba    1.2T     0% /
sdc                                                                                       
└─sdc1 vfat     FAT32 ARCH_201911     543B-909B                                           

Offline

#6 2020-02-23 12:28:18

seth
Member
Registered: 2012-09-03
Posts: 51,149

Re: Root device not found during boot

170af6d0-c5de-4f01-9e42-fe6a0dcee6ba is your root partition, but it's completely empty.
How did you install archlinux? (What script did you use or tutorial did you follow)?
Edit: apparently that was an update. What exactly did you do? Did you try to mount the partition (any partition, notably your $HOME one …)?

Last edited by seth (2020-02-23 12:29:53)

Offline

Board footer

Powered by FluxBB