You are not logged in.

#1 2020-01-06 17:07:20

yoric
Member
Registered: 2020-01-06
Posts: 4

[SOLVED] Not booting: Arch install with Systemd bootloader

Installation of Arch Linux :

  • on a Virtual Machine

  • with GUID Partition Table (GPT) format

  • Systemd bootloader

  • without swap partition (for simplification)

I'm sorry to post yet another post about an Arch install not booting.
I tried like 10 times to install Arch with reading the awesome Arch wiki guide, plus some other guides, and can't figure out what's wrong.

I recorded a video of my installation here.

Here are my step by step installation:

01/ Setting up a VIrtual Machine with 4 GB RAM and 20 GB HD

----------------------------------------------------

02/ Checking the network is working

----------------------------------------------------

ping www.google.com

OK

03/ Partitioning the disk

----------------------------------------------------

fdisk -l
cgdisk /dev/sda

/dev/sda1 with EFI type (ef00), 200M
/dev/sda2 with Linux type (8300), 19 GB

mkfs.vfat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
04/ Mounting volumes

----------------------------------------------------

mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
05/ Installing minimal packages

----------------------------------------------------

pacstrap /mnt base linux linux-firmware

genfstab -U /mnt >> /mnt/etc/fstab
06- Setting locale and Time

----------------------------------------------------

arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
pacman -S vim
vim /etc/locale.gen
locale-gen
07- Additional packages

----------------------------------------------------

pacman -S base-devel tree
08- Root Password and new user

----------------------------------------------------

passwd
useradd -m -g users -G wheel -s /bin/bash ym
passwd ym

echo archbox >> /etc/hostname
09/ Installing

----------------------------------------------------

bootctl --path=/boot install
10/ Setting up the /boot volume

----------------------------------------------------

vim /boot/loader/loader.conf

default arch

vim /boot/loader/entries/arch.conf

title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=
:r !blkid

tree /boot

|-- EFI
| . |-- BOOT
| . | . -- BOOTX64.EFI
|   |-- Linux 
| . |-- systemd
| .     -- systemd-bootx64.efi
|-- initramfs-linux-fallback.img
|-- initramfs-linux.img
|-- loader
| . |-- entries
|   | .  -- arch.conf
| . |-- loader.conf
|   |-- random-seed
|-- vmlinuz-linux
exit
umount -R /mnt
reboot
11/ Not Booting :'((

----------------------------------------------------

Last edited by yoric (2020-01-07 00:49:49)

Offline

#2 2020-01-06 17:11:53

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

Which VM solution and host OS are you using?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-01-06 17:27:28

yoric
Member
Registered: 2020-01-06
Posts: 4

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

I'm using Parallel, on MacOS Catalina.

Offline

#4 2020-01-06 17:28:07

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

yoric wrote:

options root=PARTUUID=
:r !blkid

I presume the last line was a command from vim? If so then it would print the entire blkid output, which wouldn't work.

You should post the actual contents of the file (and the output of blkid).

EDIT: OSX? I'm out... tongue

Last edited by Head_on_a_Stick (2020-01-06 17:28:51)

Offline

#5 2020-01-06 17:31:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

yoric wrote:
11/ Not Booting :'((

What does that mean, exactly? There are a lot of points where it could fail, just saying it doesn't boot doesn't tell us anything.

Offline

#6 2020-01-06 18:36:02

yoric
Member
Registered: 2020-01-06
Posts: 4

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

Head_on_a_Stick wrote:

I presume the last line was a command from vim?

Yes I run the "blkid" command from vim to get the PARTUUID from sda2, then discard the rest of the content.

Content of loader.conf:

cat /boot/loader/loader.conf
arch

Content of arch.conf:

cat /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=7abc0ad7-3cb3-445b-976e-bf0923098778 rw
Scimmia wrote:

What does that mean, exactly?

I wish I have more details about what's going wrong during boot time.
I am only getting this line on the screen, and nothing else happens:

Trying to boot from Primary Master IDE drive ...

Last edited by yoric (2020-01-06 19:06:15)

Offline

#7 2020-01-06 19:00:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

That sounds like it's trying to boot BIOS, not UEFI

Offline

#8 2020-01-06 20:14:58

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

Scimmia wrote:

That sounds like it's trying to boot BIOS, not UEFI

Correct. The output of the bootctl install command quite clearly states as much.

@yoric - This is why users are asked to post all commands and their full outputs. By doing so you probably would have noticed the problem yourself.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2020-01-07 00:44:14

yoric
Member
Registered: 2020-01-06
Posts: 4

Re: [SOLVED] Not booting: Arch install with Systemd bootloader

Slithery wrote:
Scimmia wrote:

That sounds like it's trying to boot BIOS, not UEFI

Correct. The output of the bootctl install command quite clearly states as much.

@yoric - This is why users are asked to post all commands and their full outputs. By doing so you probably would have noticed the problem yourself.

Thanks a Ton, @Scimmia and @Slithery for pointing exactly what was wrong!

Yes, I overlooked the output of the bootctl command, stating: Not booted with EFI, skipping EFI variable setup.

As a newbie I wasn't aware of this possibility to boot the machine either in BIOS, or in EFI mode.
So little I knew that in order to install an EFI system, you have to boot from EFI for installation already.

This thread helped me to understand that, as I faced exactly the same problem.

In the specific case of my VM program (Parallels Desktop), I had to change the settings located in "Hardware --> Boot Order --> Advanced settings --> BIOS --> EFI 64-bit"

https://i.postimg.cc/d1S8zyPL/Screen-Sh … -36-AM.png

I installed all once again,
Now, the bootctl command output this line instead: Created EFI boot entry "Linux Boot Manager"

and... it's booting like magic !

https://i.postimg.cc/5yVzzdzS/Screen-Sh … -02-AM.png

Thank you all for your help, I didn't expect so many answers so fast. it's amazing to have such a wonderful community, I couldn't make it without you!

Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code

Last edited by Slithery (2020-01-07 00:51:12)

Offline

Board footer

Powered by FluxBB