You are not logged in.

#1 2012-10-25 12:27:18

sml
Member
Registered: 2005-05-21
Posts: 89

EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

Still trying to complete my first UEFI install of Arch ....

I used all the numerous guides, but for the setup of the boot, I followed this guide ....
https://wiki.archlinux.org/index.php/UEFI_Bootloaders

This command seemed to work fine ...
# echo "root=PARTUUID=xxxx ro rootfstype=ext4 add_efi_memmap initrd=\EFI\\arch\initramfs-arch.img" | iconv -f ascii -t ucs2 | efibootmgr -c -g -d /dev/sda -p 1 -L "Archlinux (EFISTUB)" -l "\EFI\arch\vmlinuz-arch.efi" -@ -

The UEFI disk was visible in my UEFI boot options, but when booting this was the error ....
Error Device 'PARTUUID=xxxx' not found
Unable to find root device 'PARTUUID=xxxx'

Last edited by sml (2012-10-25 12:27:42)

Offline

#2 2012-10-25 12:38:15

sml
Member
Registered: 2005-05-21
Posts: 89

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

During my install ... I followed this step ...
Generate an fstab file with the following command. If you prefer to use UUIDs or labels, add the -U or -L option, respectively. It's also a good idea to check it before continuing:
# genfstab -p /mnt >> /mnt/etc/fstab
# nano /mnt/etc/fstab

Should I have used the -U or -L option?

Offline

#3 2012-10-25 13:01:47

sml
Member
Registered: 2005-05-21
Posts: 89

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

I tried using gdisk to find the unique GUID of my / directory ... and I replaced the XXXX with the big new GUID reference using efitbootmgr, but still had an error that it could not the big new GUID reference.

Offline

#4 2012-10-25 14:58:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

Were you seriously trying to use 'root=PARTUUID=xxxx'? 

I used to use uuid's for everything, but got sick of the lack of human readability.  So I issued labels to all my partitions and use those instead.  Rather than use gdisk to find the uuid's, you could instead simply user blkid or lsblk.  I think though that with lsblk, you will have to refer to the man page to determine what information gets shown to you with what switches.

I am not sure why the wiki now says to use PARTUUID.  I use simply 'root=UUID=3219ee70-7991-4ace-b5af-919a491502be' and it works great.

Offline

#5 2012-10-25 20:33:39

sml
Member
Registered: 2005-05-21
Posts: 89

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

WonderWoofy wrote:

Were you seriously trying to use 'root=PARTUUID=xxxx'?

yes, there was no mention of doing anything different in the wiki.

anyway i've only been using arch since 2005 (as you can see in forum registration date), so still have a lot to learn unfortunately sad

Offline

#6 2012-10-25 21:40:57

sml
Member
Registered: 2005-05-21
Posts: 89

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

should the UUID link to   /   or /boot/efi  ?

I used another UUID that I found for the / partition and the error was FAT-fs unrecognized mount option "codepage=cp437" failed to mount /boot/efi

Offline

#7 2012-10-26 08:53:29

Leo Laursen
Member
From: Denmark
Registered: 2012-10-26
Posts: 20

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

sml wrote:

I used another UUID that I found for the / partition and the error was FAT-fs unrecognized mount option "codepage=cp437" failed to mount /boot/efi

I just removed the "codepage=cp437" from the /etc/fstab entry. It's the default any way; and it worked.

Offline

#8 2012-10-26 09:32:45

sml
Member
Registered: 2005-05-21
Posts: 89

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

solutions:

1. in  your chroot environment, go to # nano /etc/fstab and find the GUID of the / partition .. and use in your efibootmgr echo command (replace the xxxx)

2. in  your chroot environment, go to # nano /etc/fstab and replace 'codepage=cp437' with 'codepage=437'

Offline

#9 2012-10-27 15:59:36

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

sml wrote:

Still trying to complete my first UEFI install of Arch ....

I used all the numerous guides, but for the setup of the boot, I followed this guide ....
https://wiki.archlinux.org/index.php/UEFI_Bootloaders

This command seemed to work fine ...
# echo "root=PARTUUID=xxxx ro rootfstype=ext4 add_efi_memmap initrd=\EFI\\arch\initramfs-arch.img" | iconv -f ascii -t ucs2 | efibootmgr -c -g -d /dev/sda -p 1 -L "Archlinux (EFISTUB)" -l "\EFI\arch\vmlinuz-arch.efi" -@ -

The UEFI disk was visible in my UEFI boot options, but when booting this was the error ....
Error Device 'PARTUUID=xxxx' not found
Unable to find root device 'PARTUUID=xxxx'

PARTUUID=xxxx was just for example. Obviously you should use the GPT GUID of your "/" root partition. If you did not even understand that, then Arch is not for you.

The correct command is (PARTUUID=3518bb68-d01e-45c9-b973-0b5d918aae96 just for example):

# echo "root=PARTUUID=3518bb68-d01e-45c9-b973-0b5d918aae96 ro rootfstype=ext4 add_efi_memmap initrd=\\EFI\\arch\\initramfs-arch.img" | iconv -f ascii -t ucs2 | efibootmgr -c -g -d /dev/sda -p 1 -L "Archlinux (EFISTUB)" -l '\EFI\arch\vmlinuz-arch.efi' -@ -

In the old command:

initrd=\EFI\\arch\initramfs-arch.img

is wrong, it should be

initrd=\\EFI\\arch\\initramfs-arch.img

And

-l "\EFI\arch\vmlinuz-arch.efi"

is also wrong. It should be either

-l "\\EFI\\arch\\vmlinuz-arch.efi"

or

-l \\EFI\\arch\\vmlinuz-arch.efi

or

-l '\EFI\arch\vmlinuz-arch.efi'

Last edited by the.ridikulus.rat (2012-10-27 16:06:22)

Offline

#10 2012-10-28 14:18:54

Elfo
Member
Registered: 2010-10-19
Posts: 25

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

This is what I use without problems:

efibootmgr -c -d /dev/sdb -p 1 -w -L "Arch Linux" -l 'vmlinuz-linux' -u "root=UUID=$(blkid -s UUID -o value /dev/sdb2) ro consoleblank=0 initrd=\initramfs-linux.img"

Offline

#11 2012-11-02 14:25:52

Tha-Fox
Member
Registered: 2010-11-25
Posts: 20
Website

Re: EFI Shell Boot for EFISTUB with PARTUUID=xxxx Not Found

Just made a new installation and got also that  'codepage=cp437'. I replaced it with 'codepage=437' and everything works. Thanks for the hint!

Offline

Board footer

Powered by FluxBB