Grub see windows as sdb1 file system see it as sdb2
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is a test, at the grub menu highlight the windows entry and press e for edit
Change the
set root='hd1,msdos2'
To
set root=‘hd1,msdos1’
Delete all the lines from if to fi
Press ctrl-x to boot
Yes i will try to have a go and get to grips with this code/"text tags. I did wonder that but when EFI first came I disabled secure boot in the bios and have had no problems. This original started when I first installed Ubuntu 20.04LTS everything went ok. I updated grub D/L google and sorted my dual screens and added various Ubuntu apps. Then the key board stopped working. Tried 3 other keyboards no joy. no solutions after 3 days then by luck I opened ubuntu apps and saw a keyboard app named "input method". clicked on it and keyboard immediately started working. That icon in the apps has now gone. I had concerns about 20.04 so put 18.04 back. That installation ended up with windows on 2 disks sdb1 and sdb2 and ubuntu started by entering bios and clicking CD drive. during those 3 days I could not install anything as I could not input the personal details required to proceed.Intermittently the keyboard worked but only on the live disk. as soon as I tried to install keyboard stopped working again Thats why I thought there was a connection to this problem. Thank you for your help.
would not boot up grub menu still saying windows on sdb2
That doesn't change what the grub menu says, what happenes after hitting ctrl-x while in edit mode after making changes. after changes should look something like this
Post 6 output clearly shows that both the windows hard drive and the Ubuntu hard drive are msdos. In the original post, the output from updating grub clearly shows windows was detected. There is no reason why windows boot files could not be on the second partition (sdb2). Time for boot repair. Go to the site below while you are booted into Ubuntu and download boot repair using the 2nd option explained on the page. After downloading and running it by selecting the Create Boot INfo Summary option, you will get a link which you can post here for help as it will show a lot of details about your system. Do NOT try to make any repairs.
Tried the boor repair disk. waited 14 minutes for it to go into working mode but it did not. I will try again. Thank you You are correct as when I first discovered that clicking the disks in the bios boot order would start the OS. At that time windows in grub showed on both sdb1 and sdb2 Both booted into windows, no problem
CP Im so sincerely sorry for leaving you hanging. I wanted to keep the edit window open to compare. tried to start my old PC to open LQ but my password had changed so it was not on google password list, plus other stuff all at the same time. I do apologise and thank you for your patience.
went back into Edit menu ctrl and X and it booted into ubuntu but still black screen after restart.
My PC is custom built. I had windows 7 so downloaded the free windows 10 disk from microsoft and installed it myself. I think that was just over 5 years ago.
I will try Boot Repair Disk again and if no joy I will input the last code you sent (partool)
I have made condensed notes of the edit menu. unfortunately there does not appear to be any methods of copying the data so I typed it out. Not ideal but I think enough to give you a good idea of the changing data. Some different if and fi have appeared.
Tried the boor repair disk. waited 14 minutes for it to go into working mode but it did not.
It's a pretty simple tool. Did you read the section on Using Boot-Repair? Do you have an internet connection? You won't get the link info if you do not.
I have used Boot repair disk with good success in the past.This time I went to Sourceforge and updated the version I intended to use. However after a very long time. it did not boot into front page, instead a notice appeared saying it needed updating. updated and it continued No graphical image so could not get the paste address.
if did not work. no change. Yancek I would not have been able to even get on Linux Questions without the internet.
CP input parttool ${root} hidden as you requested response "setting partition" to 0x93
drivemap -s (hd0) ${root} drivemap to -s (hd0) $ {root} hit Ctrl & X booted up into Ubuntu. Now will shut down to see if it boots up.
Thanks for everything will let you know in a few minutes
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.