Not able to install bootloader

Starting job “bootloader” ( 38 / 44 )
2022-10-20 - 11:07:25 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
Job file “/usr/lib/calamares/modules/bootloader/main.py”
2022-10-20 - 11:07:25 [6]: [PYTHON JOB]: Found gettext “en” in “/usr/share/locale/en”
2022-10-20 - 11:07:25 [6]: … Job description from pretty_name “bootloader” = “Install bootloader.”
2022-10-20 - 11:07:25 [6]: [PYTHON JOB]: “Bootloader: grub (efi)”
2022-10-20 - 11:07:25 [6]: … Running (“grub-install”, “–target=x86_64-efi”, “–efi-directory=/boot/efi”, “–bootloader-id=endeavouros”, “–force”)
2022-10-20 - 11:07:27 [6]: … Target cmd: (“grub-install”, “–target=x86_64-efi”, “–efi-directory=/boot/efi”, “–bootloader-id=endeavouros”, “–force”) Exit code: 1 output:
Installing for x86_64-efi platform.
grub-install: error: cannot find a GRUB drive for /dev/sda3. Check your device.map.
2022-10-20 - 11:07:27 [2]: WARNING: [PYTHON JOB]: “Command ‘grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=endeavouros --force’ returned non-zero exit status 1.”
2022-10-20 - 11:07:27 [6]: [PYTHON JOB]: “stdout:Installing for x86_64-efi platform.\ngrub-install: error: cannot find a GRUB drive for /dev/sda3. Check your device.map.”
2022-10-20 - 11:07:27 [6]: [PYTHON JOB]: “stderr:None”
2022-10-20 - 11:07:27 [6]: virtual void Calamares::JobThread::run()
Skipping non-emergency job “eos_script”
2022-10-20 - 11:07:27 [6]: … Skipping non-emergency job “eos_script”
2022-10-20 - 11:07:27 [6]: … Skipping non-emergency job “services-systemd”
2022-10-20 - 11:07:27 [6]: … Skipping non-emergency job “Saving files for later …”
2022-10-20 - 11:07:27 [6]: … Skipping non-emergency job “copy logs and files from host to target”
2022-10-20 - 11:07:27 [6]: … Skipping non-emergency job “Unmount file systems.”
2022-10-20 - 11:07:27 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
ERROR: Installation failed: “Bootloader installation error”
2022-10-20 - 11:07:27 [6]: … - message: “Bootloader installation error”
2022-10-20 - 11:07:27 [6]: … - details: The bootloader could not be installed. The installation command

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=endeavouros --force
returned error code 1.

I’m not sure what to do, currently I have no OS installed

Please post the output of

efibootmgr -v

and

sudo parted -l

This might give some additional info to those able able to assist you on solving the issue.

Welcome to EnOS’ community @sandy_tatti and good luck!

:enos_flag: :handshake:t5:

efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2001,2002,0000,0002,2004
Boot0000* Notebook Hard Drive - TOSHIBA MQ01ABD100	BBS(HD,Notebook Hard Drive - TOSHIBA MQ01ABD100,0x500)feff00000000120000000000000001062d000be90200000519000be941000be900000002000000000000000000000000000000000000000000000000000000000018f76976110002010c00d041030a0000000001010600001203120a000000000000007fff0400
      dp: 05 01 31 00 02 00 00 05 4e 6f 74 65 62 6f 6f 6b 20 48 61 72 64 20 44 72 69 76 65 20 2d 20 54 4f 53 48 49 42 41 20 4d 51 30 31 41 42 44 31 30 30 00 / 7f ff 04 00
    data: fe ff 00 00 00 00 12 00 00 00 00 00 00 00 01 06 2d 00 0b e9 02 00 00 05 19 00 0b e9 41 00 0b e9 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 f7 69 76 11 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 12 03 12 0a 00 00 00 00 00 00 00 7f ff 04 00
Boot0001* USB Hard Drive (UEFI) - SanDisk Cruzer Blade (SanDisk Cruzer Blade)	PciRoot(0x0)/Pci(0x15,0x0)/USB(0,0)/HD(1,MBR,0x1e784590,0x36ad80,0x34000)RC
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 00 15 / 03 05 06 00 00 00 / 04 01 2a 00 01 00 00 00 80 ad 36 00 00 00 00 00 00 40 03 00 00 00 00 00 90 45 78 1e 00 00 00 00 00 00 00 00 00 00 00 00 01 01 / 7f ff 04 00
    data: 52 43
Boot0002* USB Hard Drive - SanDisk Cruzer Blade	BBS(7,USB Hard Drive - SanDisk Cruzer Blade,0x500)feff0000000015000000000000000c03000084e807000005000082e8000086e800000000000000000000000000000000000000000000000000000000000000000098072a76130002010c00d041030a000000000101060000150305060000007fff0400
      dp: 05 01 2e 00 07 00 00 05 55 53 42 20 48 61 72 64 20 44 72 69 76 65 20 2d 20 53 61 6e 44 69 73 6b 20 43 72 75 7a 65 72 20 42 6c 61 64 65 00 / 7f ff 04 00
    data: fe ff 00 00 00 00 15 00 00 00 00 00 00 00 0c 03 00 00 84 e8 07 00 00 05 00 00 82 e8 00 00 86 e8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 98 07 2a 76 13 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 15 03 05 06 00 00 00 7f ff 04 00
Boot2001* EFI USB Device	RC
      dp: 7f ff 04 00
    data: 52 43
Boot2002* EFI DVD/CDROM	RC
      dp: 7f ff 04 00
    data: 52 43

sudo parted -l
Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 578MB 101GB 100GB primary ext4
2 101GB 191GB 90.0GB primary ext4

Model: SanDisk Cruzer Blade (scsi)
Disk /dev/sdb: 4005MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
2 1835MB 1944MB 109MB primary fat16 esp

this is what I got

Your machine seems to support UEFI boot mode which you are currently using to boot your live USB.

In order to install your system in UEFI mode, you would need an ESP (EFI System Partition): FAT32 and 300 MiB.

This should be mounted at /boot/efi and flagged as boot in the installer.

I see your disk has msdos partition table. This is typically used for Legacy/MBR boot mode.

My suggestion would be, IF you don’t have any personal data on the disk you want to install EnOS on, then create a GUID Partition table on the disk.

:warning: Please note that this would wipe out the data on the disk.

If You have data on the disk, you could perhaps back it up on another storage medium.

If non of the above is possible. You would need to boot your live usb in Legacy/MBR mode and install it in the same mode. In this case you wouldn’t need an extra ESP. You just install the bootloader onto MBR of the disk /dev/sdX (where X could be a, b, c etc.) and not onto a particular partition.

If anything of the above is unclear and you have further questions, please post about it.

EDIT:

It is possible to make an UEFI install on a msdos disk as well, but booting in UEFI mode on a msdos disk should be supported by your system’s firmware.

See: https://wiki.archlinux.org/title/ESP#MBR_partitioned_disks

1 Like

Even After I did a reinstall, the problem still persists

sudo parted -l
Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      2097kB  317MB   315MB   fat32              boot, esp
 2      317MB   1000GB  1000GB  ext4         root

and still things don’t seem to work

Your disk scheme looks alright.

Same problem? Or something else?

After a failed install, could you use the log tool in the live session, and post some more info, specially the istalll.log.? It will give you an URL that you can post here.

Sorry, noob here.
How would you go about creating the ESP partition?

Would be better to keep your questions in the same thread.
It would be easier for those able to help to follow what has been said and done.