You are not logged in.

#1 2018-03-26 04:02:37

awesomepilot
Member
Registered: 2012-09-28
Posts: 19

[SOLVED] systemd-boot can't find root partition

Hello Arch community!  I have recently decided to try systemd-boot after using grub for years.  It seems just better for my puposes.  Anyway I have followed to instructions in Systemd-boot#Configuration and have got the menu to come up with all of the entries I have.  I am dual-booting with Windows 10 and it had no problem automatically finding the Windows Boot loader, as well as me adding an entry for the UEFI Shell.  But when I go to boot Arch it says that it cant find the root partition.  I am using the UUID to identify it.  I have tried changing the UUID to the UUID for the boot partition, which doesn't make any sense to me so I'm guessing thats not what im supposed to do, but I did anyway and when I did I got the same error message.  I'm not sure really what to do next.  I have read the systemd-boot wiki page but I'm sure I missed something, or am not understanding something.  Some more educated input would be great.  Also let me know if more info is needed.

Thanks in advanced!

I have tried reinstalling systemd-boot using

bootctl --path=/boot install

It tells me when I try to boot

mount: /new_root cant find UUID=rootuuid
dropping to emergency shell

I'm not sure how to grab the exact error message, I can't find it in journalctl because it didn't fully boot im guessing, anyway
here is the output of my

bootctl status
System:
     Firmware: UEFI 2.60 (American Megatrends 5.12)
  Secure Boot: disabled
   Setup Mode: setup

Current Loader:
      Product: systemd-boot 238
          ESP: /dev/disk/by-partuuid/33ea7215-7de3-5e42-ba18-971b1bfa708a
         File: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI

Boot Loader Binaries:
          ESP: /boot
         File: └─/EFI/systemd/systemd-bootx64.efi (systemd-boot 238)
         File: └─/EFI/BOOT/bootx64.efi (systemd-boot 238)

Boot Loader Entries in EFI Variables:
        Title: Linux Boot Manager
           ID: 0x0003
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/33ea7215-7de3-5e42-ba18-971b1bfa708a
         File: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI

        Title: Windows Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/33ea7215-7de3-5e42-ba18-971b1bfa708a
         File: └─/EFI/MICROSOFT/BOOT/BOOTMGFW.EFI

Default Boot Entry:
        title: Arch Linux
        linux: /vmlinuz-linux
       initrd: /intel-ucode.img /initramfs-linux.img
      options: root=PARTUUID=07cc1a8d-bc01-4b47-bbcc-2403e7464d74 rootfstype=ext4 add_efi_memmap

I have archlinux set for default boot.

The ouput of

lsblk -f
NAME        FSTYPE  LABEL       UUID                                 MOUNTPOINT
sda                                                                  
└─sda1      ntfs    Games       046AA9EB6AA9DA26                     /home/awesomepilot/Storage
sdb                                                                  
└─sdb1      ext4                9e23ff59-60b0-46ec-8480-ca21cb0eb52c /home
sdc         iso9660 ARCH_201803 2018-03-01-15-13-16-00               
├─sdc1      iso9660 ARCH_201803 2018-03-01-15-13-16-00               /run/media/awesomepilot/ARCH_201803
└─sdc2      vfat    ARCHISO_EFI 8688-0060                            
nvme0n1                                                              
├─nvme0n1p1 vfat                F67C-9E9F                            /boot
├─nvme0n1p2 swap                56a2c771-5bf6-4324-be3a-3222411866fb [SWAP]
├─nvme0n1p3 ext4                07cc1a8d-bc01-4b47-bbcc-2403e7464d74 /
├─nvme0n1p4                                                          
└─nvme0n1p5 ntfs                6C6CFCBB6CFC815E  

This is my arch.conf file:

title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=PARTUUID=07cc1a8d-bc01-4b47-bbcc-2403e7464d74 rootfstype=ext4 add_efi_memmap

Last edited by awesomepilot (2018-03-26 07:27:48)

Offline

#2 2018-03-26 04:49:11

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

Re: [SOLVED] systemd-boot can't find root partition

UUID and PARTUUID are two different things.

Offline

#3 2018-03-26 07:20:20

awesomepilot
Member
Registered: 2012-09-28
Posts: 19

Re: [SOLVED] systemd-boot can't find root partition

Okay so now that I know that.  Thanks a lot for the info by the way Scimmia, I have looked up the Persistent block device naming wiki and have read about the partuuids but its still a little cloudy to me exactly what the difference is.  It seems that UUIDs are for naming the filesystem, and PARTUUIDs are for naming the specific partition that the filesystem is on?  Am I getting that right?  If I am correct about that then can I use the UUID instead of the PARTUUID?  Because in /dev/disk/by-partuuid and all the others it seems like its just different ways of naming the same thing.  Worth a shot I guess.

Offline

#4 2018-03-26 07:25:46

awesomepilot
Member
Registered: 2012-09-28
Posts: 19

Re: [SOLVED] systemd-boot can't find root partition

BEAUTIFUL!  I was able to see what partuuid is the correct one using the command on the wiki, and now its working flawlessly.  Thanks a lot and for anyone else who doesn't know that UUIDs are different from PARTUUIDs check out https://wiki.archlinux.org/index.php/pe … ice_naming.  Thats where I found my anwser with a little help.  Thanks again!

Offline

Board footer

Powered by FluxBB