[LINUX] Install Grub on USB memory (UEFI) ~ USB preparation and confirmation ~

Put the boot loader Grub in the USB memory and start it. Many sites have instructions for BIOS / MBR, but this time I will show you how to install for UEFI / GPT. (For intermediate users)

Preparation of USB memory

4GB of USB memory is enough. (8GB this time) First, let's see how USB is recognized by Linux. (... is an abbreviation)

mbr initialization


$install apt update 
$install apt mbr

First, change USB to MBR. MBR even though it is GPT ?? I thought so too, but this seems to work better ... Go next

fdisk


$sudo fdisk -l                 (1)
 Disk /dev/sdc:7.9282732GB ... (2)
 .... 
 Device
 /dev/sdc1 .... (3)
 ....

This command is displayed in (1) by all devices (HDD, SSD, USB, etc.) including storage areas other than USB. In Windows, it is close to what is displayed as C drive ~, D drive ~.

The capacity is displayed in (2). Find something close to your USB capacity

Next, I will describe the notation / dev / sdc1. In Linux, when a USB memory is connected, it will be recognized by Linux by the configuration file in "/ dev", and Linux will name the USB "sdc". (Since this naming method is different for each PC, it is okay to use sdb, sdc ..... In the following sentences, read "sdc" according to your PC environment.)

If you find your USB, look below it and you'll see /dev/sdc1 Will come out. I named the USB memory "sdc" earlier, but for some reason it is "sdc1" here. This is the name given to the first partition in the "sdc" USB stick. If "sdc1" does not appear, the USB has no partition.

In case there is no partition, Next article shows partition creation. The next article creates a partition on the assumption that Grub will be installed on a USB memory, so please continue reading. If there is a partition, skip it

Recommended Posts

Install Grub on USB memory (UEFI) ~ USB preparation and confirmation ~
Install Grub on USB memory (UEFI) ~ USB preparation ~
Install Grub on USB memory (UEFI) ~ grub installation ~
Install Grub on USB memory (UEFI) ~ Boot Linux from grub on USB memory ~
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Build and install OpenCV on Windows
Install fabric on Ubuntu and try
Install easy_install and pip on windows
Install wsl2 and master linux on windows
Install and launch k3s on Manjaro Linux
Install and Configure TigerVNC server on Linux
Install ubuntu on 32bit UEFI Ultra Notebook
Install Puppet Master and Client on Ubuntu 16.04
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install pyenv and rbenv on CentOS system-wide
Until you create an Ubuntu boot USB on your Macbook and install Ubuntu on your Thinkpad
Install matplotlib and display graph on Jupyter Notebook
Install and run Python3.5 + NumPy + SciPy on Windows 10
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Install MongoDB on Ubuntu 16.04 and operate via python
Install Python and libraries for Python on MacOS Catalina
Install ZIP version Python and pip on Windows 10