You are not logged in.
Recently, I was trying to fix not being able to hybrid sleep by changing kernel parameters in my /etc/default/grub, and realized that in the past I had modified the boot config in GRUB customizer to not say "Loading Linux linux..." and "Loading initial ramdisk..."
So, I opened GRUB customizer and copied the new kernel options into the "linux" command, starting at "quiet splash"
Then, I rebooted, and the boot got stuck at this start job:
https://i.imgur.com/D9mh5u9.jpeg
By the way, the uuid in the error is my my root partition's uuid
Naturally, I thought that it was an issue with GRUB (which it still could be), so i chrooted in, and removed "/boot/EFI" and "/boot/grub".
Then, I re-installed GRUB by following https://wiki.archlinux.org/title/GRUB#GRUB_removal and https://wiki.archlinux.org/title/GRUB#Installation
This made no difference, it got stuck in the same part of the boot.
Could it be possible that this issue is not related to GRUB?
Also, I tried CTRL+ALT+DELETE at the error, and it just retried the boot.
Last edited by liaminventions (2023-08-29 20:15:28)
Offline
Reinstalling grub will not change kernel command-line you have defined in /etc/default/grub or /boot/grub/grub.cfg ( the later one should not be edited manually)
Please post your /etc/default/grub
Arch is home!
https://github.com/Docbroke
Offline
Here's my current /etc/default/grub:
# GRUB boot loader configuration
GRUB_DEFAULT="saved"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="0"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3 pci=nomsi clocksource=acpi_pm systemd.show_status=auto rd.udev.log_level=3 vt.global_cursor_default=0 i8042.nopnp=1 i8042.dumbkbd=1 resume=/dev/disk/by-uuid/133e9ba8-6e42-407b-a15a-38a8efb75cc6 resume_offset=25622528 ibt=off"
GRUB_CMDLINE_LINUX="rootfstype=ext4"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE="hidden"
# 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 `videoinfo'
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"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
GRUB_SAVEDEFAULT="true"
# Uncomment to disable submenus in boot menu
GRUB_DISABLE_SUBMENU="y"
# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER="false"
also, i had to chroot and put it on a usb stick, since i can't boot
Offline
by the way, i uninstalled grub-customizer, and it made no difference.
Offline
Your /etc/default/grub contains your old edits made using grub-customizer, it is in the line starting with "GRUB_CMDLINE_LINUX_DEFAULT="
Try removing edits you made followed by recreating grub config using
sudo grub-mkconfig -o /boot/grub/grub.cfg
Arch is home!
https://github.com/Docbroke
Offline
Your /etc/default/grub contains your old edits made using grub-customizer, it is in the line starting with "GRUB_CMDLINE_LINUX_DEFAULT="
I added those edits, it wasn't generated by grub-customizer
Try removing edits you made followed by recreating grub config using
sudo grub-mkconfig -o /boot/grub/grub.cfg
I already did that
Offline
This is way past grub, post the output of "lsblk -f" and cat "/mnt/etc/fstab" (assuming you're booting the iso)
Do not chroot, transcribe or post pictures; mount your root partition to /mnt (maybe first fsck it?) and then run
(lsblk -f; cat /mnt/etc/fstab) | curl -F 'f:1=<-' ix.io
Offline
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0 squashfs 4.0 0 100% /run/archiso/airootfs
sda
└─sda1 exfat 1.0 clip backup C8A1-8114 284.9M 100% /run/media
nvme0n1
├─nvme0n1p1 vfat FAT32 A4B7-0BEA
└─nvme0n1p2 ext4 1.0 133e9ba8-6e42-407b-a15a-38a8efb75cc6 3.6G 93% /mnt
"clip backup" was used to save the output of commands
cat "/mnt/etc/fstab"
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p2
UUID=133e9ba8-6e42-407b-a15a-38a8efb75cc6 / ext4 rw,relatime 0 1
# /dev/nvme0n1p1
UUID=A4B7-0BEA /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /swapfile
/swapfile none swap defaults 0 0
Do not chroot, transcribe or post pictures; mount your root partition to /mnt (maybe first fsck it?) and then run
(lsblk -f; cat /mnt/etc/fstab) | curl -F 'f:1=<-' ix.io
ran it.
Last edited by liaminventions (2023-08-27 19:13:39)
Offline
This would have gotten you a link w/ the above output, but whatever.
Did you fsck /dev/nvme0n1p1 ?
Which kernel is this (NOT! the iso kerne)? 6.4.11 ?
=> https://bbs.archlinux.org/viewtopic.php?id=288095
https://wiki.archlinux.org/title/Solid_ … leshooting
One last thing that sticks out: the drive is almost full, see whether there redundant stuff in eg. /mnt/var/cache
Offline
This would have gotten you a link w/ the above output, but whatever.
I think that ix.io is blocked by my router, the command gave no output
Which kernel is this (NOT! the iso kerne)? 6.4.11 ?
It's running "linux-zen 6.4.12.zen1-1", though I also have "linux 6.4.12.arch1-1" installed
https://wiki.archlinux.org/title/Solid_ … leshooting
thanks, i'll take a look at it once i can boot my pc
One last thing that sticks out: the drive is almost full, see whether there redundant stuff in eg. /mnt/var/cache
I know, it's full because it has a lot of files and software on it, soon I'll probably back up to my nextcloud server.
also I have a 12gb swapfile
Did you fsck /dev/nvme0n1p1 ?
I'll try that now
Last edited by liaminventions (2023-08-27 19:41:36)
Offline
fsck /dev/nvme0n1p2 returned
/dev/nvme0n1p2: clean, 2253522/15597568 files, 58315131/62383360 blocks
Offline
i'll take a look at it once i can boot my pc
If this precludes the nvme from showing up, you cannot postpone it…
Add
nvme_core.default_ps_max_latency_us=0 iommu=soft
to the kernel parameters.
Offline
added + updated grub, but it still gets stuck
new error though!
https://i.imgur.com/OqA9Jkq.jpg
but it won't let me get into the root account in emergency mode, probably because the root account is password protected
also, it seem weird that every entry in systemd is duplicated...
Last edited by liaminventions (2023-08-27 20:10:16)
Offline
from the iso mount the boot partiton and check "lsinitcpio /mnt/boot/initramfs-linux-zen.img | grep nvme", the modules might be missing
Post your mkinitcpio.conf
Offline
from the iso mount the boot partiton and check "lsinitcpio /mnt/boot/initramfs-linux-zen.img | grep nvme", the modules might be missing
returned
usr/lib/modules/6.4.12-zen1-1-zen/kernel/drivers/nvme/
usr/lib/modules/6.4.12-zen1-1-zen/kernel/drivers/nvme/common/
usr/lib/modules/6.4.12-zen1-1-zen/kernel/drivers/nvme/common/nvme-common.ko
usr/lib/modules/6.4.12-zen1-1-zen/kernel/drivers/nvme/host/
usr/lib/modules/6.4.12-zen1-1-zen/kernel/drivers/nvme/host/nvme-core.ko
usr/lib/modules/6.4.12-zen1-1-zen/kernel/drivers/nvme/host/nvme.ko
Post your mkinitcpio.conf
MODULES=(i915)
BINARIES=()
FILES=()
HOOKS=(base systemd plymouth autodetect keyboard sd-vconsole modconf block filesystems resume fsck)
Offline
Unlock the initramfs root, https://bbs.archlinux.org/viewtopic.php … 1#p2113821 so we can take a look at the booted system.
Offline
ok, I'm in the emergency shell
Offline
uname -a; cat /proc/cmdline; lsblk -f; lsmod | grep nvme
Offline
Linux archlinux 6.4.12-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 24 Aug
2023 00:37:46 +0000 x86_64 GNU/Linux
BOOT_IMAGE=vmlinuz-linux-zen root=UUID=133e9ba8-6e42-407b-a15a-38a8efb75cc6
rw rootfstype=ext4 quiet splash loglevel=3 pci=nomsi clocksource=acpi_pm
systend.show_status=auto rd.udev.log_level=3 vt-global_cursor_default=0
i8042.nopnp=1 i8042.dumbkbd=1 ibt=off nvme_core.default_ps_max_latency_us=0
iommu=softresume=/dev/disk/by-uuid/133e9ba8-6e42-407—a15a-38a8efb75cc6
resume_offset=25622528
sh: lsblk: not found
I think there may be a space missing between iommu=soft and resume, ill go fix that in the grub config
Offline
that didn't fix it
also, now the start job has no limit again, so i can't get into the recovery shell anymore
Last edited by liaminventions (2023-08-27 20:58:14)
Offline
The mistake killed the resume parameter, why aren't you using "resume=UUID=133e9ba8-6e42-407—a15a-38a8efb75cc6" btw?
And test to remove that (and the offset) altogether.
Offline
Without resume and resume offset it still has the issue, but at least the time limit is back.
However, for some reason I can't unlock the root account now
Offline
Did you somehow rebuild the initramfs?
While at it, also add the lsblk binary.
Offline
Did you somehow rebuild the initramfs?
I did, but I copied /usr/lib/initcpio/install/systemd to /etc/initcpio/install and removed the * at line 144 it before rebuilding
While at it, also add the lsblk binary.
added it to mkinitcpio.conf.
still can't unlock the root account, is there anything else that keeps it locked other then the /etc/initcpio/install/systemd script?
by the way, I rebuild the initrd with mkinitcpio -P
Last edited by liaminventions (2023-08-28 14:00:40)
Offline
The crucial part is etc/shadow and whether that still has 'root::::::::'
You could lsinitpio -x the image and look at the file
Offline