You are not logged in.

#1 2020-09-17 11:22:28

rahulgoel
Member
Registered: 2020-09-17
Posts: 4

[SOLVED] Grub loading as command line

First of all I'd like to tell that I have read the wiki, browsed all the forums and attempted at installing Arch 5 times before asking this question. This is the first time I have tried to install Arch.

I have got everything installed alright. But grub loads in command line mode. I have not forgotten to generate the config file for grub. It is there at /boot/grub/grub.cfg .

I have 4 partitions on my hard drive.
/dev/sda1 - EFI Partition for the bootloader
/dev/sda2 - ext4 partition for /
/dev/sda3 - extr partition for /home
/dev/sda4 - linuxswap parition

I have tried to install and re-install Arch and Grub(by doing chroot) several times already but each and everytime Grub loads in command line.

I'd be glad if someone could help be figure this out.


Currently I am figuring out how to uplod the grub.conf file to the internet via some command line pastebin like services. I'll post it when I figure it out. It would be nice if someone can tell that too.

EDIT - SOLVED. APPARENTLY DUE TO SOME PROBLEM THE LINUX KERNEL WAS NOT INSTALLING.

Last edited by rahulgoel (2020-09-17 12:11:22)

Offline

#2 2020-09-17 11:51:45

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: [SOLVED] Grub loading as command line

You need to mount your EFI/ESP partition on /boot/efi/ before install grub and create a grub.cfg. here is what I do, other people may do it different. And I would suggest efi/esp partition in the end of the disk, not the beginning.

mkdir /boot/efi
mount /dev/EFIPAT /boot/efi/
pacman -S grub
pacman -S efibootmgr 
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub-efi
grub-mkconfig -o /boot/grub/grub.cfg

Offline

Board footer

Powered by FluxBB