grub-install /dev/sda failed during installation

Bug #1869278 reported by Juan Ignacio Bernard
10
This bug affects 2 people
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/automatically_partition/question]
ProcVersionSignature: Ubuntu 5.3.0-28.30~18.04.1-generic 5.3.13
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=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash ---
LiveMediaBuild: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
ProcEnviron:
 LANGUAGE=es_AR.UTF-8
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_AR.UTF-8
 LC_NUMERIC=C.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Juan Ignacio Bernard (narduant) wrote :
affects: ubuntu → grub-installer (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

The details in the installer syslog show:

Mar 26 23:53:05 ubuntu grub-installer: Instalando para plataforma x86_64-efi.
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/efi/EFI/ubuntu/grubx64.efi»: Error de entrada/salida.
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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub-installer (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.