Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #33211

How to install GRUB on removable media?

From Robert Latest <boblatest@yahoo.com>
Newsgroups comp.os.linux.misc
Subject How to install GRUB on removable media?
Date 2021-09-14 19:44 +0000
Message-ID <iqcccfF9erbU1@mid.individual.net> (permalink)

Show all headers | View raw


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!

Back to comp.os.linux.misc | Previous | NextNext in thread | Find similar | Unroll thread


Thread

How to install GRUB on removable media? Robert Latest <boblatest@yahoo.com> - 2021-09-14 19:44 +0000
  Re: How to install GRUB on removable media? Robert Latest <boblatest@yahoo.com> - 2021-09-14 19:51 +0000
  Re: How to install GRUB on removable media? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2021-09-15 08:15 +0200
  Re: How to install GRUB on removable media? "Carlos E. R." <robin_listas@es.invalid> - 2021-09-15 13:59 +0200
    Re: How to install GRUB on removable media? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2021-09-15 14:54 +0200
      Re: How to install GRUB on removable media? "Carlos E. R." <robin_listas@es.invalid> - 2021-09-15 16:21 +0200
        Re: How to install GRUB on removable media? "Andrei Z." <no-email@invalid.invalid> - 2021-09-15 18:04 +0300
        Re: How to install GRUB on removable media? not@telling.you.invalid (Computer Nerd Kev) - 2021-09-15 22:20 +0000

csiph-web