You are not logged in.
Pages: 1
I am trying to install grub and I didn't physically made a partition for EFI stuff, here's my partition (I erased windows stuff since I just want to have arch as an os):
sda1 143M Linux filesystem
sda2 14G Linux root (x86-64)
sda3 915G Linux home
sda4 2-4G Linux swap
I have also installed succesfully grub using:
pacstrap /mnt grub-bios
pacstrap /mnt efibootmgr
but I cannot install grub:
# grub-install /dev/sda
Installing for x86_64-efi platform
grub-install: error: cannot find EFI directory
or if I do:
grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=grub --recheck
Installing for x86_64-efi platform
grub-install: error: failed to get canonical path of `'.
Last edited by Thorvald (2015-12-31 19:57:44)
Offline
I didn't physically made a partition for EFI stuff
I'm quite sure that's your problem.
You can't install bootloader on UEFI if EFI partition doesn't exist.
please use [code] tags when posting code
Offline
And, EFI requires that the EFI partition be FAT. (Well, not exactly true, but you cannot use typical Linux filesystems such as ext for your EFI partition)
Last edited by ewaller (2015-12-31 21:04:22)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
In addition, "$esp" must be replaced with the full path to the mountpoint of the EFISYS partition.
It seems pretty obvious from your post that you haven't read through the Beginner's Guide:
https://wiki.archlinux.org/index.php/Beginners'_guide
I would strongly recommend using that rather than whichever YouTube video or LifeHacker guide you are following currently ![]()
Jin, Jîyan, Azadî
Offline
So what's the best option? Reboot the system and start all over again?
Offline
If everything else is in order in your installation, there's no reason to reinstall.
Just create a new EFI system partition (if you can allocate disk space for it), and install the bootloader as usual.
Offline
So I started again fresh following the guide at https://wiki.archlinux.org/index.php/Beginners%27_guide.
I am stuck in the step:
UEFI/GPT
# bootctl install
File system "/boot" is not a FAT EFI System partition (ESP) file system
I know somewhere is ESP, because I made it in step UEFI/GPT examples
(parted) mkpart ESP fat32 1MiB 513MiB
(parted) set 1 boot on
So what's the catch here? (I also installed intel-ucode but didn't enable microcode updates, because I need grub for it...)
Last edited by Thorvald (2015-12-31 22:11:03)
Offline
So what's the catch here?
You need to format the partition with a FAT(32) filesystem.
In your defence, parted's output isn't exactly a model of crystal clarity
Jin, Jîyan, Azadî
Offline
This should be done in the command
(parted) mkpart ESP fat32 1MiB 513MiBright??? It gives vfat format, how do I modify it?
Offline
Alright, neither
# mkfs.fat -F32 /dev/sda1changes to fat32 if I check the filesystem using cfdisk, it still gives vfat
Last edited by Thorvald (2016-01-01 02:57:57)
Offline
To the kernel FAT 12/16/32 are all "vfat". Also FAT32 is not strictly required, your UEFI will be okay with either of those if it's SANE enough.
Offline
I don't know, the laptop is new so I think everything should be fine with the hardware.
I'm doing it all over again, perhaps it is the step
Copy any other configuration files to the new system in /mnt (such as netctl profiles in /etc/netctl), then chroot to it:
I just execute the command that follows, I don't know if I have to do something in this step
Offline
It worked, for now. I think the whole problem was that before I did
# arch-chroot /mnt and then did the rest of the install
Last edited by Thorvald (2016-01-01 14:33:58)
Offline
Pages: 1