You are not logged in.
my try is :
cfdisk /dev/sda
mkfs.ext4 /dev/sda2
mkswap /dev/sda1
mount /dev/sda2 /mnt
swapon /dev/sda1
pacstrap -i /mnt base linux linux-firmware nano
after that i have choose 1 default for mkinitcpio
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
pacman -S grub efibootmgr
but i do not exactly know the next step: how i can configure the grub-install step:
# grub-install --target=x86_64-efi --bootloader=GRUB --efi-directory=/efi --removable
gave me error back...
last step is:
mkconfig -o /mnt /boot/grub/grub.conf
thanx
Offline
If you are installing in BIOS mode then your grub-install command is incorrect.
If you are installing in UEFI mode then you also need an EFI partition configured.
Offline
If it's UEFI, you need an EFI System Partition with a filesystem that the firmware can read (FAT32).
Offline
grub-install --target=x86_64-efi --bootloader=GRUB --efi-directory=/efi --removable
This says: "install on this 64-bit UEFI machine the bootloader GRUB in the /efi directory"
So, where's the ESP (EFI system partition)? We need to know if you computer uses BIOS or UEFI.
Solo soy un loco más. Please use [code] [/code] tags.
Command cheatsheet ♠ Command not found?
If I write something wrong in English, please correct me.
Online
Wait I could've swore Ext is usually for a bios boot, EFI has to be fat format, does it not? that may be the issue, but from what you said you did, you didn't mount a boot partition at all, bios is /mnt/boot for EFI it's /mnt/efi or /mnt/boot/efi you need at least 2 partitions, either a Bios,MBR,Xbootldr or EFI partition and a root, also if your doing it for Bios systems, you need Grub Legacy, the grub you got an error from is actually Grub2 which is EFI, if you have more than 16g of ram you really shouldn't need an actual swap partition, and if performance suffers you can make a Swapfile in place of a swap partition anytime and don't have to reinstall everything to make one or remove one either, and finally if you want a swap on the root, you need to read up on LVM volumes or BTRFS to make subvolumes.
Last edited by BlackarchNet (2022-04-30 02:48:57)
-King Mặsặdặ
KingDotNet
"Hail to the one, Kneel to the crown, Hail to the King"
Offline
bios is /mnt/boot for EFI it's /mnt/efi or /mnt/boot/efi you need at least 2 partitions, either a Bios,MBR,Xbootldr or EFI partition and a root, also if your doing it for Bios systems, you need Grub Legacy, the grub you got an error from is actually Grub2 which is EFI.
None of that is strictly correct.
For a BIOS system a separate boot partition isn't needed, a single root partition is fine.
For a UEFI system you can use /mnt/boot for the EFI partition when installing.
Grub2 supports both BIOS and UEFI systems.
Offline
BlackarchNet wrote:bios is /mnt/boot for EFI it's /mnt/efi or /mnt/boot/efi you need at least 2 partitions, either a Bios,MBR,Xbootldr or EFI partition and a root, also if your doing it for Bios systems, you need Grub Legacy, the grub you got an error from is actually Grub2 which is EFI.
None of that is strictly correct.
For a BIOS system a separate boot partition isn't needed, a single root partition is fine.
For a UEFI system you can use /mnt/boot for the EFI partition when installing.
Grub2 supports both BIOS and UEFI systems.
My mistake, I thought Bios was Ext2-4 at EFI was Fat16-32, and I knew you can mount a efi as boot, i usually have Xboot as the Boot Partition for recovery and EFI as efi that Grub or Refind goes on, and just format them both as fat32, thanks for correcting me, I only thought Isos can be a single partition, interesting, thanks for the info.
Last edited by BlackarchNet (2022-04-30 03:05:16)
-King Mặsặdặ
KingDotNet
"Hail to the one, Kneel to the crown, Hail to the King"
Offline
I wish someone would update the fn wiki, cuz it still says Grub isn't fully compatible with Luks2 either, which is also not the case anymore.
Sure it is, and it explains exactly how.
Offline
BlackarchNet wrote:I wish someone would update the fn wiki, cuz it still says Grub isn't fully compatible with Luks2 either, which is also not the case anymore.
Sure it is, and it explains exactly how.
I'm lost, are you saying it Luks2 isn't compatible or agreeing that it is?
-King Mặsặdặ
KingDotNet
"Hail to the one, Kneel to the crown, Hail to the King"
Offline
I'm saying the wiki is right
Offline