LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-08-2021, 11:38 AM   #1
spnoe
Member
 
Registered: Dec 2005
Location: Spain
Distribution: Zorin/Big Linux OS
Posts: 39

Rep: Reputation: 15
Grub refusing to show some Hard disks and or partitions


Problem with Grub not showing all disks or partitions. This was after trying to install Garuda OS. As I seemed to have had to change the BIOS setting from Legacy-UEFI mode to just UEFI. I did this and installed Garuda but had various issues with it and uninstalled. I replaced it with trusty Mint 20.1. So on starting the computer the Grub shows Mint and Ubuntu in the list but does not show Windows 10.
I returned the Bios to Legacy-UEFI prior to installing Mint, as the Bios was not showing all the Disks, now it does but not on Grub. I tried a Boot Disk repair but this made no difference.
Here is the setup
sda1 Ubuntu
sdb1 Linux Mint
sdac1 Backup Disk
sdd1 EFI fat32
sdd2 Microsoft Reserved
sdd3 Basic data
sdd4 NTFS (No other label)

I am running a AMD Ryzen 5 2400 G
Bios MSi Click Bios 5

I need advice on how to reset the system so it shows all disks on Grub.

Any advice most gratefully received
Stephen
 
Old 04-08-2021, 12:41 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,630

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
The grub menu does not show disks or partitions, it shows a list of operating systems to boot when the system starts.

Usually one operating system has "control" over the boot loader with a dual+ boot system and you can update its menu configuration via the update-grub command.

https://itsfoss.com/update-grub/

Postscript: Technically grub can show disks and partitions but that is from its command line interface but I am assuming it not the question.
 
1 members found this post helpful.
Old 04-08-2021, 12:53 PM   #3
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,258

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
What partition and type grub is installed on will affect what it can see. I suspect that when you installed Mint it installed as UEFI, so you cannot see Windows on the old bios partition. Or vise-versa, Mint is old bios partition and Windows is UEFI.
I had an issue like this setting up dual boot when the bios was set to legacy-uefi. Windows would install in one format, and Linux in the other and grub would only see OS.
Set the bios to one mode or the other for dual booting, not both.
 
1 members found this post helpful.
Old 04-08-2021, 06:11 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,357

Rep: Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180
+1 utek.
Bit interesting that Win10 was in legacy-UEFI - might imply it was an upgrade from Win7 at some time past.
 
1 members found this post helpful.
Old 04-08-2021, 07:41 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,808

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
open a terminal and post the output of the following:
Code:
sudo parted -l
cat /sys/firmware/efi
 
1 members found this post helpful.
Old 04-08-2021, 11:19 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,413
Blog Entries: 1

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
You might find simply running update-grub or grub-mkconfig from Mint or Ubuntu will regenerate the boot menu and include Windows. First ensure os-prober is not disabled in each's /etc/default/grub.

Having both Mint and Ubuntu on the same UEFI PC can be troublesome. Both by default use the same filenames on the ESP partition, in a directory named ubuntu. This facilitates each usurping boot control from the other every time a new kernel is installed, or otherwise os-prober is run. Each can be made unique via GRUB_DISTRIBUTOR= in /etc/default/grub. Simply replace the content between the quote marks with any unique string you choose, such as ubuntu2004 or mint21, then perform a Grub update. The consequence will be each using a unique directory on the ESP. It won't stop outright usurpation, but other perplexing boot anomalies may be avoided.
 
1 members found this post helpful.
Old 04-09-2021, 11:32 AM   #7
spnoe
Member
 
Registered: Dec 2005
Location: Spain
Distribution: Zorin/Big Linux OS
Posts: 39

Original Poster
Rep: Reputation: 15
Thank you to all those that have written a reply. I did try some of the suggestions and I think UTECK is probably correct. My only problem now is which OS to delete and reinstall, with the correct settings.

Best wishes to you all.
Stephen
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian refusing to boot. Recovery mode doesn’t boot either. GRUB loader does show up. stew2003 Debian 5 06-11-2019 03:35 PM
[SOLVED] Optical drive only sees disks as data. Music CDs don't even show up and movie DVDs show up as files. hikinrory Linux - Newbie 57 09-17-2018 12:29 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
Listing only Hard disks using /proc/partitions and RegEx matt_heys Linux - General 4 01-17-2009 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:50 AM.

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