You are not logged in.
I did a system update and after a reboot I wasn't able to boot, getting an error loading vmlinuz-linux not found.
Then I booted arch from a USB
I tried
```
mount /dev/sda1 /mnt
mount /dev/sda6 /mnt/boot
arch-chroot /mnt
```
But I got chroot: failed to run command ‘/bin/bash’: No such file or directory
I tried running pacstrap and all but it failed while downloading one of those utilities, please help me
Last edited by Undied (2024-04-08 16:15:01)
Offline
What's actually on sda1?
Offline
/dev/sda1 contains my boot/EFI partition which is 260MB
/dev/sda6 contains the old arch data
Offline
...then why would you mount sda1 at /mnt? Maybe see https://wiki.archlinux.org/title/Instal … le_systems ?
Offline
Now I get zstd no space left error when trying pacman -S linux even though I tried deleting a lot of files using chroot
Last edited by Undied (2024-04-03 02:19:00)
Offline
@Scimmia this probably happened because of my last unsuccessful attempt, my boot folder now has bash BOOT dev EFI etc proc run sys tmp var vmlinuz-linux folders, which one are to be removed? And should they be removed with rm -rf?
Offline
you're getting the no space error because of when you tried to run pacstrap on that partition, it filled it up completely. Keep the EFI dir, delete the other dirs but not files.
Offline
@Scimmia delete every other folder than EFI using rm - rf? Also could you please confirm by doing ls on your EFI sda
Last edited by Undied (2024-04-03 02:32:55)
Offline
you're getting the no space error because of when you tried to run pacstrap on that partition, it filled it up completely. Keep the EFI dir, delete the other dirs but not files.
A few folders were mounted by me with
$ mount -t proc proc /mnt/proc
$ mount -t sysfs sys /mnt sys
$ mount -o bind /dev /mnt/dev
$ mount -t devpts pts /mnt/dev/pts
How would I unmount those?
Offline
@Scimmia a small update, the initcpio image successfully generated by running pacman -S linux but when I boot grub still cannot find `/vmlinuz-linux`
Here is a full sequence of what I did
mount /dev/sda6 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt
pacman -S linux
Result: Initcpio: image generation successful
EDIT: I find that pacman -S linux created a /boot/vmlinuz-linux but grub searches for /vmlinuz-linux how can I fix that?
Last edited by Undied (2024-04-03 11:32:03)
Offline
Hello, anyone??
Offline
Don't do that: https://wiki.archlinux.org/title/Genera … es#Bumping
GRUB looking for a /vmlinuz-linux would be correct assuming it's properly installed and also looking for images that are present on the ESP (the path is from the "root" of the partition, which would be /vmlinuz-linux if everything is installed to the ESP partition). Post your /boot/grub/grub.cfg (and for completeness sake, unmount /boot afterwards and check the contents of /boot
ls -lR /boot
Last edited by V1del (2024-04-04 09:03:22)
Offline
@V1del it looks like I had a grub update and after that update grub told me to re run grub-install and make a new config file which I apparently missed, I redid that and grub now found /boot/vmlinuz-linux but even after that grub tells me the kernel is not loaded
Offline
That will have broken things in the other direction. Make up your mind on where you want your kernel images to live. If on the ESP mount the ESP to /boot and then reinstall GRUB and regenerate the config and make sure to add the ESP to the fstab so it keeps getting mounted to /boot.
Last edited by V1del (2024-04-04 10:35:40)
Offline
I did reinstall grub to /boot when I ran the grub-install, there's no worry about that, should I reinstall the kernel?
Last edited by Undied (2024-04-04 11:06:50)
Offline
Probably/maybe post that ls command I asked for earlier as well as
file /boot/vmlinuz-linux
Offline
@V1del the reason I had to reinstall grub was because there was no /boot/grub/grub.cfg which I believe broke with my grub v2 update so the config should be the raw one generated by running grub mk config and here are the images you requested
ls -lR boot
https://media.discordapp.net/attachment … 72c5f456d&
https://media.discordapp.net/attachment … 1b25a8886&
And the file output
https://media.discordapp.net/attachment … 84e0e4d64&
https://media.discordapp.net/attachment … cf3522881&
Last edited by Undied (2024-04-04 15:21:41)
Offline
Please also share the content of /boot/grub/grub.cfg — use a pastebin client to share text. Don't link to pictures of text.
"Austerity is the idea that the global financial crash of 2008 was caused by there being too many libraries in Wolverhampton."
— Alexei Sayle
Offline
Please also share the content of /boot/grub/grub.cfg — use a pastebin client to share text. Don't link to pictures of text.
Here is the pastebin of grub config:
https://sprunge.us/vp612r
Offline
@Head_on_a_Stick I reran pacman -S linux and even though initcpio generates image successfully checking a bit up I see zstd-compressed cannot write because no space is left in /dev/sda1 here are the contents, which should be deleted?
Here are the contents in /boot
http://sprunge.us/0GxskN
Offline
Well you certainly don't need /boot/BOOT/. Also remove "$RECYCLE.BIN", "System Volume Information" & initramfs-linux.img.tmp.
"Austerity is the idea that the global financial crash of 2008 was caused by there being too many libraries in Wolverhampton."
— Alexei Sayle
Offline
Well you certainly don't need /boot/BOOT/. Also remove "$RECYCLE.BIN", "System Volume Information" & initramfs-linux.img.tmp.
Ah no lol I panicked a bit the first time around and did a pacstrap on /dev/sda1 which I first mounted at boot, that's what broke everything and iirc /boot/BOOT contains BOOT.sdi and rest may be needed by windows so I won't be touching them
Any idea on what files pacstrap actually creates so that I can delete them?
Last edited by Undied (2024-04-06 03:39:31)
Offline
The pacstrap command installs whichever packages are passed to it as arguments.
Doesn't look like any are installed though. Have you tried https://archlinux.org/packages/extra/x86_64/ncdu/ to see what is taking the space? Use it from a live ISO on a mounted partition.
"Austerity is the idea that the global financial crash of 2008 was caused by there being too many libraries in Wolverhampton."
— Alexei Sayle
Offline
@Head_on_a_Stick looks like the fallback image takes up a lot of space, what do I do?
Offline
Either remove the fallback preset from /etc/mkinitcpio.d/linux.preset (and delete the fallback image itself) or remove the kms hook and instead add your video driver(s) to the MODULES array (and regenerate the initramfs).
"Austerity is the idea that the global financial crash of 2008 was caused by there being too many libraries in Wolverhampton."
— Alexei Sayle
Offline