Article 55TJA How to transfer Grub from one parition to another one

How to transfer Grub from one parition to another one

by
nogueira13
from LinuxQuestions.org on (#55TJA)
Guys, I installed Linux Mint 19.3 on my Acer Nitro 5 Laptop that came with a 120Gb SSD and a 1 Tera hard drive. The partitions are as follows:
Disk / dev / sda: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk model: ADATA_IM2S3338-1
Units: 1 * 512 sector = 512 bytes
Sector size (logical / physical): 512 bytes / 512 bytes
I / O size (minimum / optimal): 512 bytes / 512 bytes
Disc label type: gpt
Disk identifier: 4CCEE4E0-A2CA-4AA6-A962-4E1B02220000

Device Start End Sectors Size Type
/ dev / sda1 2048 976895 974848 476M EFI System
/ dev / sda2 976896 16601087 15624192 7.5G Linux swap
/ dev / sda3 16601088 250068991 233467904 111.3G Linux file system

The HD of 1 Tera, was divided into 2 Partitions:
Disk / dev / sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10SPZX-21Z
Units: 1 * 512 sector = 512 bytes
Sector size (logical / physical): 512 bytes / 4096 bytes
I / O size (minimum / optimal): 4096 bytes / 4096 bytes
Disc label type: gpt
Disk identifier: 2CACDC8A-FE7A-473F-9799-D6D5014E9242

Device Start End Sectors Size Type
/ dev / sdb1 2048 976562175 976560128 465.7G Linux file system
/ dev / sdb2 976562176 1953523711 976961536 465.9G Microsoft basic data

I believe that Grub was installed on the EFI partition, which would be the / dev / sda1 partition
But then I wanted to test Linux Mint 20.3 by installing it on an external hard drive whose partitions are as follows:

Disk / dev / sdc: 465.77 GiB, 500097376256 bytes, 976752688 sectors
Disk model: M3 Portable
Units: 1 * 512 sector = 512 bytes
Sector size (logical / physical): 512 bytes / 512 bytes
I / O size (minimum / optimal): 512 bytes / 512 bytes
Disc label type: dos
Disk identifier: 0xd3dfa926

Device Start Start End Sectors Size Id Type
/ dev / sdc1 * 2048 976656 974609 475.9M ef EFI (FAT-12/16/32)
/ dev / sdc2 276271104 976752639 700481536 334G b FAT32 W95
/ dev / sdc3 976896 275247103 274270208 130.8G 83 Linux
/ dev / sdc4 275247104 276271103 1024000 500M 82 Linux swap / Solaris

Only during the installation I informed that Grub would be installed on the External HD instead of installing it on the SSD. So, whenever I want to use the Laptop I will have to take the External HD with me, because Grub is installed on it.
My question is how do I transfer the current Grub to the SSD on the EFI partition (/ dev / sda1 if it is installed there).
can anybody help me? Can you do this with Grub Customizer? Could someone help me with a step by step?
Thanks in advance for any help.latest?d=yIl2AUoC8zA latest?i=JSptuJsT-kg:JHa6QQyGLJ0:F7zBnMy latest?i=JSptuJsT-kg:JHa6QQyGLJ0:V_sGLiP latest?d=qj6IDK7rITs latest?i=JSptuJsT-kg:JHa6QQyGLJ0:gIN9vFwJSptuJsT-kg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments