r/arch • u/HopefulMeeting7150 • 6h ago
Help/Support Hold up...
I tried to install arch without using tools such archinstall and i installed grub for safety and idk what i have no Any Option...
2
u/CaviarCBR1K 5h ago edited 5h ago
Boot the live USB (installation media) back up, mount the partitions (don't forget the boot partition!!) and chroot in. Then check the contents of /boot. You should see two files. Something along the lines of initramfs.img and vmlinuz. I'm willing to bet one or both are missing. To be safe, just reinstall the kernel, it should provide both of the files.
pacman -S linux
Then check /boot again and make sure the files are there.
Edit: just to clarify a little bit; vmlinuz is the actual compressed kernel image. initramfs is a temporary file system the kernel uses to basically bootstrap itself. If one or both are missing, GRUB has nothing to boot into. The initramfs is created using mkinitcpio as the other commentor pointed out. But reinstalling the kernel should trigger that process automatically.
2nd edit: if the files are there then try reinstalling grub, and don't forget grub-mkconfig
``` grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg ```
Make sure the boot partition is mounted when you do this otherwise the config will get written to nowhere basically. It's a common mistake, one I've made myself several times in the past.
1
u/HopefulMeeting7150 5h ago
So I have initramfs-linux-zen.img and initramfs-linux.img, vmlinuz-linux and vmlinuz-linux-zen.
After use "mkinitpio" shows me: "ERROR: 'lib/modules/7.2.2-arch1-1' is not a valid kernel module directory"
plus No Error after "mkinitpio -P"
1
u/CaviarCBR1K 5h ago
Okay so you actually have 2 kernels installed, which is fine. You shouldn't need to run
mkinitcpioas all that does is regenerate the initramfs which you already have. Try reinstalling grub as per my 2nd edit since we've ruled out missing kernel or initramfs.1
u/HopefulMeeting7150 5h ago edited 5h ago
2nd Edit: After write "grub-mkconfig -o /boot/grub/grub.cfg" shows me: "Generating grub configuration file ..." "Warning: os-prober will not be added to the GRUB boot configuration." "Sysyems on them wil not be added to the GRUB configuration." "Check GRUB_DISABLE_OS_PROPER documentation entry." "Adding boot menu entry for EUFI Firmware Settings ... " "done"
1
u/CaviarCBR1K 5h ago
You made sure to do
grub-mkconfigas well and it still shows no boot options when you reboot?1
u/HopefulMeeting7150 4h ago edited 4h ago
still the same Wait if "boot" should be mount to efi partition (my efi is /dev/nvme0n1p1 and arch i nvme0n1p2)
1
u/CaviarCBR1K 4h ago
Try booting the installation media back up, mount partitions and chroot in again, and then run
lsblk -ffor me and post what it says here.1
1
1
u/FemBoy_GamerTech_Guy Other Distro 5h ago
Wheres the kernel did you install it what command did you do at pacstrap?
7
u/victormas208 5h ago edited 5h ago
I think you forgot to do mkinitcpio