LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 01-20-2021, 10:24 AM   #1
rpeasal
LQ Newbie
 
Registered: Jan 2021
Posts: 4

Rep: Reputation: Disabled
Default Boot Device Missing or Boot Failed


I’m trying to install Arch on an Acer Aspire ES15 computer with UEFI (secure boot disabled), on which I changed the HD to an SSD and I had dual boot with Windows. I went basically by the installation guide on the Arch website.

I used fdisk. I first entered g to make a gpt table. I then made three partitions:
sda1: type 1 (EFI) 500M
sda2: type 19 (swap) 8G
sda3: type 20 (Linux file system) the rest of the drive (more than 200G)

I then ran:
Code:
mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/sda3

mount /dev/sda3 /mnt
swapon /dev/sda2
mkdir -p /mnt/boot/EFI
mount /dev/sda1 /mnt/boot/EFI
mkdir /mnt/etc
I generated the fstab and then continued with the Arch installation guide.

I used grub for the bootloader. I ran:
Code:
pacman -S grub efibootmgr mtools dosfstools os-prober
grub-install /dev/sda --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=grub_uefi
grub-mkconfig -o /boot/grub/grub.cfg
Instead of reboot I ran
Code:
shutdown now
so I could remove the usb before I restarted the computer.

On boot, I got:

Quote:
Default Boot Device Missing or Boot Failed.
Insert Recovery Media and Hit any key
Then Select ‘Boot Manager’ to choose a new Boot Device or to Boot Recovery Media
Doing some checking, I found that there is a good grub.cfg file in /boot/grub

I ran efibootmgr and found the bootloader id grub_efi is defined as 0001, but that number does NOT appear in the boot order. I tried changing the boot order with
Code:
efibootmgr -o 0000,0001,2001,2002,2003
and
Code:
efibootmgr -O -o 0000,0001,2001,2002,2003
But changes to efibootmgr, including boot order, don’t persist. After reboot the original boot order is again restored.

I found that there is a directory /boot/EFI that is empty.

I have no idea how to get this installation to boot.
 
Old 01-20-2021, 03:41 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Is there an option somewhere in the bios to select windows/other? Select other if it exist.
post the output of
Code:
parted -l
 
Old 01-21-2021, 05:52 AM   #3
rpeasal
LQ Newbie
 
Registered: Jan 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for taking the time to respond.

I also posted this problem on the Arch website forum and got an answer. When I came back to this website yesterday to edit my post, the post wasn't up yet. I'm a new user and apparently my posts need to be approved before the are actually posted.

Anyway, the solution was pretty simple. In the command
Code:
grub-install /dev/sda --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=grub_uefi
I just needed to add
Code:
--removable
I have no idea why this is necessary or why it solved the problem, but it did.
 
Old 01-21-2021, 06:11 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Some efi systems require at least one drive with /EFI/boot/bootx64.efi on an efi partition for the system to be considered bootable. The —removable option creates the boot directory if it doesn’t exist, and copies the grubx64.efi to it and renames it to bootx64.efi

Last edited by colorpurple21859; 01-21-2021 at 06:34 AM.
 
1 members found this post helpful.
Old 01-21-2021, 06:22 AM   #5
rpeasal
LQ Newbie
 
Registered: Jan 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the info!
 
  


Reply

Tags
efi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Default boot device missing or boot failed" error (resolved) anon045 Linux - Newbie 3 02-09-2019 02:39 PM
[SOLVED] "default boot device missing or boot failed" error bniblet Linux - Newbie 11 03-12-2017 10:21 AM
"Default Boot Device Missing or Boot Failed" Error Message LarryHale Linux - Laptop and Netbook 1 03-24-2016 08:43 PM
Default boot device missing Myrmy Linux - Newbie 4 06-22-2015 03:15 PM
Port:0x180 failed (device not found ) Port:0 failed (device not found ) aaliya Linux - Hardware 0 10-05-2006 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration