grub-install /dev/sda failed during installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub-installer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm trying to install Ubuntu 18.04.4 LTS (downloaded it yesterday) on my laptop so I could dual boot with Windows 10 (already installed) and in the process I got the message: "The execution of «grub-install /dev/sda» failed. This is a fatal error.
This is my first time reporting a bug or problem on this website, I don't know what information should I add. Hope you can help me.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubiquity 18.04.14.14 [modified: lib/partman/
ProcVersionSign
Uname: Linux 5.3.0-28-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
CasperVersion: 1.394.3
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 26 20:55:23 2020
InstallCmdLine: BOOT_IMAGE=
LiveMediaBuild: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
XDG_RUNTIME_
LANG=es_AR.UTF-8
LC_NUMERIC=C.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ubuntu → grub-installer (Ubuntu) |
The details in the installer syslog show:
Mar 26 23:53:05 ubuntu grub-installer: Instalando para plataforma x86_64-efi. efi/EFI/ ubuntu/ grubx64. efi»: Error de entrada/salida.
Mar 26 23:53:06 ubuntu kernel: [ 6272.712620] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
Mar 26 23:53:16 ubuntu grub-installer: grub-install: error: no se puede abrir «/boot/
Mar 26 23:53:16 ubuntu kernel: [ 6282.150719] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
Mar 26 23:53:16 ubuntu grub-installer: error: Running 'grub-install --force "/dev/sda"' failed.
It looks like the installation failed because your EFI System Partition, /dev/sda1, which is a FAT filesystem shared between Windows and Ubuntu, has corruption. You can try rebooting to Windows and making sure you shut the system down cleanly, then try to reinstall, and see if that fixes the problem. Or, from the Ubuntu live environment, you can try running these commands from a shell:
sudo umount /boot/efi
sudo fsck.vfat /dev/sda1
sudo mount /boot/efi
and then retry the installation to see if it succeeds.
The 'fsck.vfat' command may ask you for permission to make changes to the filesystem to correct the errors that it finds. Please note that, depending on the nature of the corruption it detects, this has the potential to make your Windows system unbootable afterwards.