You are not logged in.
So, this is a bit of a mess and some negligence on my part.
I'm running Linux zen as my main kernel. I have standard Linux as my back-up kernel. I installed using the archinstall script from the standard ISO. I did select disk encryption when setting my system up, again, through the archinstall script. I was updating my system last night on my laptop. I'd forgotten to bring my power cable with me, but figured it would be fine. There were just a bunch of Haskell upgrades as far as I could see. However, it started to generate DKMS modules from a kernel upgrade I'd missed. This is quite CPU intensive and drained my laptop's battery very quickly. It attempted to hibernate. When I got home and got it on power again I received the message:
loading Linux linux-zen
error file '/vmlinuz-linux-zen' not found
loading initial ramdisk
error you need to load the kernel firstI then attempted to boot into an Arch USB disk following the instruction from the wiki using the latest 2022.08.05 iso. I used rufus 3.20 from my Windows gaming computer to write the disk. I can boot the install medium. I just can't figure out what to do from there. The wiki's pacman article that I'm chasing down for help states to run:
mount /mnt
mount /mnt/bootThen to chroot using
arch-chrootHowever I can not mount /mnt. It returns
mount: /mnt: can't find in /etc/fstab.I attempted to mount the partitions intermediately instead with mount returning some variation of
mount: /dev/sda1: can't find in /etc/sda1Running
lsblk -freturns the drive I'm attempting to mount however, I still can not mount any of the partitions listed there. I attempted to mount via UUID. I receive a variation of the same message.
mount: <UUID>: can't find mount source UUID="UUID" in /etc/fstab.I've also attempted to use systemd-mount to get into the drive with similar results.
systemd-mount /mnt
invalid file type: /mntAttempting to mount /dev/sda1 is successful however I still can not mount /mnt to run arch-chroot. Nor can I figure out how to get into /dev/sda1 to ensure that the points I'm looking for (/mnt and /mnt/boot) exist.
I'm at a bit of dead end with my own knowledge at this point. I would very much appreciate any help that can be offered to get this system up and running again. I'll be happy to provide anymore details you may require to that end. Thanks.
Last edited by Bilskirnir3124 (2022-09-01 04:44:21)
Offline
man mount
Seriously, you skipped learning anything about your system by using archinstall, and now you're paying for it. Start reading man pages and the wiki (even the installation guide), figure out how partitions work.
Offline
man mount
Seriously, you skipped learning anything about your system by using archinstall, and now you're paying for it. Start reading man pages and the wiki (even the installation guide), figure out how partitions work.
I've manually installed Arch before. I just didn't feel like taking the extra time to manually type out all of the commands this time. That said, I haven't had to use the mount command in quite some time and was incorrectly targeting it. I'll fully own being an intermediate user. The problem is the disk encryption as near as I can tell. Running
mount /dev/sda2 /mntreturns
mount: /mnt: unknown filesystem type 'crypto_LUKS'.Attempting
cryptsetup open --type luks /dev/sda1 crypto_LUKSallows me to unlock the drive, but I can not then mount it.
I understand there are some gaps in my knowledge. I just need to know what they are so that I can fill them in and get this computer running again. I'd like to know how to fix these problems so that I don't have to resort to, "let's nuke this install and start over," in the future.
Thanks for the help.
Offline
When you open the container, it should create block devices under /dev/mapper/. That's what you need to mount.
Offline
When you open the container, it should create block devices under /dev/mapper/. That's what you need to mount.
Thanks. I'll take a stab at that and report back.
Offline
So, I was able to get into the drive. I was able to run arch-chroot afterwards as well. However, this did not resolve the issue.
I ran
arch-chroot /mnt
pacman -Syu mkinitcpio systemd linux linux-zenIt ran pacman and installed everything successfully.
I then ran
exit
umount /mnt/boot
rebootWhen attempting to reboot however, it returned
loading Linux linux-zen
error file '/vmlinuz-linux-zen' not found
loading initial ramdisk
error you need to load the kernel firstand
loading Linux linux
error file '/vmlinuz-linux' not found
loading initial ramdisk
error you need to load the kernel firstI am unsure how to proceed from here.
Offline
It sounds like your /boot partition wasn't mounted when you reinstalled them.
Offline
It sounds like your /boot partition wasn't mounted when you reinstalled them.
So, I went back and made sure that I arch-chroot into /mnt/boot. I ran it again. I also reinstalled nvidia-dkms again just to make make sure I had a working graphics driver module. Still no luck. I'm not sure if maybe it isn't a grub problem at this point.
Offline
With the same error? Does the file actually exist on root of the boot partition?
Offline
So, I went back and made sure that I arch-chroot into /mnt/boot.
Is this a typo or did you really do this? You want to make sure your root partition is mounted at /mnt and your boot partition is mounted at /mnt/boot and then arch-chroot into /mnt.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
With the same error? Does the file actually exist on root of the boot partition?
It appears so. When I arch-chroot into /mnt/boot on /dev/sda2 and run
pacman -Qs linuxI see linux 5.19.5.arch1-1, linux-api-headers 5.19.5.arch1-1, linux-zen 5.19.5.arch1-1, and linux-zen-headers 5.19.5.arch1-1 installed. I don't know that this means they're installed in root though. Everything it returns is listed in the form local/{packagename}.
Edited for clarity.
Last edited by Bilskirnir3124 (2022-09-01 04:05:21)
Offline
Bilskirnir3124 wrote:So, I went back and made sure that I arch-chroot into /mnt/boot.
Is this a typo or did you really do this? You want to make sure your root partition is mounted at /mnt and your boot partition is mounted at /mnt/boot and then arch-chroot into /mnt.
I did not see this reply. Sorry. I did do it that way. Thanks for letting me know about that. I'll do it like that and see if I can get in that way. Thanks.
Offline
CFR, this fixed it. Thank you very much for the help. I'll doubtless need to clean up whatever damage I did flailing around in chroot, but I can get back into the desktop again. Thanks again for the help.
Offline