You are not logged in.
GPT partitions:
/dev/sda1 / (20gb)
/dev/sda2 /home (90gb)
/dev/sda3 /boot (512mb ef00, mkfs.fat -F32 /dev/sda3)
I've gone through a number of different attempts at getting gummiboot (+efistub) to work. Here's what's not working:
# mkfs.fat -F32 /dev/sda3
# mount /dev/sda1 /mnt
# mount /dev/sda3 /mnt/boot
# mkdir -p /mnt/boot/EFI/arch/
# arch-chroot /mnt
[in chroot]
# pacman -S linux
# mkinitcpio -p linux
# mount -t efivarfs efivarfs /sys/firmware/efi/efivars (already mounted)
# pacman -S gummiboot (already installed from prior attempts)
# gummiboot install (all messages seem good, e.g.,: created /boot/EFI/gummiboot, etc)
# vim /boot/loader/loader.conf (commented existing lines and replaced with
default arch
timeout 4
# vim /boot/loader/entries/arch.conf (created new)
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=[uuid for sda1, the ROOT partition we want to mount] rw
(also, not recorded, but i remember copying vmlinuz-linux, initramfs* to /boot/EFI/arch/)
Think that's it.
# exit
# umount -R /mnt
# reboot [remove disk]
This DOES progress to the menu where I can select "Arch", however, **each time the partuuid is wrong** - arch looks for the disk for 10 seconds (by the specified partuuid) and then fails. Looked in gdisk using option "i" for the ROOT (/dev/sda1) partition. Tried both the options in there, but to no avail. ... drops to recovery shell. Also tried plugging in the blkid uuid.
Feels like I'm very close, but not sure where this went off-track. Very grateful for any help here and thanks also for all the other times I've found solutions on this forum without ever having to post at all.
https://wiki.archlinux.org/index.php/Gummiboot
https://wiki.archlinux.org/index.php/EFISTUB
[edit: Woofie suggested:
Replace the PARTUUID in /boot/loader/entries/arch.conf with the output of:
blkid -s PARTUUID -o value /dev/sda1
You may be using Filesystem UUID (normally referred to as FSUUID or just UUID), in the place of PARTUUID in /boot/loader/entries/arch.conf, that is different. If something is mentioned as just UUID, then it is FSUUID, not PARTUUID.
blkid -s UUID -o value /dev/sda1
You may also have to mention "rootfstype=" parameter in arch.conf for better rootfs detection.
tried the blkid uuid, but same result.
Last edited by notacar (2013-12-18 04:08:20)
Offline
I recommend using the device filename (as in "root=/dev/sda1"). This was the original method used, years ago, long before UUIDs and GUIDs were supported for this sort of thing. It's also the shortest one to type, and so is the least likely to fall victim to a typo. Of course, using UUIDs and GUIDs (aka PARTUUIDs) has advantages, so you may want to switch eventually; but at the very least, using the device filename should be a useful debugging step. If it fails, too, that most likely means you've got a problem with hard disk device drivers or something; if a UUID or GUID/PARTUUID fails, it could be any number of other problems.
Offline
I recommend using the device filename (as in "root=/dev/sda1").
Thank You. thankyou. THANK YOU!!!
Thank You. thankyou. THANK YOU!!!
Thank You. thankyou. THANK YOU!!!
Thank You. thankyou. THANK YOU!!!
Thank You. thankyou. THANK YOU!!!
Thank You. thankyou. THANK YOU!!!
Thank You. thankyou. THANK YOU!!!
Also had to replace the wonky EF00 UUID in fstab to just reflect /dev/sda3 instead of the 5x5 digit UUID that was generated for this one. Once that was done, it booted right up. So relieved - what a battle.
Offline
You should learn about filesystem labels as they make things easy to remember and are human readable. For example, my rootfs is on a btrfs filesystem that is labelled as 'archlinux'. So instead of 'root=/dev/sda2' I use 'root=LABEL=archlinux' (you could also use 'root=/dev/disk/by-label/archlinux' if you have udev or systemd in the initramfs). If you have more than one disk in the machine, there is no guarantee that one will always be /dev/sda and the other will be /dev/sdb. It just depends on what happens to show up first when it polls for devices (though it is often fairly consistent in my experience).
Offline
You should learn about filesystem labels as they make things easy to remember and are human readable. For example, my rootfs is on a btrfs filesystem that is labelled as 'archlinux'. So instead of 'root=/dev/sda2' I use 'root=LABEL=archlinux'.
Awesome!
e2label [device] label.
Will see if I can make this work - agree that there's nothing like your devices getting shuffled to test your setup skills.
Offline