You are not logged in.

#1 2018-06-30 19:28:50

Sm1Th
Guest

Help with grub-install, cannot open device.map and failed to get

Hello.

I try install ArchLinux with official guide, but I get error during grub-install.

I have this layout:
/dev/sda1 EFI System
/dev/sda2 Linux root
/dev/sda3 Linux home
/dev/sda4 Linux swap

During installation, I wrote this commands:
mkfs.ext4 all /dev/sda without sda4
mkswap and swapon to sda4
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot

Should I have written mkdir /mnt/boot/efi and mount/dev/sda1 /mnt/boot/efi instead of those commands?

I install grub with pacman -S grub.

I get this:
cannot open /boot/grub/device.map
failed to get canonical path of /boot/efi

Thanks for help!

#2 2018-06-30 19:32:05

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Help with grub-install, cannot open device.map and failed to get

Welcome to the forums Sm1Th smile

Why did you format sda1 as ext4 instead of FAT?
https://wiki.archlinux.org/index.php/EF … _Partition


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-06-30 19:38:43

Sm1Th
Guest

Re: Help with grub-install, cannot open device.map and failed to get

Oh, I am idiot, I forgot on this.

Should I format all sda to fat instead of ext4?
What do you prefer?
I am prefering ext4, but I will share a few files with Windows, but I read somewhere, that ext4 has a better handling with partitions.

Do you think, that the wrong format is the problem or /boot/efi instead of only /boot too?

Sorry for my English, I am still learning it.

#4 2018-06-30 19:57:50

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Help with grub-install, cannot open device.map and failed to get

What do you want to use as the ESP /boot or /boot/efi ?

Offline

#5 2018-06-30 19:58:50

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Help with grub-install, cannot open device.map and failed to get

Only the EFI boot partition (sda1) should be formatted as FAT, ext4 is fine for the rest.

Mounting sda1 as /boot is correct (you can use /boot/efi but it makes things more complicated).


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB