GRUB Seems To Be Missing From SSD

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
steocullen91
Level 1
Level 1
Posts: 30
Joined: Tue Oct 16, 2018 11:58 am
Location: Ireland

GRUB Seems To Be Missing From SSD

Post by steocullen91 » Thu Oct 25, 2018 8:42 am

Sorry to bother you people, but I've decided that I might as well put the SATA SSD into my laptop and just use my NVMe in my PC since my laptop is so slow with a HDD. I can just make a couple of partitions on my NVMe and dual boot just in case do need Windows for certain games/programs though I'd prefer to stick to Linux as much as possible.

Anyway, the SATA SSD already has Mint 19 installed and it's what I had been using to run Mint on my PC until today, so I assumed swapping it into my laptop would have just worked. This isn't the case and it seems like GRUB is actually missing completely from the SSD meaning my laptop just tells me there's no boot device. Both my laptop and PC are UEFI using non-CSM (non-legacy) modes. Is there a way I can reinstall the bootloader/GRUB without having to reinstall Mint on that SSD?

I have a USB stick with Mint on it but I'd just prefer to leave the current installation as is if possible sionce everything was already set up.

Thanks.
MB: ASUS Z170 Pro Gaming | CPU: i7 7700k @4.8GHz | RAM: 16GB DDR4 @3000MHz | GPU: RX VEGA 64
Storage: 250GB NVMe, 240GB SSD, 2TB HDD | OS: Win10 / Mint19 Cinnamon (dual boot)

User avatar
michael louwe
Level 10
Level 10
Posts: 3300
Joined: Sun Sep 11, 2016 11:18 pm

Re: GRUB Seems To Be Missing From SSD

Post by michael louwe » Thu Oct 25, 2018 11:24 am

steocullen91 wrote:
Thu Oct 25, 2018 8:42 am
so I assumed swapping it into my laptop would have just worked.
.
Not if proprietary drivers have been installed, eg for Nvidia/AMD graphics cards and Wifi adapter cards. Maybe, CPU microcode updates as well.

User avatar
steocullen91
Level 1
Level 1
Posts: 30
Joined: Tue Oct 16, 2018 11:58 am
Location: Ireland

Re: GRUB Seems To Be Missing From SSD

Post by steocullen91 » Thu Oct 25, 2018 11:50 am

Thanks for the reply. I was just using Mesa drivers but if it's easier then I guess I can just reinstall it. It's all just a matter of setting up some programs again.
MB: ASUS Z170 Pro Gaming | CPU: i7 7700k @4.8GHz | RAM: 16GB DDR4 @3000MHz | GPU: RX VEGA 64
Storage: 250GB NVMe, 240GB SSD, 2TB HDD | OS: Win10 / Mint19 Cinnamon (dual boot)

puddleglum
Level 1
Level 1
Posts: 37
Joined: Fri Dec 22, 2017 12:03 pm

Re: GRUB Seems To Be Missing From SSD

Post by puddleglum » Thu Oct 25, 2018 12:40 pm

Try this to reinstall grub:
  • Boot from your USB stick with Mint on it.
  • Open a terminal and run sudo fdisk -l to see where Linux is installed on your SSD.
  • Run sudo mount /dev/sdaX /mnt where x is the partition number Linux is on your SSD.
  • If you have a separate /boot partition mount that also: /dev/sdaY /mnt/boot.
  • Run sudo grub-install --root-directory=/mnt /dev/sda to install grub.
  • Run sudo update-grub to update grub, and if this command didn't work run it after rebooting.
  • Reboot from the SSD.

User avatar
steocullen91
Level 1
Level 1
Posts: 30
Joined: Tue Oct 16, 2018 11:58 am
Location: Ireland

Re: GRUB Seems To Be Missing From SSD

Post by steocullen91 » Thu Oct 25, 2018 7:59 pm

I just got a chance to try it and it doesn't seem to be working. I even tried using --force, but then it still fails to update-grub saying something about cow.

Here's a log of the terminal commands:

Code: Select all

mint@mint:~$ sudo mount /dev/sda2 /mnt
mint@mint:~$ sudo mount /dev/sda1 /mnt/boot
mint@mint:~$ sudo grub-install --root-directory=/mnt /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
mint@mint:~$ sudo grub-install --root-directory=/mnt /dev/sda --force
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.
mint@mint:~$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.
I guess the best way is to just reinstall Mint then?
MB: ASUS Z170 Pro Gaming | CPU: i7 7700k @4.8GHz | RAM: 16GB DDR4 @3000MHz | GPU: RX VEGA 64
Storage: 250GB NVMe, 240GB SSD, 2TB HDD | OS: Win10 / Mint19 Cinnamon (dual boot)

User avatar
JerryF
Level 11
Level 11
Posts: 3928
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: GRUB Seems To Be Missing From SSD

Post by JerryF » Thu Oct 25, 2018 8:33 pm

Your disk is a GPT not MBR. Grub should be installed onto your EFI partition.
IF your problem has been solved, please edit your ORIGINAL post and add [SOLVED] to the beginning of the Subject Line. It helps other members when browsing posts.

User avatar
steocullen91
Level 1
Level 1
Posts: 30
Joined: Tue Oct 16, 2018 11:58 am
Location: Ireland

Re: GRUB Seems To Be Missing From SSD

Post by steocullen91 » Thu Oct 25, 2018 8:36 pm

It looks like it is on the EFI partition (sda1) but the laptop doesn't seem to be booting from it despite it being UEFI. I'm not sure why it's not seeing it then.
MB: ASUS Z170 Pro Gaming | CPU: i7 7700k @4.8GHz | RAM: 16GB DDR4 @3000MHz | GPU: RX VEGA 64
Storage: 250GB NVMe, 240GB SSD, 2TB HDD | OS: Win10 / Mint19 Cinnamon (dual boot)

User avatar
JerryF
Level 11
Level 11
Posts: 3928
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: GRUB Seems To Be Missing From SSD

Post by JerryF » Thu Oct 25, 2018 8:40 pm

Is the laptop set to run in UEFI mode in BIOS?

Can you post the following command from a live USB/DVD?

Code: Select all

sudo parted -l
IF your problem has been solved, please edit your ORIGINAL post and add [SOLVED] to the beginning of the Subject Line. It helps other members when browsing posts.

User avatar
steocullen91
Level 1
Level 1
Posts: 30
Joined: Tue Oct 16, 2018 11:58 am
Location: Ireland

Re: GRUB Seems To Be Missing From SSD

Post by steocullen91 » Thu Oct 25, 2018 8:51 pm

Certainly. This is the output:

Code: Select all

mint@mint:~$ sudo parted -l
Model: ATA PNY CS900 240GB (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  538MB  537MB  fat32        EFI System Partition  boot, esp
 2      538MB   240GB  240GB  ext4


Model: USB Flash Disk (scsi)
Disk /dev/sdc: 2005MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  2005MB  2004MB  fat16        Microsoft Basic Data  msftdata
MB: ASUS Z170 Pro Gaming | CPU: i7 7700k @4.8GHz | RAM: 16GB DDR4 @3000MHz | GPU: RX VEGA 64
Storage: 250GB NVMe, 240GB SSD, 2TB HDD | OS: Win10 / Mint19 Cinnamon (dual boot)

User avatar
JerryF
Level 11
Level 11
Posts: 3928
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: GRUB Seems To Be Missing From SSD

Post by JerryF » Fri Oct 26, 2018 10:19 am

Try reinstalling grub to sda1, not sda
IF your problem has been solved, please edit your ORIGINAL post and add [SOLVED] to the beginning of the Subject Line. It helps other members when browsing posts.

User avatar
kukamuumuka
Level 15
Level 15
Posts: 5936
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: GRUB Seems To Be Missing From SSD

Post by kukamuumuka » Fri Oct 26, 2018 12:39 pm

JerryF wrote:
Fri Oct 26, 2018 10:19 am
Try reinstalling grub to sda1, not sda
EFI-grub re-installation is different than Legacy-grub re-installation. It goes like:

Code: Select all

sudo mount /dev/sda2 /mnt 
sudo mount /dev/sda1 /mnt/boot 
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
nano /etc/resolv.conf
... the contents

Code: Select all

nameserver 8.8.8.8
.... save and quit
Ctrl o
Ctrl x

Code: Select all

apt-get update
apt-get install grub-efi-amd64 grub-efi
apt-get install --reinstall grub-efi grub-efi-amd64
update-grub
exit

Code: Select all

sudo umount /mnt/dev
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/boot
sudo umount /mnt

Post Reply

Return to “Installation & Boot”