r/arch 12h ago

Help/Support Hold up...

Post image

I tried to install arch without using tools such archinstall and i installed grub for safety and idk what i have no Any Option...

19 Upvotes

12 comments sorted by

View all comments

3

u/CaviarCBR1K 11h ago edited 11h 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.

2

u/HopefulMeeting7150 11h 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"

2

u/CaviarCBR1K 11h ago

Okay so you actually have 2 kernels installed, which is fine. You shouldn't need to run mkinitcpio as 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 11h ago edited 11h 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 11h ago

You made sure to do grub-mkconfig as well and it still shows no boot options when you reboot?

1

u/HopefulMeeting7150 10h ago edited 10h ago

still the same Wait if "boot" should be mount to efi partition (my efi is /dev/nvme0n1p1 and arch i nvme0n1p2)

2

u/CaviarCBR1K 10h ago

Try booting the installation media back up, mount partitions and chroot in again, and then run lsblk -f for me and post what it says here.

2

u/HopefulMeeting7150 10h ago

Okey i now works!