Skip to main content
added output of fdisk -l /dev/sda due to request
Source Link
joseph
  • 113
  • 1
  • 1
  • 6

Backstory: I backed up windows 10 and restarted my laptop on a boot drive loaded with the Arch linux iso that was created with Rufus. I entered cfdisk and deleted all partitions except for the "EFI System" and the "Lenovo boot partition" partitions. When I tried to install the base packages with pacstrap, it told me that the partition block size was too small so I expanded the EFI System partition upwards (There was a gigabyte of extra space and I thought that might help). It didn't work and a while later I tried remounting my linux file system (/dev/sda4) and it worked. I skipped over a bunch of other steps I took, but I thought these would be most relevant.

Whenever I try to run the command to install grub:

grub-install --target=x86_64-efi --efi-directory=/dev/sda1 --bootloader=arch_grub

It just outputs:

Installing for x86_64-efi platform.
grub-install: error: cannot read `/dev': Is a directory.

Even though the path I'm giving it is the efi partition (/dev/sda1). I've tried giving it /boot for the efi directory parameter, but if I try that, it just outputs:

Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.

I'm fairly new to these 'do-it-yourself' type of distributions and I would appreciate all the feedback I can get, thanks!

Edit: Output of fdisk -l /dev/sda:

Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type gpt
Disk identifier: 6393AD85-37EA-4C44-888C-C5908FC9AE82

Device        Start        End   Sectors  Size Type
/dev/sda1      2048    2582527   2580480  1.2G EFI System
/dev/sda2   2582528    4630527   2048000 1000M Lenovo boot partition
/dev/sda3   4630528   25602047  20971520   10G Linux swap
/dev/sda4  25602048 2550069646 224467599  107G Linux filesystem

Backstory: I backed up windows 10 and restarted my laptop on a boot drive loaded with the Arch linux iso that was created with Rufus. I entered cfdisk and deleted all partitions except for the "EFI System" and the "Lenovo boot partition" partitions. When I tried to install the base packages with pacstrap, it told me that the partition block size was too small so I expanded the EFI System partition upwards (There was a gigabyte of extra space and I thought that might help). It didn't work and a while later I tried remounting my linux file system (/dev/sda4) and it worked. I skipped over a bunch of other steps I took, but I thought these would be most relevant.

Whenever I try to run the command to install grub:

grub-install --target=x86_64-efi --efi-directory=/dev/sda1 --bootloader=arch_grub

It just outputs:

Installing for x86_64-efi platform.
grub-install: error: cannot read `/dev': Is a directory.

Even though the path I'm giving it is the efi partition (/dev/sda1). I've tried giving it /boot for the efi directory parameter, but if I try that, it just outputs:

Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.

I'm fairly new to these 'do-it-yourself' type of distributions and I would appreciate all the feedback I can get, thanks!

Backstory: I backed up windows 10 and restarted my laptop on a boot drive loaded with the Arch linux iso that was created with Rufus. I entered cfdisk and deleted all partitions except for the "EFI System" and the "Lenovo boot partition" partitions. When I tried to install the base packages with pacstrap, it told me that the partition block size was too small so I expanded the EFI System partition upwards (There was a gigabyte of extra space and I thought that might help). It didn't work and a while later I tried remounting my linux file system (/dev/sda4) and it worked. I skipped over a bunch of other steps I took, but I thought these would be most relevant.

Whenever I try to run the command to install grub:

grub-install --target=x86_64-efi --efi-directory=/dev/sda1 --bootloader=arch_grub

It just outputs:

Installing for x86_64-efi platform.
grub-install: error: cannot read `/dev': Is a directory.

Even though the path I'm giving it is the efi partition (/dev/sda1). I've tried giving it /boot for the efi directory parameter, but if I try that, it just outputs:

Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.

I'm fairly new to these 'do-it-yourself' type of distributions and I would appreciate all the feedback I can get, thanks!

Edit: Output of fdisk -l /dev/sda:

Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type gpt
Disk identifier: 6393AD85-37EA-4C44-888C-C5908FC9AE82

Device        Start        End   Sectors  Size Type
/dev/sda1      2048    2582527   2580480  1.2G EFI System
/dev/sda2   2582528    4630527   2048000 1000M Lenovo boot partition
/dev/sda3   4630528   25602047  20971520   10G Linux swap
/dev/sda4  25602048 2550069646 224467599  107G Linux filesystem
Source Link
joseph
  • 113
  • 1
  • 1
  • 6

Can't install grub in Arch Linux

Backstory: I backed up windows 10 and restarted my laptop on a boot drive loaded with the Arch linux iso that was created with Rufus. I entered cfdisk and deleted all partitions except for the "EFI System" and the "Lenovo boot partition" partitions. When I tried to install the base packages with pacstrap, it told me that the partition block size was too small so I expanded the EFI System partition upwards (There was a gigabyte of extra space and I thought that might help). It didn't work and a while later I tried remounting my linux file system (/dev/sda4) and it worked. I skipped over a bunch of other steps I took, but I thought these would be most relevant.

Whenever I try to run the command to install grub:

grub-install --target=x86_64-efi --efi-directory=/dev/sda1 --bootloader=arch_grub

It just outputs:

Installing for x86_64-efi platform.
grub-install: error: cannot read `/dev': Is a directory.

Even though the path I'm giving it is the efi partition (/dev/sda1). I've tried giving it /boot for the efi directory parameter, but if I try that, it just outputs:

Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.

I'm fairly new to these 'do-it-yourself' type of distributions and I would appreciate all the feedback I can get, thanks!