You are not logged in.

#1 2016-12-28 13:08:58

Higlav
Member
Registered: 2016-12-09
Posts: 39

[SOLVED] Bootloader doesn't work

Hello,

I thought I could do this. I installed Arch over 15 times in a VM with many variations until I found one, that worked fine.
My plan was to replace my Ubuntu on my Laptop with Arch during the small break between semester and exam period. My Laptop is an Acer Aspire V3-571G which has UEFI, an Intel core i7-3630QM and 8GB RAM.

The first thing I tried was the script I wrote over those 15 or so installations in a VM. It uses a DOS-partition table(sda1 for swap and sda2 for root) and grub. Well... it failed. To be more specific: The grub-installation failed at row 36:

[root@archiso /]# grub-install /dev/sda
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

So I added the "--target=i386-pc"-flag(just in case that might yield wonders) which resulted in grub installing "correctly". However, once rebooted, no bootloader was found.

I then gave up grub and moved on to going with the installation guide in the wiki. I tried GPT-partition table, EFI-partition(EF-type and fat32) mounting it on /boot on the root partition and installing the systemd-bootloader on it(yes, I also installed the mandatory "intel-ucode"-package). Installing works just fine but once rebooted, the boot entry "arch.conf" I wrote and referenced in "loader.conf" seems not to be found at all.

I have no idea what to do now and I really need advice.

Greetings

Higlav

Last edited by Higlav (2016-12-28 14:40:26)

Offline

#2 2016-12-28 13:31:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Bootloader doesn't work

You gave a lot of information about how you did this wrong.  It was easy to see what was wrong: you used commands for a virtualized bios system and tryed to do the exact same thing on different hardware with a uefi boot.  You even installed virtualbox-guest-additions on a bare metal system.  Don't just copy-paste a boatload of commands (even if they were yours) without thinking.  Follow the wiki step by step.

Of course it seems you acknowledged one of these problems and started again seemingly approaching this properly.  But you provided no real information about that installation.  So all we have here is that you think your arch.conf and loader.conf cannot be found.  What leads to this conclusion?  What did you put in those files?  What are the actual results/symptoms?

Note, others may appreciate it if you remove a majority of your post, or at least rearrange it to highlight that most of it is irrelevant.  I was reading through your installation commands and all those nice details you gave ... then I realized I wasted a bit of time going through that.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-12-28 14:40:05

Higlav
Member
Registered: 2016-12-09
Posts: 39

Re: [SOLVED] Bootloader doesn't work

Trilby wrote:

You even installed virtualbox-guest-additions on a bare metal system.

You can rest assured: I didn't install vbox-additions on the system - luckily I was wake enough not to do that. wink

Trilby wrote:

Of course it seems you acknowledged one of these problems and started again seemingly approaching this properly.  But you provided no real information about that installation.  So all we have here is that you think your arch.conf and loader.conf cannot be found.  What leads to this conclusion?  What did you put in those files?  What are the actual results/symptoms?

Yes, you're right. Let me just recreate the system.

Ok, I created 3 partitions with gdisk(chose GPT partition table):

  • sda1(type: EF00, 512M, label: boot)

  • sda2(type: 8200, 16G, label: swap)

  • sda3(type: 8300, 449.3G, label: arch)

I then formatted sda1 as fat32, sda2 as swap and sda3 as ext4.
Then I activated the swap, mounted sda2 to /mnt, appended the generated fstab to /mnt/etc/fstab, installed "base", "base-devel" and "vim" with the pacstrap script onto /mnt and "arch-chroot"ed into it.
After that I set a pw and a hostname,  configured localisation stuff, added user(+pw) and gave him via "visudo" root access(rather: I added root permission for the group wheel).
I mounted sda1 onto /boot, installed "intel-ucode" and "efibootmgr". After checking /boot I realized that this last installation wiped the /boot folder of the linux images which were placed there beforehand - so I reinstalled base and base-devel via pacman. Now everything I need is within /boot.
I then initiated the installation process of the systemd-bootloader via "bootctl --path=/boot install" which terminated successfully.
Now I altered the "/boot/loader/loader.conf" to:

default	arch
timeout	3
editor	0

And... Oh. I just realized what my mistake must have been. In the former installations, I wrote the arch-boot-entry in "/boot/loader/arch.conf" but I was supposed to write it into "/boot/loader/entries/arch.conf". Ok, maybe it'll work if I do this. Let's carry on...
Ok, I wrote the following into "/boot/loader/entries/arch.conf":

title	arch
linux	/vmlinuz-linux
initrd	/initramfs-linux.img
initrd	/intel-ucode.img
options	root=PARTUUID=<partuuid of sda3> rw

I added the partuuid via "blkid -s PARTUUID -o value /dev/sda3 >> /boot/loader/entries/arch.conf".
Ok, done. [CTRL]+[D] and reboot and... I am soooo stupid sometimes. Now it actually worked. big_smile It displays the boot entry and booting itself works just fine. I can login as the new user and it actually displays, what I intended it to display:

[alan@turing ~]$ 

Thank you, Trilby. If you hadn't insisted on more data I wouldn't have reinstalled it properly. And I was so sure that I wouldn't post a trivial-error post into the newbie section, but look where I am now. XD

Trilby wrote:

Note, others may appreciate it if you remove a majority of your post, or at least rearrange it to highlight that most of it is irrelevant.  I was reading through your installation commands and all those nice details you gave ... then I realized I wasted a bit of time going through that.

The post here in this thread or the script on pastebin? The pastebin one surely is longer than necessary, but I didn't think the thread post is that much to read, or is it?

Offline

#4 2016-12-28 15:01:24

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

Re: [SOLVED] Bootloader doesn't work

Higlav wrote:

I mounted sda1 onto /boot, installed "intel-ucode" and "efibootmgr". After checking /boot I realized that this last installation wiped the /boot folder of the linux images which were placed there beforehand - so I reinstalled base and base-devel via pacman. Now everything I need is within /boot.

You didn't wipe anything from the boot folder, you just mounted the EFI partition over the top of it. This is why you are meant to mount /boot before running the pacstrap command

Last edited by Slithery (2016-12-28 15:01:44)


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

#5 2016-12-28 15:56:41

Higlav
Member
Registered: 2016-12-09
Posts: 39

Re: [SOLVED] Bootloader doesn't work

Indeed, you're right. I thought of that later too. Thank you for clarifying, slithery.

Offline

Board footer

Powered by FluxBB