1 line
2.8 KiB
Plaintext
1 line
2.8 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hi everyone.</p> <p>I am on an UEFI system. I want to install arch on an external USB drive. I am facing certain issues and hoping I could troubleshoot with your advice.</p> <p>The first irregularity I faced was generating the fstab using</p> <pre><code>genfstab -U /mnt >> /mnt/etc/fstab </code></pre> <p>I though -U option was supposed to use UUIDs to identify the partitions, yet the partitions were identified by kernel name descriptors (i.e /dev/sdcX). The UUIDs were present as comments, so I could manually edit the file to use UUIDs instead.</p> <p>​</p> <p>Installed grub using the following command after "chroot"-ing into the new system.</p> <pre><code>grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB </code></pre> <p>Installation was successful and I could boot using grub. Encountered a problem when I removed the USB drive and re-inserted. The EFI boot entry GRUB was deleted by firmware. It was replaced by an entry similar to the live bootable media. "UEFI: Samsung USB Drive Partition 1" or something. Clicking on that just takes me to Windows (installed on internal drive).</p> <p>​</p> <p>I found that grub needs to be installed with --removable option. So I used</p> <pre><code>rm -r /efi/EFI/* rm -r /boot/grub/grub.cfg grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB --removable --recheck </code></pre> <p>This time I was successful. The EFI boot entry is persistent even if I remove and re-insert the drive. The problem is the boot entry has the generic name "UEFI: Samsung USB Drive Partition 1". I use the same type of drive to try out many distros, which leads to having similar entries which is confusing.</p> <p>​</p> <p>My questions are:</p> <ol> <li>It seems grub-install ignores the --bootloader-id=GRUB option when --removable is set. Is there any way to have a unique boot entry name for grub or is my only option to delete the boot entry using efibootmgr and creating a new one.</li> <li>Is there any other bootloader that will allow me to have both a unique and persistent boot entry for a removable drive, which doesn't need manually removing/adding EFI boot entries.</li> <li>Why does genfstab -U not use UUIDs to identify partitions. Is there any way to generate fstab with UUIDs automatically instead of manually editing it.</li> </ol> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/sashwatsamaddar"> /u/sashwatsamaddar </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r5he5d/need_help_installing_grub_or_any_other_bootloader/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/r5he5d/need_help_installing_grub_or_any_other_bootloader/">[comments]</a></span> |