Please help! I screwed up my work computer and I need it back online! I looked through EVERY post on this, +wiki, here and elsewhere. Didn’t work. You are my only hope…
I just need to be able to boot in. Fixing the pacman dependency issue or GRUB, or finding out what caused the initial crash, would be an added bonus.
Timeline:
(1) Yesterday my Lenovo Ideapad Yoga 211 running vanilla Arch kernel randomly crashed. I didn’t get to see the error message if there was any.
(2) Reboot failed because of a running issue with pacman kernel update breaking dependencies. I usually just boot from a USB iso, mount everything, arch-chroot, and update kernel.
(3) This time I was tired of having to do that every time I turn on the computer, so I decided to install GRUB (saw a forum post somewhere that rEFInd was causing it? not sure.)
(4) GRUB install had no errors, but won’t even show up. Just jumps straight to boot, which drops me straight into a recovery shell.
(5) rEFInd works, but still dropped into recovery or kernel panic unless mounting USB iso. Per some forum post, copied efis from /boot/ to /boot/EFI and /boot/EFI/arch
rEFInd:
(1) /boot/EFI/vmlinuz —> tries to mount /dev/mapper/arch_airootfs, kernel panic
(2) /boot/EFI/systemd/systemd-bootx64.efi —> tries to mount ‘ ‘, drops to recovery rootfs. Similar error: https://bbs.archlinux.org/viewtopic.php?id=142052
(3) /boot/EFI/arch/vmlinuz —> tries to mount ubuntu_os (???) with correct partUUID and label. mounts successfully, but since ubuntu_os is blank, it drops to recovery rootfs. No idea where it got this value from.
(4) /boot/vmlinuz —> tries to mount arch_os with correct UUID and label, «waiting 10 seconds», kernel panic. Similar error: https://bbs.archlinux.org/viewtopic.php?id=184554
Tried several times:
genfstab -U /mnt > /mnt/etc/fstab
mkinitcpio -p linux
pacman -S linux systemd
sda1 is /boot, sda2 is /, sda3 is /home. sda4 and 5 are blank. sdb is the pen drive iso.
# lsblk -o +uuid
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT UUID
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 499M 0 part /mnt/boot FF14-4A90
├─sda2 8:2 0 20G 0 part /mnt e87d3b2d-d254-4ad8-a461-d24bb0482000
├─sda3 8:3 0 80G 0 part /mnt/home b9f71e80-93d6-422a-9556-1afcc7183e90
├─sda4 8:4 0 20G 0 part 77afc557-e8fb-4e80-bc18-55a50f145fea
├─sda5 8:5 0 80G 0 part a673b61f-165e-4a44-b8a1-141b8be9d34d
└─sda6 8:6 0 15G 0 part b3bf67d2-bddb-4a9f-b413-8267faac83c5
sdb 8:16 1 29.8G 0 disk 2016-01-01-11-39-46-00
├─sdb1 8:17 1 686M 0 part /run/archiso/bootmnt 2016-01-01-11-39-46-00
└─sdb2 8:18 1 31M 0 part 53A0-40D0
loop0 7:0 0 300.3M 1 loop /run/archiso/sfs/airootfs
# blkid
/dev/sda1: UUID="FF14-4A90" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="77d700f1-090c-4aaa-8794-62df374ac884"
/dev/sda2: LABEL="Arch_os" UUID="e87d3b2d-d254-4ad8-a461-d24bb0482000" TYPE="ext4" PARTLABEL="Linux x86-64 root (/)" PARTUUID="b24a251e-2561-4563-a5ad-435ac547bd31"
/dev/sda3: LABEL="Arch_fs" UUID="b9f71e80-93d6-422a-9556-1afcc7183e90" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="3e890ca5-bc44-4bfc-a091-4e872517efce"
/dev/sda4: LABEL="Ubuntu_os" UUID="77afc557-e8fb-4e80-bc18-55a50f145fea" TYPE="ext4" PARTLABEL="Linux x86-64 root (/)" PARTUUID="91cb3f86-9c3b-400f-95e0-7fe855aecbf3"
/dev/sda5: LABEL="Ubuntu_fs" UUID="a673b61f-165e-4a44-b8a1-141b8be9d34d" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="0a42f865-794e-42a6-ad5b-3b3f8212f4f1"
/dev/sda6: UUID="b3bf67d2-bddb-4a9f-b413-8267faac83c5" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="de78e4a4-c973-4324-bcfc-570ab67c5f1c"
/dev/sdb1: UUID="2016-01-01-11-39-46-00" LABEL="ARCH_201601" TYPE="iso9660" PTUUID="10714092" PTTYPE="dos" PARTUUID="10714092-01"
/dev/sdb2: SEC_TYPE="msdos" LABEL="ARCHISO_EFI" UUID="53A0-40D0" TYPE="vfat" PARTUUID="10714092-02"
/dev/loop0: TYPE="squashfs"
/mnt/etc/fstab
# /dev/sda2 LABEL=Arch_os
UUID=e87d3b2d-d254-4ad8-a461-d24bb0482000 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=FF14-4A90 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# /dev/sda3 LABEL=Arch_fs
UUID=b9f71e80-93d6-422a-9556-1afcc7183e90 /home ext4 rw,relatime,data=ordered 0 2
/boot/grub/grub.cfg. No idea where it got that random UUID from (ad4103fa-d940-47ca-8506-301d8071d467)
#
# 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 ###
/etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"
/etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES="piix ide_disk reiserfs"
MODULES=""
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS="base"
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS="base udev autodetect block filesystems"
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS="base udev block filesystems"
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev block mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev block lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
Thank you guys for your help! I really appreciate it.
Last edited by amagnasco (2016-01-12 18:54:20)
Ноут HP с Intel 11 поколения, разбил диск на две части. При установке Win10 потребовалось подсунуть драйверы для ssd с буковками VMD, причем две штуки: для Интел и не для Интел (контроллер Интел, а диск нет). Манжаро ничего не попросил, вроде бы записал свои файлы на указанный раздел и установил загрузчик. После перезагрузки привычная зелёная картинка, Win10 спокойно запускается, а вот сам Манжаро ни в какую, пишет как в заголовке. Решил немного подождать и не торопиться. HP дважды обновил биос, Манжаро обновил ядро, а картина не изменилась. Попробовал Endeavour — такая же ошибка, попробовал MXLinux — он установился, но звука нет и непонятно, когда появится и где искать. Понял, что по-любому предстоят танцы с бубном, по-прежнему хотелось установить Манжаро, а значит надо бы где-то посмотреть основные движения.
Нашёл на другом форуме сообщение о том, как был установлен Arch на Lenovo, у которого тоже набор от Интел 11 поколения. Оказалось, нужно пересобрать загрузочные образы, сказав в процессе волшебное заклинание — vmd.
Загрузился с флешки, с которой устанавливал Манжаро, кликнул Файловую систему на рабочем столе, нашёл раздел, куда ставил Манжаро и убедился, что там есть все его папки и файлы. Запустил терминал (Ctrl-Alt-T) и далее
sudo blkid
посмотрел, что /dev на котором Манжаро, называется nvme0n1p4, а его UUID совпадает с сообщением об ошибке.
Настало время основных движений танца:
создать в установленном на ssd Манжаро файл /etc/modules-load.d/customload.conf и вписать в него буквы vmd;
открыть у Манжаро файл /etc/mkinitcpio.conf и заменить MODULES=»» на MODULES=(vmd).
Всё это делается через sudo, а все папки с Манжаро на ssd уже доступны через файловый менеджер (ходил их смотреть), поэтому удобнее
sudo Thunar
и в файловом менеджере и редакторе Mousepad можно сделать всё необходимое. Повторю, эти файлы не на флешке, а на ssd среди установленных файлов Манжаро.
Теперь нужно организовать chroot — это стать во главе не флешки, а во главе системы на ssd, ведь для неё требуется пересобрать образы. Для начала нужно примонтировать (подключить) ту часть ssd, на котором файлы Манжаро (тот dev/nvme0n1p4) к своему текущему дереву каталогов. Я уже фактически их подключил, когда ходил смотреть, но лучше подключить куда рекомендуется (в /mnt) да ещё и с явным указанием названия /dev.
sudo mount /dev/nvme0n1p4 /mnt
Сходил через Thunar в /mnt флешки и убедился, что все папки установленного на ssd Манжаро там появились. Чтобы сохранились связи и всё работало, нужно подключить, типа зазеркалить, основные системные папки. Чтобы меньше писать путей, сначала переход в папку /mnt на флешке
cd /mnt
Дальше три команды по подключению и собственно chroot, но специально их выделять не буду:
sudo mount -t proc /proc proc/
sudo mount -t sysfs /sys sys/
sudi mount -o bind /dev dev/
и теперь можно скомандовать chroot. /bin/bash
В Манжаро предлагается manjaro-chroot, он сам сделает все необходимые подключения, поэтому можно сразу
manjaro-chroot . /bin/bash
В обоих вариантах приглашение в командной строке станет красным manjaro. Если не запускать с chroot одновременно /bin/bash, то по-умолчанию откроется sh и не будет такого явного подтверждения в виде красного manjaro.
Для каких-то других дел в chroot не помешает подключение к интернету, но сейчас не нужно. Если запустить генерацию образов с параметром -p прописная, то по-умолчанию ищется файл /etc/mkinitcpio.d/linux.preset, а такого файла нет, только linux510.preset. Либо указать его вручную, либо запустить команду с заглавной -P
mkinitcpio -P
Новые образы успешно создались, загрузчик и был в порядке, поэтому обновлял лишь его конфигурацию
sudo update-grub
На удивление os-prober сообщил, что nvme0n1 ему неизвестен и он не нашёл ничего, кроме Манжаро. Неужели теперь Манжаро будет запускаться, а Windows10 нет? Выход из любого chroot и отключение примонтированного
exit
sudo umount -a
Что-то отмонтировалось, а что-то ещё занято и не открепилось — ну и ладно. При перезагрузке привычного зелёного меню не было, ведь был найден только Манжаро, но он успешно запустился. Ещё раз обновление sudo update-grub уже из работающей с ssd системы и Windows10 была успешно найдена. Но os-prober опять ругнулся на то, что не знает nvme0n1, хотя увидел memtest, который он так и не подхватил. Мне стало интересно, что будет при обновлении ядра. Загрузил 5.12 и генерация образов прошла успешно, ведь волшебные буквы vmd на месте. Попробовал и Windows10, и 5.10, и 5.12 — всё загружается и звук есть. Теперь посмотрю, не собьют ли мне генерацию новых образов разработчики Манжаро, когда поправят этот момент по-своему.
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.
# |
|
Темы: 28 Сообщения: 119 Участник с: 26 августа 2012 |
После перестановки диска с ОС в новую систему, линукс перестал грузится, примерно, с такой ошибкой:
диск с данным uuid существует, там находится ос линукс был по новой сгенерирован mkinitcpio и переустановлен загрузчик, но это проблему не решило. В чем может быть проблема? |
bobart |
# (отредактировано 7 лет назад) |
Темы: 38 Сообщения: 2537 Участник с: 28 ноября 2009 |
Может есть несоответствие с данными /etc/fstab — проверяли?
Мне кажется, мало просто «переустановить загрузчик», надо ещё и сгенерировать (или вручную) корректный grub.cfg Если Вы всё это уже сделали-проверили, то так бы и написали, чтоб зря не гадать. |
coffeewater |
# |
Темы: 5 Сообщения: 58 Участник с: 31 июля 2014 |
Проверяйте, каким именно устройством этот диск теперь является. Если он был sda1, то теперь он может быть sdb1 и, следовательно, uuid не соответствует устройству.
|
trisch |
# |
Темы: 28 Сообщения: 119 Участник с: 26 августа 2012 |
bobart, grub.cfg я генерировал.
coffeewater, устройство свое имя не поменяло. Еще при генерации конфига grub, появляется такая вот ошибка:
|
bobart |
# (отредактировано 7 лет назад) |
Темы: 38 Сообщения: 2537 Участник с: 28 ноября 2009 |
Да Вы хоть погуглите что ли, сами-то… тынц… https://bbs.archlinux.org/viewtopic.php?id=159484 — это первое по списку и не факт, что Ваш случай. Судя по богатому списку результатов гуглопоиска, ошибка не экзотическая. |
trisch |
# |
Темы: 28 Сообщения: 119 Участник с: 26 августа 2012 |
«bobart», вы не поверите, я гуглил |
bobart |
# (отредактировано 7 лет назад) |
Темы: 38 Сообщения: 2537 Участник с: 28 ноября 2009 |
По поводу конкретно «can’t find a SQUASHFS superblock on…» посмотрите этот топик https://bbs.archlinux.org/viewtopic.php?id=158231 Насчёт остального — не знаю. Нужно больше информации: все конфиги, причастные к этому — сюда. И ещё, вывод этих двух команд:
|
Natrio |
# |
Темы: 47 Сообщения: 4765 Участник с: 08 января 2011 |
Ничего не надо «генерировать», и бесполезно переустанавливать загрузчик. UUID соответствует не устройству, а разделу, и он не мог измениться при перестановке диска в другую машину. UUID также не зависит от порядка устройств, он специально для того и придуман. Раздел может быть не виден ядру из-за отсутствия в initramfs модуля с драйвером контроллера ATA новой машины. А уже после загрузки выполнить под рутом
чтобы пересобрать initramfs. |
trisch |
# |
Темы: 28 Сообщения: 119 Участник с: 26 августа 2012 |
Данный вариант помог, спасибо. |
jim945 |
# |
Темы: 8 Сообщения: 3069 Участник с: 25 января 2010 |
Что там тогда было сгенерировано и как, интересно))) Lupus pilum mutat, non mentem. |
0 Members and 1 Guest are viewing this topic.
16 February 2021, 20:13:02
I have installed Linux Artix on my Lenovo ThinkPad T520. I have used a mix of 3 Tutorials:
https://www.rohlix.eu/post/artix-linux-full-disk-encryption-with-uefi/
And a few informations from there:
https://wiki.artixlinux.org/Main/InstallationWithFullDiskEncryption
https://pastebin.com/z406J0RD
Why i used a few tutorials? Because i don’t want to encrypt GRUB2, too, so there is my partition table:
sda1 /boot/efi vfat ESP Partition |
sda2 /boot ext2 Here are my kernels |
sda3 LUKS Volume encrypted «volRoot» and «volSwap» |
But when i boot, GRUB2 appears and i can choose «Linux Artix». Then, after a few seconds that error appears:
ERROR: device 'UUID=11a020f6-...' not found. Skipping fsck.
mount: /new_root:can't find UUID=11a020f6-...
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off.
Here is my «/etc/mkinitcpio.conf»:
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev block autodetect modconf encrypt keyboard keymap lvm2 resume filesystems fsck)
And my «/etc/default/grub»:
GRUB_DEFAULT=0
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR="Linux Artix"
GRUB_CMDLINE_LINUX_DEFAULT="crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 splash"
GRUB_CMDLINE_LINUX=""
GRUB_DEVICE=/dev/ram0
GRUB_PRELOAD_MODULES="part_gpt part_msdos luks lvm lvm2 cryptodisk"
GRUB_ENABLE_CRYPTODISK=y
GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL_INPUT=console
GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
The commands to install both were:
pacman -S lvm2 cryptsetup linux mkinitcpio grub
mkinitcpio -p linux
grub-install --modules="linux crypto search_fs_uuid luks lvm" --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id="Linux Artix" --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
The mkinitcpio got a weird output:
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.10.16-artix1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: n5pf
==> WARNING: Possibly missing firmware for module: cxgb4
==> WARNING: Possibly missing firmware for module: qat_c3xxx
==> WARNING: Possibly missing firmware for module: qat_dh895xcc
==> WARNING: Possibly missing firmware for module: qat_c62x
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [lvm2]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.10.16-artix1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: isci
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: cxgb3
==> WARNING: Possibly missing firmware for module: cxgb4
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: advansys
==> WARNING: Possibly missing firmware for module: csiostor
==> WARNING: Possibly missing firmware for module: xhci_pci
==> WARNING: Possibly missing firmware for module: ums_eneub6250
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: n5pf
==> WARNING: Possibly missing firmware for module: qat_c3xxx
==> WARNING: Possibly missing firmware for module: qat_dh895xcc
==> WARNING: Possibly missing firmware for module: qat_c62x
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [lvm2]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
And i also install and add a lot of stuff into the rc-loader:
rc-update add device-mapper boot
rc-update add lvm boot
rc-update add dmcrypt boot
rc-update add dbus default
rc-update add elogind boot
rc-update add ntpd default
rc-update add acpid default
rc-update add syslog-ng default
An «ls -lha1 /boot/» (the /dev/sda2 partition) shows my kernel:
drwxr-xr-x 6 root root 4.0K Feb 15 23:05 .
drwxr-xr-x 17 root root 4.0K Feb 15 22:07 ..
drwxr-xr-x 4 root root 16K Jan 1 1970 efi
drwxr-xr-x 7 root root 4.0K Feb 17 12:24 grub
drwx------ 2 root root 16K Feb 15 18:31 lost+found
drwxr-xr-x 2 root root 4.0K Nov 30 01:28 memtest86+
-rw------- 1 root root 37M Feb 16 22:09 initramfs-linux-fallback.img
-rw------- 1 root root 19M Feb 16 22:08 initramfs-linux.img
-rw-r--r-- 1 root root 9.0M Feb 15 22:36 vmlinuz-linux
And there is the «/boot/grub/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
insmod luks
insmod lvm
insmod lvm2
insmod cryptodisk
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"
fiif [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fiexport 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
fifunction 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_gpt
insmod cryptodisk
insmod luks
insmod gcry_serpent
insmod gcry_serpent
insmod gcry_whirlpool
insmod lvm
insmod ext2
cryptomount -u 28197c4717804978bbce8c1223978774
set root='lvmid/T3omzk-9K1K-viYI-gqg8-cAjN-9koc-S7eLz3/iD8bRT-ERfH-XeuE-kmXv-5uxq-62tu-6cx0ea'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/T3omzk-9K1K-viYI-gqg8-cAjN-9koc-S7eLz3/iD8bRT-ERfH-XeuE-kmXv-5uxq-62tu-6cx0ea' 11a020f6-9765-478f-818d-904fa82e918f
else
search --no-floppy --fs-uuid --set=root 11a020f6-9765-478f-818d-904fa82e918f
fi
font="/usr/share/grub/unicode.pf2"
fiif loadfont $font ; then
set gfxmode=1920x1080
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=15
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=15
fi
### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/10_linux ###
menuentry 'Linux Artix Linux' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-/dev/ram0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//[email protected],gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
else
search --no-floppy --fs-uuid --set=root 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=11a020f6-9765-478f-818d-904fa82e918f rw crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 quiet splash
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Linux Artix Linux' $menuentry_id_option 'gnulinux-advanced-/dev/ram0' {
menuentry 'Linux Artix Linux, with Linux linux' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-/dev/ram0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//[email protected],gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
else
search --no-floppy --fs-uuid --set=root 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=11a020f6-9765-478f-818d-904fa82e918f rw crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 quiet splash
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Linux Artix Linux, with Linux linux (fallback initramfs)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-/dev/ram0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//[email protected],gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
else
search --no-floppy --fs-uuid --set=root 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=11a020f6-9765-478f-818d-904fa82e918f rw crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 quiet splash
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 ###
]I am out of ideas . I have searched a lot, the most was errors because of systemd … haha. Anyone got an idea or maybe can give me a hint?
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #1 – 16 February 2021, 22:13:45
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #2 – 17 February 2021, 17:20:37
And i have installed grub, it’s the fourth code- box in the first post.
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #3 – 18 February 2021, 23:57:46
The solution is here:
https://itectec.com/superuser/unable-to-find-root-device-on-a-fresh-archlinux-install/
You have in the «/etc/mkinitcpio.conf» something like that:
HOOKS="base udev autodetect block modconf filesystems keyboard fsck"
And THATS the reason why this can’t work. BLOCK has to be before AUTODETECT:
HOOKS="base udev block autodetect modconf filesystems keyboard fsck"
The treason why that works is in the link, currently we have midnight here and my brain didn’t work correctly.
The next one, it’s yust an optical setup:
if you have an error or issues with grub, disable the following option in «/etc/default/grub»:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
If you remove the parameter «quiet» GRUB2 will tell you a few more informations.
And still ONE Question: who can UPDATE the wiki:
https://wiki.artixlinux.org/Main/InstallationWithFullDiskEncryption
The UUID bug is still there.
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #4 – 02 March 2021, 11:22:31
It also mean that the kernel has boot ! So the problem is in your kernel parameter or your initramfs. Not in the grub install.
The Mkinitcpio is quite normal, it is normal to see a few «missing firmware» message.
Your mkinitcpio Hooks seems correct too but you might want to put the keyboard and keymap hooks before the encrypt one in order to input your password.
My hooks for my system (which is a bit similar) look like that :
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
I followed the arch wiki page about encrypting an entire file system, which is quite good.
I think the error is in GRUB_CMDLINE_LINUX_DEFAULT=»…»
It is a bad idea to specify disks and partition by their /dev/sdX terminology on static config !
Try something like :
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=11111111-1111-1111-1111:crypt_root root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 splash"
Where 11111111-1111-1111-1111 is the uuid of the sda3 luks volume.
You can find this information by typing «lsblk —fs»
You might want to post the output of this «lsblk —fs» command. It might be useful
ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #5 – 28 July 2021, 04:13:32
I tried following the instructions here:
https://forum.artixlinux.org/index.php/topic,2289.msg15645.html#post_msg15370
Namely, change the order of HOOKS in /etc/mkinitcpio.conf to
HOOKS=»base udev block autodetect modconf filesystems keyboard fsck»
then running
mkinitcpio -p linux
but it didn’t help.
Re: ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #6 – 29 July 2021, 13:07:29
$ lsblk -o NAME,FSTYPE,SIZE,UUID,PARTUUID
Then make sure you copied and pasted the correct UUID. UUID and PARTUUID are two different things.
If there is no UUID listed next to your partition, go with PARTUUID (PARTUUID=some-hexa-decimally-coded-partuuid)
Re: ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #7 – 29 July 2021, 20:06:03
I tried changing (/mnt)/etc/fstab to use PARTUUID’s anyway.
then typing
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg
as well as
grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg
since the plasma installed insisted I mount the boot partition at /boot/efi/
However, I still get the same error, which mentions the UUID rather than the PARTUUID, which suggests I need to run some other command to get into the changes I made to /etc/fstab into the bootloader.
Re: ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #8 – 30 July 2021, 11:34:44
since the plasma installed insisted I mount the boot partition at /boot/efi/
https://wiki.archlinux.org/title/EFI_system_partition#Typical_mount_points
plasma shouldn’t «insist» on EFI partition path, it has nothing to do with it. Most common is to have ESP in /boot. You should post your GRUB configuration file from /etc/default/grub, /etc/mkinitcpio.conf (use paste.artixlinux.org) and /etc/fstab. And maybe the output of the lsblk command I listed in my previous post.
Re: ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #9 – 31 July 2021, 03:15:13
plasma shouldn’t «insist» on EFI partition path, it has nothing to do with it.
Well the installer that came in artix-plasma-runit-20210426-x86_64.iso wouldn’t recognize the partition as a boot partition unless it was mounted at /boot/efi/
In any case here are the files:
/etc/default/grub,
GRUB_DEFAULT="0"
GRUB_TIMEOUT="3"
GRUB_DISTRIBUTOR="Artix"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="net.ifnames=0"# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT="5"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="1680x1050x8"
GRUB_GFXMODE="1024x768,800x600"# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
export GRUB_COLOR_NORMAL="light-blue/black"
export GRUB_COLOR_HIGHLIGHT="light-cyan/blue"# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME="/usr/share/grub/themes/artix/theme.txt"# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"GRUB_SAVEDEFAULT="true"
GRUB_DISABLE_LINUX_RECOVERY="true"
/etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=""# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS=(base)
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS=(base udev autodetect block filesystems)
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS=(base udev block filesystems)
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS=(base udev block mdadm encrypt filesystems)
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS=(base udev block lvm2 filesystems)
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev block autodetect modconf keyboard keymap filesystems fsck"# COMPRESSION
# Use this to compress the initramfs image. By default, zstd compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
/etc/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>
#UUID=a26f05dc-39bb-47f0-87bc-1e3211e7cbef / ext4 defaults,noatime 0 1
PARTUUID=293123a0-c715-d349-b142-91dd19d0169a / ext4 defaults,noatime 0 1
#UUID=E396-8A03 /boot/efi vfat umask=0077 0 2
PARTUUID=bd80e68a-3102-3347-9d43-773f14643b34 /boot/efi vfat umask=0077 0 2
#UUID=00b06fff-7ece-4c5a-b127-5fa34558e7ed /home ext4 defaults,noatime 0 2
PARTUUID=53b2ef46-a215-4e47-9894-06eb1ab8ba1a /home ext4 defaults,noatime 0 2
And maybe the output of the lsblk command I listed in my previous post.
artix-live:[root]:/home/artix# lsblk -o NAME,FSTYPE,SIZE,UUID,PARTUUID
NAME FSTYPE SIZE UUID PARTUUID
loop0 squashfs 57.1M
loop1 squashfs 1.2G
sda iso9660 115.4G 2021-04-26-01-53-54-00
├─sda1 iso9660 1.4G 2021-04-26-01-53-54-00
└─sda2 vfat 4M B92A-A588
nvme0n1 476.9G
├─nvme0n1p1 vfat 260M 86AB-E73F 679cf965-98b8-41fa-9ad5-781c0c90dc94
├─nvme0n1p2 16M 567e5c30-5ba1-4c89-aff2-d604c1a75685
├─nvme0n1p3 ntfs 237.8G E6A0AC77A0AC503B a111e5c0-acaa-489e-999a-b6daa89ce7dd
├─nvme0n1p4 ntfs 1000M 246AAD126AACE1B2 065c7b96-124c-494e-a6fe-88f879a8916f
├─nvme0n1p5 vfat 1G E396-8A03 bd80e68a-3102-3347-9d43-773f14643b34
├─nvme0n1p6 ext4 30G a26f05dc-39bb-47f0-87bc-1e3211e7cbef 293123a0-c715-d349-b142-91dd19d0169a
└─nvme0n1p7 ext4 206.8G 00b06fff-7ece-4c5a-b127-5fa34558e7ed 53b2ef46-a215-4e47-9894-06eb1ab8ba1a
Re: ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #10 – 01 August 2021, 20:58:51
For example (found by web search):
https://ubuntuforums.org/archive/index.php/t-2408864.html
3) Go to the «linux» line and, after
quiet splash, add the words
nvme_core.default_ps_max_latency_us=200 (see also https://askubuntu.com/questions/1099048/18-04-and-18-10-fail-to-boot-nvme0-failed-to-set-apst-feature-19). Then press Ctrl+X to boot with these new option included.
Also, check that your ESP has «boot» and «esp» flags. (parted -l /dev/nvme0n1 should list ESP as fat16 with boot,esp flags, and fdisk -l /dev/nvme0n1 should list its type as «EFI System».)
Well the installer that came in artix-plasma-runit-20210426-x86_64.iso wouldn’t recognize the partition as a boot partition unless it was mounted at /boot/efi/
The GUI installer’s name is calamares, and it is the same for all flavors of Artix. The only thing which differs among them is the initial package selection. So this problem definitely isn’t related to Plasma.
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #11 – 03 August 2021, 05:08:54
Re: ERROR: device UUID= not found. Skipping fsck. mount: /new_root: can’t find UUID
Reply #12 – 03 August 2021, 05:23:07
Also the calamares Artix Linux Installer doesn’t have ESP in the list of flags.
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #13 – 03 August 2021, 12:53:05
Next, you can set the flags manually using any partition software (man parted, man fdisk). When setting flags from Calamares, some people reported «boot» flag working as well:
Three year old issue closed last year:
https://github.com/calamares/calamares/issues/891
Two year old issue closed last year:
https://github.com/calamares/calamares/issues/1192
Don’t forget to also set up swap partition.
Re: GRUB: ERROR: device UUID= not found. Skipping fsck. & /new_root: can’t find UUID
Reply #14 – 04 August 2021, 03:39:25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Labels
bug
Something isn’t working
Comments
ERROR: device UUID=... not found. Skipping fsck.
mount: /new_root: can't find UUID=...
You are now being dropped into an emergency shell.
@BroderPeters thanks, I’ve installed arch linux a few times manually (with encrypted disk), I thought the point of the archinstall
was to automatically install a working system. I don’t understand why there is even the option of an encrypted installation if the OS doesn’t boot…
@BroderPeters thanks, I’ve installed arch linux a few times manually (with encrypted disk), I thought the point of the
archinstall
was to automatically install a working system. I don’t understand why there is even the option of an encrypted installation if the OS doesn’t boot…
Same thought, I was just glad I could profit from @jmattheis experience.
I’m facing the same issue on 1 of the two laptop which I have with me. I’ve tried both with both encryption and without encryption method, nothing worked on it.
On the other Laptop, archinstall script worked that too with encryption method.
So the issue looks mostly related to configuration where it tries to find out the root partition.
Which steps exactly helped to resolve this? Or was this a GRUB issue specifically? if so this is probably a duplicate of #586.
Because we do follow those guides for EFI boot (although some changes might have happened since I implemented it).
We do add the mkinitcpio hooks, and we do define cryptdevice in the boot parameters.
Torxed
added
the
bug
Something isn’t working
label
Oct 26, 2021
Torxed
added this to the
v2.3.0 milestone
Nov 6, 2021
This is now fixed thanks to #724 and tracked in #586 as well.
Labels
bug
Something isn’t working
Содержание
- Перестала загружаться система после переноса дисков в новый системник.
- How do I fix Manjaro error hibernation device not found on boot?
- 5 Answers 5
- Arch Linux
- #1 2013-07-23 11:50:25
- [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #2 2013-07-23 12:05:42
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #3 2013-07-23 12:07:30
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #4 2013-07-23 12:10:20
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #5 2013-07-23 14:58:06
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #6 2013-07-23 15:28:23
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #7 2013-07-23 15:42:08
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #8 2013-07-23 15:56:44
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- #9 2013-08-04 04:29:40
- Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
- Arch Linux
- #1 2008-10-14 14:43:58
- [SOLVED] Grub «DEVICE NOT FOUND»
Перестала загружаться система после переноса дисков в новый системник.
После перестановки диска с ОС в новую систему, линукс перестал грузится, примерно, с такой ошибкой:
диск с данным uuid существует, там находится ос линукс
был по новой сгенерирован mkinitcpio и переустановлен загрузчик, но это проблему не решило.
Вторая система типа виндовс загружается нормально.
В чем может быть проблема?
Мне кажется, мало просто «переустановить загрузчик», надо ещё и сгенерировать (или вручную) корректный grub.cfg
Если Вы всё это уже сделали-проверили, то так бы и написали, чтоб зря не гадать.
Проверяйте, каким именно устройством этот диск теперь является. Если он был sda1, то теперь он может быть sdb1 и, следовательно, uuid не соответствует устройству. bobart, grub.cfg я генерировал.
coffeewater, устройство свое имя не поменяло.
Еще при генерации конфига grub, появляется такая вот ошибка:
По поводу конкретно «can’t find a SQUASHFS superblock on. » посмотрите этот топик
https://bbs.archlinux.org/viewtopic.php?id=158231
И ещё, вывод этих двух команд:
Ничего не надо «генерировать», и бесполезно переустанавливать загрузчик.
UUID соответствует не устройству, а разделу, и он не мог измениться при перестановке диска в другую машину.
UUID также не зависит от порядка устройств, он специально для того и придуман.
А уже после загрузки выполнить под рутом чтобы пересобрать initramfs.
Natrio
Ничего не надо «генерировать», и бесполезно переустанавливать загрузчик.
UUID соответствует не устройству, а разделу, и он не мог измениться при перестановке диска в другую машину.
UUID также не зависит от порядка устройств, он специально для того и придуман.
А уже после загрузки выполнить под рутом чтобы пересобрать initramfs.
trisch
был по новой сгенерирован mkinitcpio и переустановлен загрузчик, но это проблему не решило.
Источник
Ноут HP с Intel 11 поколения, разбил диск на две части. При установке Win10 потребовалось подсунуть драйверы для ssd с буковками VMD, причем две штуки: для Интел и не для Интел (контроллер Интел, а диск нет). Манжаро ничего не попросил, вроде бы записал свои файлы на указанный раздел и установил загрузчик. После перезагрузки привычная зелёная картинка, Win10 спокойно запускается, а вот сам Манжаро ни в какую, пишет как в заголовке. Решил немного подождать и не торопиться. HP дважды обновил биос, Манжаро обновил ядро, а картина не изменилась. Попробовал Endeavour — такая же ошибка, попробовал MXLinux — он установился, но звука нет и непонятно, когда появится и где искать. Понял, что по-любому предстоят танцы с бубном, по-прежнему хотелось установить Манжаро, а значит надо бы где-то посмотреть основные движения.
Нашёл на другом форуме сообщение о том, как был установлен Arch на Lenovo, у которого тоже набор от Интел 11 поколения. Оказалось, нужно пересобрать загрузочные образы, сказав в процессе волшебное заклинание — vmd.
Загрузился с флешки, с которой устанавливал Манжаро, кликнул Файловую систему на рабочем столе, нашёл раздел, куда ставил Манжаро и убедился, что там есть все его папки и файлы. Запустил терминал (Ctrl-Alt-T) и далее
посмотрел, что /dev на котором Манжаро, называется nvme0n1p4, а его UUID совпадает с сообщением об ошибке.
Настало время основных движений танца:
создать в установленном на ssd Манжаро файл /etc/modules-load.d/customload.conf и вписать в него буквы vmd;
открыть у Манжаро файл /etc/mkinitcpio.conf и заменить MODULES=»» на MODULES=(vmd).
Всё это делается через sudo, а все папки с Манжаро на ssd уже доступны через файловый менеджер (ходил их смотреть), поэтому удобнее
и в файловом менеджере и редакторе Mousepad можно сделать всё необходимое. Повторю, эти файлы не на флешке, а на ssd среди установленных файлов Манжаро.
Теперь нужно организовать chroot — это стать во главе не флешки, а во главе системы на ssd, ведь для неё требуется пересобрать образы. Для начала нужно примонтировать (подключить) ту часть ssd, на котором файлы Манжаро (тот dev/nvme0n1p4) к своему текущему дереву каталогов. Я уже фактически их подключил, когда ходил смотреть, но лучше подключить куда рекомендуется (в /mnt) да ещё и с явным указанием названия /dev.
Сходил через Thunar в /mnt флешки и убедился, что все папки установленного на ssd Манжаро там появились. Чтобы сохранились связи и всё работало, нужно подключить, типа зазеркалить, основные системные папки. Чтобы меньше писать путей, сначала переход в папку /mnt на флешке
Новые образы успешно создались, загрузчик и был в порядке, поэтому обновлял лишь его конфигурацию
На удивление os-prober сообщил, что nvme0n1 ему неизвестен и он не нашёл ничего, кроме Манжаро. Неужели теперь Манжаро будет запускаться, а Windows10 нет? Выход из любого chroot и отключение примонтированного
Что-то отмонтировалось, а что-то ещё занято и не открепилось — ну и ладно. При перезагрузке привычного зелёного меню не было, ведь был найден только Манжаро, но он успешно запустился. Ещё раз обновление sudo update-grub уже из работающей с ssd системы и Windows10 была успешно найдена. Но os-prober опять ругнулся на то, что не знает nvme0n1, хотя увидел memtest, который он так и не подхватил. Мне стало интересно, что будет при обновлении ядра. Загрузил 5.12 и генерация образов прошла успешно, ведь волшебные буквы vmd на месте. Попробовал и Windows10, и 5.10, и 5.12 — всё загружается и звук есть. Теперь посмотрю, не собьют ли мне генерацию новых образов разработчики Манжаро, когда поправят этот момент по-своему.
Источник
How do I fix Manjaro error hibernation device not found on boot?
After installing updates and restarting I got these errors.
This is a less than a week old install I checked lvm and luks encryption on the graphical installer.
5 Answers 5
I keep having this problem in Arch Linux and Manjaro, when my Laptop runs out of battery while being in standby.
My solution in Arch is to run:
Under Manjaro you might have to figure out which kernel to use and then run the command adding the specific kernel-version (pick the higher number if two are available), also you might need to restarts until everything behaves normal again:
Btw, since the system is not booting anymore if you run into this issue, the fallback-boot in Arch/Manjaro usually helps to start the system in the first place. (if someone was wondering 😉 )
It seems mkinitcpio resets the boot-process without any side-effects. I would love to here a proper answer and explanation for the issue but for now I am happy to have found a solution.
mkinitcpio is a Bash script used to create an initial ramdisk environment.
Further readings:
Did you repartition your swap? If so, the UUID of the swap partition, which is used for hibernation, may have changed. Then this procedure may help.
Now cd /mnt so you can explore your filesystem. Run sudo blkid to find the UUID for your swap partition. If it’s not labelled, first use gparted to identify which partition is swap.
Comment out the old UUID from /etc/fstab/ and /etc/default/grub/ and underneath write a new line of code substituting in the new UUID. Editting the first file will tell your system where the swap directory lives. Editting the second file will suppress the error as it searches for the previous swap UUID.
Источник
Arch Linux
You are not logged in.
#1 2013-07-23 11:50:25
[SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
Hi,
I hope this is the right section of the forum.
When I boot my Arch desktop everything is norrmal until it displays this error message:
I can’t use a keyboard at this stage, I don’t know why.
From what I have read about other people who have had this problem is that they had a sudden loss of power before it happened. The few that I could find didn’t have solutions. I am almost certain that I shut my computer down, however during the night there was a power cut.
Thank you in advance for any help that you can offer
Last edited by nontlikeuname (2014-12-30 19:46:20)
#2 2013-07-23 12:05:42
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
I suspect you’ll need to boot into a live medium to do maintainance.
Once there, get copies of your bootloader config (what bootloader is it?) and your fstab, to start.
#3 2013-07-23 12:07:30
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
It looks as though you’ve either managed to create a initrd with no modules in it, or you’ve not generated an initrd for the current kernel. You could try the fallback initrd, but I imagine that will have the same problem.
Do you have a LiveCD/USB that you can use to chroot into the installation and re-run the mkinitcpio script?
Sakura:-
Mobo: MSI MEG B550 UNIFY // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
#4 2013-07-23 12:10:20
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
I am using grub. I will try booting into a live usb and see if i can get bootloader config files and fstab as well as running mkinitcpio. Thanks
#5 2013-07-23 14:58:06
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
I have run mkinitcpio and recieved no errors. I’m not exactly sure what it is meant to do or what it did do.
These are my grub config and fstab files.
#6 2013-07-23 15:28:23
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
Sorry, I assumed you knew about mkinitcpio. If you just call the script by itself, it just does a trial run. You should pass it the preset name that you want to use (usually named after the kernel). You seem to be using the default Arch kernel, so try running:
It should create two new initial ramdisks for you for that kernel, an optimised one with the modules that your system needs to boot, and a fallback one, with all the modules for your kernel. If there are any errors, post them here.
Sakura:-
Mobo: MSI MEG B550 UNIFY // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
#7 2013-07-23 15:42:08
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
Thank you for explaining, I ran:
I didn’t get any errors as such but I got 2 warnings.
It did manage to create initramfs-linux.img and initramfs-linux-fallback.img though which fixed the problem.
Thanks very much for your help.
Last edited by nontlikeuname (2013-07-23 15:43:49)
#8 2013-07-23 15:56:44
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
Those warnings can be ignored. As far as I know, they’re only relevant to embedded systems.
If you check /var/log/pacman.log, it may shed some light on why the problem occurred in the first place. Possibly an update got interrupted, or you just did the usr/bin move without holding back the bash package, and subsequently «/bin/bash» wasn’t present when the script was called. If this was the case, you may have other packages that also failed to run their associated install scripts.
Glad you got it sorted.
Sakura:-
Mobo: MSI MEG B550 UNIFY // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
#9 2013-08-04 04:29:40
Re: [SOLVED] ERROR: device ‘UUID=88a. 7c’ not found. Skipping fsck.
I’m having the same issue, but when I try to chroot from a live USB it complains about not being able to run /bin/zsh but I chsh to /bin/sh (and still get that error). So I ran mkinitcpio directly via chroot but then it complains that /proc isn’t mounted, which is true in the chroot’d environment.
Any idea? I really need to get my laptop working again. Thanks,
Headed for the second star to the right and straight on ’til morning.
Источник
Arch Linux
You are not logged in.
#1 2008-10-14 14:43:58
[SOLVED] Grub «DEVICE NOT FOUND»
I’m currently following the instructions here for installing linux on LVM.
Before I explain the problem, I want to mention that I have only 1 hard drive and it is 250GB. This device is /dev/sda.
I’m going to explain in *detail* how I came across the problem, and then I’ll explain the problem at the end. Here it goes:
1) Backed up everything on my existing Archlinux installation which was using regular paritions (Not LVM).
2) Restarted and booted from the Archlinux LiveCD.
3) I now was booted from the LiveCD and had a command line prompt.
4) From the command line, I went to fdisk /dev/sda
5) From the fdisk prompt, I used ‘d’ to delete all 4 partitions first
6) Then, I used «n» to create my first new partition. I set this to «primary» and gave it the number «1», which makes it /dev/sda1. It has 100MB of space. The partition type is «Linux», or 0x83.
7) Next, I used «n» to create my second new partition. I set this to «primary» and gave it the number «2». It consumes the rest of the hard drive space. The partition type is «Linux LVM», or 0x8e.
From this point forward I follow the instructions on the wiki article I linked at the top of my post. After going to /arch/setup, I successfully made it through steps 1-4. When I created my filesystems for «swap» and «root» in step 1, it saw my logical volumes! However, when I’m at step 5 (Setting up GRUB bootloader), it is failing.
Basically, I go straight to «step 5» and select «GRUB» (versus LILO). It then presents me with the GRUB configuration file and allows me to preview it before I continue. Below is what the file looks like:
Notice how /dev/sda isn’t in the «DEVICE NAME CONVERSIONS» table at the top of the file. Only ‘hda’ and ‘hdb’, and I have no idea what these devices are. I’ve never seen them before. Maybe it’s just an example? I thought it was auto-generated.
Anyway, the important information is at the bottom. Notice how it says «root DEVICE NOT FOUND». I tried manually changing this to «root (hd0,0)» and continuing, but still fails. /dev/tty5 reports (after the failure) that it is still trying to set «root DEVICE NOT FOUND», even though I explicitly changed it in the file before continuing.
After editing the file, it gives me the option of what device/partition I want to install GRUB to. The options are as follows:
I’m not sure why it is giving me «/dev/sda». I selected «/dev/sda1», since that’s the dedicated 100MB partition I made for GRUB.
The logical volumes I created are as follows:
/dev/mapper/vg01-root
/dev/mapper/vg01-swap
vg01/root is my 10GB logical volume created through LVM which will be the installation destination for «/» (root).
vg01/swap is the 2GB logical volume I created through LVM for my swap.
If you notice in the code snippet above, the swap partition isn’t utilized in the GRUB configuration. Is this normal? I thought there was supposed to be a «resume=/dev/mapper/vg01-swap» on the kernel line.
One last random note: the /boot directory is located on my /dev/mapper/vg01-root partition, versus the /dev/sda1 partition. I’m hoping that after GRUB stops being a pain in the ass that the files will be moved over by the installation process. I just want to make sure that /dev/sda1 is made the location for /boot. Why is /boot in my vg01-root partition?
Источник