You are not logged in.

#1 2016-09-13 16:08:25

DxDxD
Member
Registered: 2016-09-13
Posts: 7

[SOLVED] Linux-ck systemd-boot dual boot

Hello, I have the following problem. I tried to edit my /boot/loader/entries/arch.conf in the following way:

title ARCH
linux /vmlinuz-linux-ck
initrd /intel-ucode.img
initrd /initramfs-linux-ck.img
options root=/dev/sda7

Those changes doesn't seem to affect my boot configuration. I've got triple boot with Windows 10, Ubuntu and Arch, which is named Arch Linux, not ARCH as stated above, which seems to me that this file is not loaded by systemd-boot.

I feel a little lost and failed to find any tutorial regarding linux-ck and systemd and systemd-boot archwiki page doesn't seem to help either. Any help would be appreciated, thanks in advance.

Last edited by DxDxD (2016-09-16 00:40:25)

Offline

#2 2016-09-13 16:15:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [SOLVED] Linux-ck systemd-boot dual boot

Welcome to the Arch Linux forums.
As a sanity check, is your boot partition mounted on /boot ?
What are the output of mount and of (as root) fdisk -l   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-09-13 19:24:15

DxDxD
Member
Registered: 2016-09-13
Posts: 7

Re: [SOLVED] Linux-ck systemd-boot dual boot

Output of mount:

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=1977080k,nr_inodes=494270,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda7 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sda8 on /home type ext4 (rw,relatime,data=ordered)

/dev/sda2 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=396136k,mode=700,uid=1000,gid=100)

Output of fdisk -l

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 7DE49BA0-488B-4086-995F-565A05CCF05F

Device         Start        End   Sectors   Size Type
/dev/sda1       2048     616447    614400   300M Windows recovery environment

/dev/sda2     616448     821247    204800   100M EFI System

/dev/sda3     821248    1083391    262144   128M Microsoft reserved
/dev/sda4    1083392  613480447 612397056   292G Microsoft basic data
/dev/sda5  613480448  614402047    921600   450M Windows recovery environment
/dev/sda6  614402048  615450623   1048576   512M Linux swap
/dev/sda7  615450624  657393663  41943040    20G Linux filesystem
/dev/sda8  657393664  867108863 209715200   100G Linux filesystem
/dev/sda9  867108864 1257734143 390625280 186.3G Linux filesystem

PS. Thanks for kind welcoming, how to put fragments of code in bold for better readability?

Offline

#4 2016-09-14 07:10:16

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

Re: [SOLVED] Linux-ck systemd-boot dual boot

DxDxD wrote:

Those changes doesn't seem to affect my boot configuration. I've got triple boot with Windows 10, Ubuntu and Arch, which is named Arch Linux, not ARCH as stated above, which seems to me that this file is not loaded by systemd-boot

The output of this command will show which .efi loader is being booted:

# efibootmgr -v

Offline

#5 2016-09-15 09:40:47

DxDxD
Member
Registered: 2016-09-13
Posts: 7

Re: [SOLVED] Linux-ck systemd-boot dual boot

Output of efibootmgr, though I can't see anything about loader folder in the 4th line.

BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0005,0001,0003,2003,2001,2002
Boot0001* Linux Boot Manager	HD(2,GPT,a09234b9-90d7-4d1f-b121-d10e06298b33,0x96800,0x32000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0002* EFI Network 0 for IPv4 (20-1A-06-A8-EA-FF) 	PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(201a06a8eaff,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)RC
Boot0003* Windows Boot Manager	HD(2,GPT,a09234b9-90d7-4d1f-b121-d10e06298b33,0x96800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...e................
Boot0004* EFI Network 0 for IPv6 (20-1A-06-A8-EA-FF) 	PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(201a06a8eaff,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0005* ubuntu	HD(2,GPT,a09234b9-90d7-4d1f-b121-d10e06298b33,0x96800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

Offline

#6 2016-09-15 11:31:57

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] Linux-ck systemd-boot dual boot

Have you followed the wiki on systemd boot correctly? I am not dual booting, so your mileage may vary, but here are my files for booting the linux-ck kernel. Use my files just as a reference; always follow the wiki when it comes to things like this.

Partition scheme:

[jbs@dmb-gaming-laptop ~]$ sudo parted /dev/sda print
Model: ATA ST500LM012 HN-M5 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  538MB   537MB   fat32                 boot, esp
 2      538MB   22.0GB  21.5GB  ext4
 3      22.0GB  26.3GB  4295MB  linux-swap(v1)
 4      26.3GB  500GB   474GB   ext4

[jbs@dmb-gaming-laptop ~]$ 

# 1 is /boot
# 2 is /root
# 3 is my swap
# 4 is /home

/boot/loader/loader.conf

[jbs@dmb-gaming-laptop ~]$ cat /boot/loader/loader.conf 
default linux-ck
[jbs@dmb-gaming-laptop ~]$ 

The above just makes the linux-ck kernel boot by default

/boot/loader/entries/linux-ck.conf

[jbs@dmb-gaming-laptop ~]$ cat /boot/loader/entries/linux-ck.conf 
title   Linux-CK - Piledriver 
linux   /vmlinuz-linux-ck
initrd  /initramfs-linux-ck.img
options root=PARTUUID=39279624-a066-4237-a38a-0ffda604cc07 rw elevator=bfq
[jbs@dmb-gaming-laptop ~]$ 

Note that in this case, I am using BFQ and the partition UUID for my /root, /dev/sda2. I also have the read/write flag for the drive. I'm not sure if you have to use UUID's or the read/write flag, but because you are using a label without the read/write flag that might be causing issues?? Don't quote me on that part. However, the much more likely scenario is if you're pretty sure your files are not being updated, they aren't. You have to do this manually with bootctl like so:

[jbs@dmb-gaming-laptop ~]$ sudo bootctl update
[sudo] password for jbs: 
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
[jbs@dmb-gaming-laptop ~]$ 

And thats it! I'm not entirely sure why you're having issues. If your only issue was the files not being updated, remember to bootctl update as root. smile


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#7 2016-09-15 21:15:34

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

Re: [SOLVED] Linux-ck systemd-boot dual boot

DxDxD wrote:
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0005,0001,0003,2003,2001,2002

-[snip]-

Boot0005* ubuntu	HD(2,GPT,a09234b9-90d7-4d1f-b121-d10e06298b33,0x96800,0x32000)/File(\EFI\ubuntu\shimx64.efi)

Looks like Ubuntu is currently "in charge" of the boot process.

Your Arch system appears to be Boot0001 and seems to be set to boot second.

Try:

# efibootmgr -o 1,5,3

Last edited by Head_on_a_Stick (2016-09-15 21:16:09)

Offline

#8 2016-09-16 00:39:08

DxDxD
Member
Registered: 2016-09-13
Posts: 7

Re: [SOLVED] Linux-ck systemd-boot dual boot

Yes, above solution works like a charm, thanks for all of your help.

Offline

Board footer

Powered by FluxBB