Moving GRUB to second Mint install

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Samarian Sunset
Level 2
Level 2
Posts: 56
Joined: Fri Sep 27, 2019 9:09 pm

Moving GRUB to second Mint install

Post by Samarian Sunset »

Two different Mint Cinnamon 19.2, installed on an old Optiplex 780. First was installed on a big HD, later I installed the second one on a smaller SSD. I want the GRUB to be associated with Mint on the SSD, as I plan on removing the 1st Mint on the big HD.

How do I confirm which copy of Mint has control of GRUB and how do I switch control to the SSD Mint?

I don't know if this gives enough info but here it is:

Code: Select all

inxi -Fxz 
System:
  Host: k-OptiPlex-780 Kernel: 4.15.0-72-generic x86_64 bits: 64 
  compiler: gcc v: 7.4.0 Desktop: Cinnamon 4.2.4 
  Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop System: Dell product: OptiPlex 780 v: N/A serial: <filter> 
  Mobo: Dell model: 0C27VV v: A00 serial: <filter> BIOS: Dell v: A01 
  date: 09/01/2009 
CPU:
  Topology: Dual Core model: Intel Core2 Duo E8600 bits: 64 type: MCP 
  arch: Penryn rev: A L2 cache: 6144 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 13298 
  Speed: 3325 MHz min/max: N/A Core speeds (MHz): 1: 3325 2: 3325 
Graphics:
  Device-1: NVIDIA GT215 [GeForce GT 330] vendor: Dell driver: nvidia 
  v: 340.107 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1440x900~60Hz 
  OpenGL: renderer: GeForce GT 330/PCIe/SSE2 v: 3.3.0 NVIDIA 340.107 
  direct render: Yes 
Audio:
  Device-1: Intel 82801JD/DO HD Audio vendor: Dell driver: snd_hda_intel 
  v: kernel bus ID: 00:1b.0 
  Device-2: NVIDIA High Definition Audio vendor: Dell driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k4.15.0-72-generic 
Network:
  Device-1: Intel 82567LM-3 Gigabit Network vendor: Dell driver: e1000e 
  v: 3.2.6-k port: ecc0 bus ID: 00:19.0 
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 1.13 TiB used: 619.18 GiB (53.6%) 
  ID-1: /dev/sda vendor: Crucial model: CT240BX500SSD1 size: 223.57 GiB 
  ID-2: /dev/sdb vendor: Western Digital model: WD10EALX-759BA1 
  size: 931.51 GiB 
RAID:
  Hardware-1: Intel SATA Controller [RAID mode] driver: ahci v: 3.0 
  bus ID: 00:1f.2 
Partition:
  ID-1: / size: 219.06 GiB used: 71.14 GiB (32.5%) fs: ext4 dev: /dev/sda1 
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A gpu: nvidia temp: 43 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 187 Uptime: 6h 35m Memory: 3.73 GiB used: 1.69 GiB (45.3%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 
  inxi: 3.0.32 
and if this helps:

Code: Select all

sudo fdisk -l
             
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x52054cde

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1  *     2048 468860927 468858880 223.6G 83 Linux

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa038550b

Device     Boot    Start        End    Sectors   Size Id Type
/dev/sdb1  *        2048   33400831   33398784  15.9G 83 Linux
/dev/sdb2       75616256 1953525167 1877908912 895.5G  7 HPFS/NTFS/exFAT
/dev/sdb3       33400832   75614207   42213376  20.1G 83 Linux

Partition table entries are not in disk order.

User avatar
Flemur
Level 17
Level 17
Posts: 7675
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Moving GRUB to second Mint install

Post by Flemur »

Samarian Sunset wrote:
Fri Jan 03, 2020 8:42 pm
How do I confirm which copy of Mint has control of GRUB and how do I switch control to the SSD Mint?

Code: Select all

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1  *     2048 468860927 468858880 223.6G 83 Linux
Boot the SSD Mint and do this (sda=the SSD):

Code: Select all

sudo  grub-install /dev/sda
sudo update-grub
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
Samarian Sunset
Level 2
Level 2
Posts: 56
Joined: Fri Sep 27, 2019 9:09 pm

Re: Moving GRUB to second Mint install

Post by Samarian Sunset »

I entered those commands as you suggested and it seemed to work. The terminal said this:

Code: Select all

Installing for i386-pc platform.
Installation finished. No error reported.
I rebooted and all went fine. I assume the GRUB is now associated with Mint on SDA (the SSD). Thanks for the help.

User avatar
BG405
Level 7
Level 7
Posts: 1989
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: Moving GRUB to second Mint install

Post by BG405 »

As a general rule the latest-installed OS will take over control of GRUB. If you install an additional Linux OS on the system you'll need to repeat Flemur's instructions from within the OS you wish to have control, if it's not the last to be installed. Hope this helps!
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Dell PII 350 64MB - Puppy 4.3 & Win98-SE

Post Reply

Return to “Installation & Boot”