Install Grub on USB memory (UEFI) ~ grub installation ~

In the above, we prepared the USB memory. Finally, grub will be installed. Enter the following command.

mount&install


$sudo mkdir /mnt/boot                       #(1)
$sudo mount /dev/sdc1 /mnt                  #(2)
$sudo grub-install --target x86_64-efi --debug --efi-directory /mnt --boot-directory=/mnt/boot --removable      #(3)

Enter the last command to start installing grub (characters flow at a tremendous speed, but don't rush). At the end, a No eroor reported message is displayed. By the way, I will briefly explain the above command (you can skip it)

1 ・ ・ ・ Create a new room called "mnt" in your area (/ user name / home), and create a "boot" in that room.

2 ・ ・ ・ Link the "/ dev / sdc1" created above with the room "mnt" created in # 1 (the room "boot" in "mnt" is also linked). In other words, the files installed on "mnt" are automatically sent to the partition "/ dev / sdc1" in the USB.

3 ・ ・ ・ Install grub in / mnt / boot. Since "/ mnt" and "/ dev / sdc1" are linked in # 2, grub is installed in USB.

This completes the USB installation of grub. Next article shows how to boot Linux from grub.

Recommended Posts

Install Grub on USB memory (UEFI) ~ grub installation ~
Install Grub on USB memory (UEFI) ~ USB preparation ~
Install Grub on USB memory (UEFI) ~ USB preparation and confirmation ~
Install Grub on USB memory (UEFI) ~ Boot Linux from grub on USB memory ~
Install ubuntu on 32bit UEFI Ultra Notebook
How to install Linux on a 32bit UEFI PC
Install mecab on Marvericks
Install Tensorflow on Mac
Install TensorFlow on Ubuntu
Install Faiss on CentOS 7
Install pyenv on mac
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install docker on Fedora31
Install numba on CentOS 7.2
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
numba installation on mac
Install gensim on Marvericks
Install JModelica on Ubuntu
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install aws-cli on MacPorts
Install pygraphviz on Windows 10
Install Docker on AWS
Install Python 3.3 on Ubuntu 12.04
Install Chainer 1.5.0 on Windows
Install Python 3.4 on Mac
Installation on CentOS8 VirtualBox
Install Caffe on Mac
Install Theano on Ubuntu 12.04
Install pyenv on OSX
Install mecab on mac
Install awscli on centos7
Install angr on Ubuntu 18.04
Install Chainer on CentOS 6.7
Install mecab-python on Mac
Install pip / pip3 on Ubuntu
Install Python 3.6 on Docker
Install Linux (CentOS) on your PC using a USB stick