LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-27-2021, 10:40 AM   #1
Dante404
LQ Newbie
 
Registered: Dec 2020
Posts: 3

Rep: Reputation: Disabled
grub "error: file '/boot/grub/i386-pc/normal.mod' not found" after reinstalling Ubuntu in dualboot Windows 10 and choosing sdb as bootloader


I wanted to reinstall Ubuntu so I installed it in the same partition it was before, replacing all the previous contents I had. Basically, I wanted to start from scratch with Ubuntu. The thing is that when I had to choose the device for bootloader installation, I didn't want to change the default configuration (which was my primary hard drive, sda), and in fact I didn't. But it was during the installation that an error showed up regarding this, and I chose to change it to sdb, which is my SSD, as you can see in the attached screenshot.

I tried to follow the steps in this video: https://www.youtube.com/watch?v=vhZ415ZWNdY&t=354s

And thanks to it, it allowed me to access to Ubuntu, but every time I power off or restart the PC the grub rescue screen shows up again and I need to type the same commands to access to Ubuntu, because the problem hasn't been fixed. Obviously, it doesn't let me access Windows, because I can't choose which operating system I want to work on. So now, I can only work from the Ubuntu version I just installed.

How can I fix this problem with the bootloader so I can choose between my two OS again?
Attached Thumbnails
Click image for larger version

Name:	6Oh1r.png
Views:	107
Size:	141.3 KB
ID:	37295  
 
Old 09-27-2021, 06:32 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
That setting is a lie no matter your choice it will install to the first drive it sees in the system. The way to get it fixed is this boot with the installer for Ubuntu and install the boot-repair program make certain you have disconnected the Windows drive. Once that is done disconnect the Linux drive and boot with a windows disk and run its boot repair. With everything connected you will then be able to use your boot menu to select the drive to boot from or set it to the drive wanted to boot by default in the firmware. Once back into Ubuntu you can run sudo update-grub to have it re-scan the system and add a windows entry for you to its menu. Since the uuid in use will be set already it should have no trouble putting the loader where it belongs.


https://help.ubuntu.com/community/Boot-Repair
https://windowsreport.com/windows-10...pair-software/
 
Old 09-27-2021, 09:11 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
at the grub-rescue prompt post the output of
Code:
set
 
Old 09-28-2021, 05:13 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Before you made these changes, were you able to boot both windows and Ubuntu?
If so, which hard drive were they on? You have 2 windows partitions on sda which is a gpt drive. For windows to boot from a gpt drive, you need an EFI partition. I don't see it unless the microsoft reserved partition is it, doubt that but...

You also have multiple windows partitions and your Ubuntu partition on sdb. sdb is a dos partition and you have an Extended partition with logical partitions which includes an EFI partition. You can boot Ubuntu on a drive of this type but you can't boot an EFI install of windows on a dos drive. If you want Grub to boot both Linux and windows, you need both installed in the same mode, both EFI or both Legacy/CSM.

Which drive contains the windows install, sda or sdb?
 
Old 09-28-2021, 09:15 AM   #5
Dante404
LQ Newbie
 
Registered: Dec 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by HappyTux View Post
That setting is a lie no matter your choice it will install to the first drive it sees in the system. The way to get it fixed is this boot with the installer for Ubuntu and install the boot-repair program make certain you have disconnected the Windows drive. Once that is done disconnect the Linux drive and boot with a windows disk and run its boot repair. With everything connected you will then be able to use your boot menu to select the drive to boot from or set it to the drive wanted to boot by default in the firmware. Once back into Ubuntu you can run sudo update-grub to have it re-scan the system and add a windows entry for you to its menu. Since the uuid in use will be set already it should have no trouble putting the loader where it belongs.


https://help.ubuntu.com/community/Boot-Repair
https://windowsreport.com/windows-10...pair-software/
I booted my laptop with the USB containing Boot Repair, so I ran the program and after that I could boot normally and choose the operating system from the boot menu like I did in the past. Since now it works again, I didn't do anything else. However after Boot Repair repaired my boot problem it suggested me to make my BIOS boot on sdb (you can check the screenshot attached). As I said, I haven't done anything else because now it works perfectly, or should I?



Quote:
Originally Posted by colorpurple21859 View Post
at the grub-rescue prompt post the output of
Code:
set
Before booting with the USB and let "Boot Repair" do its thing, I did it, and I attached the output in a screenshot.





Quote:
Originally Posted by yancek View Post
Before you made these changes, were you able to boot both windows and Ubuntu?
If so, which hard drive were they on? You have 2 windows partitions on sda which is a gpt drive. For windows to boot from a gpt drive, you need an EFI partition. I don't see it unless the microsoft reserved partition is it, doubt that but...

You also have multiple windows partitions and your Ubuntu partition on sdb. sdb is a dos partition and you have an Extended partition with logical partitions which includes an EFI partition. You can boot Ubuntu on a drive of this type but you can't boot an EFI install of windows on a dos drive. If you want Grub to boot both Linux and windows, you need both installed in the same mode, both EFI or both Legacy/CSM.

Which drive contains the windows install, sda or sdb?
Yes, I was able to boot both Windows and Ubuntu, and as I said, it seems I can do it now without any problem. I attached a screenshot of Disk Management in Windows if needed, but as I can see, I have Windows and Ubuntu in my SSD (sdb), and it has been always this way. After running "Boot Repair" the problem seems to be solved, so I don't know if I should do something else.
Attached Thumbnails
Click image for larger version

Name:	IMG_5971.jpg
Views:	48
Size:	234.2 KB
ID:	37304   Click image for larger version

Name:	IMG_5970.jpg
Views:	51
Size:	264.3 KB
ID:	37305   Click image for larger version

Name:	Capture.JPG
Views:	48
Size:	116.0 KB
ID:	37307  

Last edited by Dante404; 09-28-2021 at 09:16 AM.
 
Old 09-28-2021, 09:42 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Dante404 View Post
I booted my laptop with the USB containing Boot Repair, so I ran the program and after that I could boot normally and choose the operating system from the boot menu like I did in the past. Since now it works again, I didn't do anything else. However after Boot Repair repaired my boot problem it suggested me to make my BIOS boot on sdb (you can check the screenshot attached). As I said, I haven't done anything else because now it works perfectly, or should I?
If turning on the machine gives you the boot menu once it starts then the setting it to boot from the second drive (sdb) in the system makes no sense. Now it is working like you want leave it alone unless you encounter problems. If it was an EFI system you had installed you could check to see which EFI system partition had the loader installed on it, I have no clue how to check a MBR system for that location. It is simple with EFI you just see which partition is mounted as the /boot/efi. Then it can make sense to have it set to load the EFI from the sdb if it is the one used to save that couple of extra seconds in the boot process as it searches for the loader to boot with.
 
  


Reply

Tags
bootloader, dual boot, dual-boot, grub, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dual boot Fedora and Windows 10. After reinstalling Fedora Windows 10 entry is gone from bootloader. bkone Linux - Newbie 4 01-05-2019 12:21 AM
[SOLVED] GRUB bootloader questions.(Can I restore the windows bootloader & windows 10 upgrade) anon261 Linux - General 3 07-19-2015 05:01 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Can i dd if=/dev/sdb of=/dev/sdc if hdsize(sdb)>hdsize(sdc) & size(sdb)<hdsize(sdc) ? ununun Linux - Software 6 06-28-2011 11:48 AM
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration