[SOLVED]Grub installed to my windows drive instead of portable hd.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
lead67
Level 3
Level 3
Posts: 128
Joined: Thu Nov 13, 2008 2:16 am
Location: san mateo, california

[SOLVED]Grub installed to my windows drive instead of portable hd.

Post by lead67 »

Hello,

I have done previous installations w/o issues. Today, I have installed Mint 20.3 Cinnamon to my Toshiba L775 laptop using a portable hard drive. Installation went well, I selected the right drive where I had LM 17.x loved it! but to my surprise when I unplugged my media (usb) it went directly to grub, which means that it installed to my internal drive, because when I disconnected my portable hard drive I got the following:

error: no such device: 371329c3-7792-427a-8840-e9649d067e53
error: unknown filesystem.
Entering rescue mode...
grub rescue>

I used to press F12 to select the right drive to boot. I have already used the LS command and got this:
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) This without the portable drive connected, with the drive I get more hd0 drives, but of course I am able to select either OS LM or Win10.
LM is properly working, but how do I get grub to just load from the portable hard drive? I will appreciate the help.

PS: Correct me if I am wrong, please.

Thanks
Last edited by lead67 on Thu Jan 20, 2022 7:28 pm, edited 2 times in total.
User avatar
AndyMH
Level 19
Level 19
Posts: 9021
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Grub installed to my windows drive instead of portable hd.

Post by AndyMH »

Sounds like you are booting mint in legacy mode and missed the box asking where to put grub during installation. Check with efibootmgr:

Code: Select all

andy@T432 ~ $ efibootmgr
EFI variables are not supported on this system.
this is legacy boot, anything else is UEFI.

Boot into mint and follow the instructions here to install grub to your external drive:
https://help.ubuntu.com/community/Grub2/Installing
basically:

Code: Select all

sudo grub-install /dev/sdX
replace sdX with your external drive, probably sdb. This is for legacy boot, UEFI is slightly more complicated.

You will need a win install stick to fix your win drive - grub will have overwritten the win bootloader. This assumes win10 is booting in legacy as well. Check here:
https://www.tenforums.com/tutorials/851 ... -bios.html
If UEFI boot you are okay as the win bootloader lives in the EFI partition.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 4 x Thinkpad T430 Cinnamon 20.1, 2 x i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
lead67
Level 3
Level 3
Posts: 128
Joined: Thu Nov 13, 2008 2:16 am
Location: san mateo, california

Re: Grub installed to my windows drive instead of portable hd.

Post by lead67 »

Hi!

I entered the code efibootmgr I got the following:

Code: Select all

fabio@fabio-Satellite-L775:~$ efibootmgr
EFI variables are not supported on this system.
You are right it is sdb,

Code: Select all

fabio@fabio-Satellite-L775:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk 
├─sda1   8:1    0   579M  0 part 
├─sda2   8:2    0   297G  0 part 
└─sda3   8:3    0   603M  0 part 
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0   512M  0 part /media/fabio/76C8-725F
├─sdb2   8:18   0     1K  0 part 
├─sdb3   8:19   0   513M  0 part /boot/efi
├─sdb5   8:21   0   1.9G  0 part 
└─sdb6   8:22   0 462.9G  0 part /
sr0     11:0    1  1024M  0 rom
Do I just do the sudo grub-install /dev/sdX? to install grub to the external drive?
User avatar
all41
Level 17
Level 17
Posts: 7520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Grub installed to my windows drive instead of portable hd.

Post by all41 »

grub to external drive--that drive will always need to be inserted (connected) at boot, recognized in bios, and at the top of the boot order.
lead67
Level 3
Level 3
Posts: 128
Joined: Thu Nov 13, 2008 2:16 am
Location: san mateo, california

Re: Grub installed to my windows drive instead of portable hd.

Post by lead67 »

Hello,

Yes, It will always need to be connected to be recognized. I need to get the grub on the external drive, since windows is not loading if I don't have that external drive. Do I just simply do the sudo grub-install /dev/sdb will this fix my issue?

Thanks

PS: My concern is: This is a laptop, and if I forget the portable hard drive I will not be able to log into win10. That's the concern.
Researching my issue I found this:

Code: Select all

Grub found: /dev/sda
no Grub: /dev/sda1
no Grub: /dev/sda2
no Grub: /dev/sda3
Grub found: /dev/sdb
no Grub: /dev/sdb1
no Grub: /dev/sdb2
no Grub: /dev/sdb3
no Grub: /dev/sdb5
no Grub: /dev/sdb6
fabio@fabio-Satellite-L775:~$
I just need to make sure that I will simply use the sudo grub-install /dev/sdb and will solve the first issue to have grub only on the portable drive.

Thanks
lead67
Level 3
Level 3
Posts: 128
Joined: Thu Nov 13, 2008 2:16 am
Location: san mateo, california

[SOLVED]Re: Grub installed to my windows drive instead of portable hd.

Post by lead67 »

Hello,

I just need to confirm my above reply before I proceed with the sudo grub-install dev/sdb

Thanks,
Last edited by lead67 on Thu Jan 20, 2022 7:32 pm, edited 1 time in total.
User avatar
AndyMH
Level 19
Level 19
Posts: 9021
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Grub installed to my windows drive instead of portable hd.

Post by AndyMH »

yes
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 4 x Thinkpad T430 Cinnamon 20.1, 2 x i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
lead67
Level 3
Level 3
Posts: 128
Joined: Thu Nov 13, 2008 2:16 am
Location: san mateo, california

[Solved]Re:Grub installed to my windows drive instead of portable hd.

Post by lead67 »

Thanks!

I have moved the Grub to the external drive, repaired the Win10 Boot.
Post Reply