Skip to content

Trouble installing grub. Got error: "grub-install: error: cannot read '/etc/udev' : Is a directory.". What went wrong?

Not downloaded yet
8 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
8 · 100% up
Kind
Image
ID
64omp0

Author

8
posts
30
comments
2
media
View profile

10 comments

When running grub-install (while chrooted into your target OS) you need to set your efi directory to the file system mount point of the ESP (usually /boot).

It's included in the instructions for grub installation on the Arch wiki, though it's easy to skip over if you're not looking carefully.

"First, tell GRUB to use UEFI, set the boot directory and set the bootloader ID. Mount the ESP partition to e.g. /boot or /boot/efi and in the following change esp_mount to that mount point (usually /boot)"

Edit: said "installing grub", changed it to "running grub-install"

3 points

My partition info:

  • /dev/sda1/ 500MB FAT32 for EFI. Mounted on /mnt/boot/
  • /dev/sda2/ 20GB EXT4 for root. Mounted on /mnt/
  • /dev/sda3/ 20GB EXT4 for home. Mounted on /mnt/home/

So my understanding is:

  1. mount /dev/sda1/ to /mnt/boot
  2. run grub-install with --efi-directory=/mnt/boot

But it didn't work. Am I understand things wrong?

1 points

Bootloader should be installed from inside chrooted environment.

As it exposed by bash prompt, you tried to do it from iso-based environment. It's obviously shouldn't work.

Installation guide implies that after arch-chroot you will continue installation process in chrooted environment.

1 points

I've been using using arch-chroot since the guide ask me to (after running pacstrap), and didn't get out of it. After reading your comment, I tried arch-chroot again, and it prints "command not found"

1 points

My partition info (if it's necessary):

  • /dev/sda1/ 500MB FAT32 for EFI. Mounted on /mnt/boot/
  • /dev/sda2/ 20GB EXT4 for root. Mounted on /mnt/
  • /dev/sda3/ 20GB EXT4 for home. Mounted on /mnt/home/
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.