C
C
chellijna2018-09-30 12:26:25
linux
chellijna, 2018-09-30 12:26:25

Is it possible to make Linux run grub from a flash drive?

So. I read something like this.
-They say you can make the flash drive run grub (or something else), while the main system is on encrypted hard disk partitions.
Is it possible to implement this somehow?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2018-09-30
@Tabletko

Can.

X
XakRu, 2018-10-01
@XakRU

For LEGACY, not UEFI:
1) create a partition on the flash drive in any convenient way, for example fdisk / cfdisk
2) mark the partition as bootable (bootable)
3) format the flash drive in fat32, vfat, ext2 (mkfs.vfat/mkfs.ext2)
4) mount the flash drive to /mnt
4) copy data from /boot from the hard drive to the flash drive
5) unmount /mnt
6) mount to /boot
7) For reliability - execute
8) fix /etc/fstab, indicating that the flash drive must be mounted to /boot I
recommend reading more about LUKS encryption: https://access.redhat.com/documentation/en-us/red_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question