Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Latest Newsgroups: comp.os.linux.misc Subject: Re: How to install GRUB on removable media? Date: 14 Sep 2021 19:51:53 GMT Lines: 33 Message-ID: References: X-Trace: individual.net obtnxEa2aHqCV5NDyMmGWAIKCnGQ8ac9yklNZ5KarbvWHJ0hRf Cancel-Lock: sha1:ccbiCA20lar6rz1Ir8eV+mrD76U= User-Agent: slrn/1.0.3 (Linux) Xref: csiph.com comp.os.linux.misc:33212 Robert Latest wrote: > Hi all, > > I have this company Windows laptop that I use privately by booting from a > USB3 SSD with a Debian installation. This used to work for years until it > didn't any more a few days ago. Anyway, I ended up re-installing the complete > Debian onto the same SSD again. However, I cannot figure out for the life of > me how to make the thing bootable. The SDD usually shows up as /dev/sdc and > has three partitions: /dev/sdc1 doesn't matter, /dev/sdc2 always was mounted > under /boot, and /dev/sdc3 is the root device. > > > In order to get the thing running I boot from the Debian install USB stick, > mount /dev/sdc3 under /mnt, do the mount --bind thing for /proc, /sys, /dev, > and chroot into /mnt. > > /dev/sdc2 is EFI type "ef", and formatted as FAT and mounted at /boot (in the > chrooted environment). I also made a /boot/grub/efi directory. > > But I can't install grub: > > # grub-install Installing for x86_64-efi platform grub-install: error: cannot > find EFI directory. > > I've searched the Net up and down for this error message but couldn't find > any hint on how to deal with it. > > Or maybe it isn't possible to use EFI on removable media? Do I have to > install it in the MBR? My knowledge about this is extremely shaky. > > Thanks! Note, I also tried grub-install --efi-directory=/boot/efi, same result.