This is my first time trying to install Arch so my apologies if I don't understand your answer. Here is my problem. I am using the QEMU emulator (x86_64) to install Archlinux on a 128GB Samsung USB key. I am using QEMU because I am installing from macOS and from what I understand about Arch, it is like yogurt or bread.

I have managed to fully bootstrap and configure Arch (simple stuff, no KDE or anything yet), set up my ESP, install GRUB2 and rEFInd, and all that jazz. More notes on my installation process can be found on my previous question here.

The problem is that, since I am using QEMU, the UUID's for my partitions are all wrong when I do genfstab /mnt >> /mnt/etc/fstab. Similarly, when I try to do diskutil info disk2sX | grep -i UUID and manually change the FSTAB (and propagate the changes by reinstalling GRUB2), the UUID's are also wrong.

GRUB cannot mount the Arch partition in order to boot it, so I get dropped into the emergency shell, which (for some inexplicable reason [1]) does not connect the keyboard.

So: I have the wrong UUID's and no way of getting them. Is my sexy arch partition doomed?

[1] I understand the reason, honestly I just don't understand why the emergency shell has command line prompt at all since there is no case I can think of where the emergency shell is going to be able to use the keyboard anyway. Whatever, not the point.

  • 1
    What happens if you attempt another (fresh) install, and label/name the slices (partitions). Important note: the drives partition table must be of type GPT. If done in this fashion, you can use names instead of UUIDs, and names are universal. :) – somebody Jun 18 '19 at 2:41
  • I used GPT for sure, and used parted to make the various partitions like so parted /dev/vda; mktable gpt; mkpart primary fat32 1MiB 261MiB; set 1 esp on; mkpart primary ext4 261MiB 100%; quit I can add names to each of the partitions pretty easily by doing parted /dev/vda; set 1 NAME1 on; set 2 NAME2 on; quit and that will name the partitions... would that work? How would I change the FSTAB then? (For all of these questions, feel free to point me at a tutorial or wiki page) – Confused ArchMonero Dev Jun 18 '19 at 4:33
  • 1
    I'm on BSD most of the time, and am not near my Linux box. So I'd hesitate to to try to say anything authoritative at the moment. But FWIW the paths in gpt "named" slices are thusly: /dev/gpt/SliceName So an fstab would point to that slice name if it were root this way: /dev/gpt/SliceName / ufs rw 2 2. It's difficult to portray in a comment. But as soon as I can get in front of my Linux box. I'll present you with a proper example in an actual "answer". Unless someone beats me to it. ;) – somebody Jun 18 '19 at 6:56
  • Thank you @somebody. I'll do some research of my own and restlessly await your response. Although, between you and me, I'd rather not go through the whole installation process again if I needn't—as of yet I've already spent at least 6 or 7 hours installing and reinstalling and re-reinstalling Arch – Confused ArchMonero Dev Jun 18 '19 at 7:07
  • 1
    Understood! :) Been there, done that way too many times. :) – somebody Jun 18 '19 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.