Upgraded to 24.04 lts on my dual boot machine, Windows lost
I upgraded and now there is no choice on boot to select the system to boot to, it boots automatically to Ubuntu; is there anything I can do to correct this please?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bernard Stafford
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Open the BIOS and turn off 'fast-boot' or known as 'quick-boot' it skips all choices available.
Be sure to save and exit BIOS.
Revision history for this message
|
#2 |
Thank you for the quick reply Bernard, I attempted your suggestion but
there isn't a fast boot choice, only choices are the drives listed. I'm
beginning to think that I've lost the whole Windows installation and the
data that goes with it. I have upgraded the OS (Ubuntu) many times
before and it hasn't lost the dual boot before.
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 12/9/24 16:00, Bernard Stafford wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Bernard Stafford proposed the following answer:
> Open the BIOS and turn off 'fast-boot' or known as 'quick-boot' it skips
> all choices available.
>
Revision history for this message
|
#3 |
What kind of "upgrade" was that, from which release?
Maybe https:/
Revision history for this message
|
#4 |
If powered on, shut down your PC.
Boot into UEFI/BIOS firmware settings.
On the screen that appears, press the F7 or F12 hotkey on the keyboard, or use the cursor to
click Advanced Mode on the bottom-right of the screen.
On the next screen, go to Boot tab.
Select Fast Boot.
Now, enable or disable Fast Boot per your requirement.
Next, press F10 to Save & Exit Setup.
Finally, select OK. The computer will now restart and enable or disable Fast Boot per your
selection.
Revision history for this message
|
#5 |
Thanks again Bernard, I couldn't find fast boot or anything similar but
thanks to your instructions I found under the advanced list [SATA Mode]
this was set to AHCI so I changed it to IDE then upon restart I got the
dual boot screen. I get an error trying to boot to Windows and am
attempting repairs now.
Once again, I appreciate your help
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 12/9/24 21:00, Bernard Stafford wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Bernard Stafford proposed the following answer:
> If powered on, shut down your PC.
> Boot into UEFI/BIOS firmware settings.
> On the screen that appears, press the F7 or F12 hotkey on the keyboard, or use the cursor to
> click Advanced Mode on the bottom-right of the screen.
> On the next screen, go to Boot tab.
> Select Fast Boot.
> Now, enable or disable Fast Boot per your requirement.
> Next, press F10 to Save & Exit Setup.
> Finally, select OK. The computer will now restart and enable or disable Fast Boot per your
> selection.
>
Revision history for this message
|
#6 |
Fast boot wasn't an option but under the Advanced tab I changed AHCI to IDE and now have the dual boot screen on start-up. Thanks for the help Bernard.
Revision history for this message
|
#7 |
G'day Manfred,
the upgrade was from 24.02 (I'm pretty sure) to 24.04 LTS.
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 12/9/24 18:40, Manfred Hampl wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> What kind of "upgrade" was that, from which release?
>
> Maybe https:/
> linux-distros-fix helps
>
Revision history for this message
|
#8 |
the upgrade was from 24.02 to 24.04 LTS
Revision history for this message
|
#9 |
An Ubuntu release with number 24.02 has never existed, so I assume that is was 22.04 (Ubuntu jammy from April 2022).
Revision history for this message
|
#10 |
Sorry Manfred, I thought that was what it was, it wasn't a LTS version
it was the last release before this new LTS one. I do have 22.04 on
this machine I am using at the moment and when I went to upgrade it the
upgrade spat the dummy and told me I had a network problem so I just
tried a couple more times and gave up. As far as the dual boot machine
is concerned, now that I have the dual boot screen Windows refuses to
boot, something is corrupt there and it won't load. I followed the grub
link to see if that made any difference but there was no grub file at
that location. I haven't had a chance to go looking for it as yet, I
assume there is one somewhere.
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 13/9/24 15:05, Manfred Hampl wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Manfred Hampl posted a new comment:
> An Ubuntu release with number 24.02 has never existed, so I assume that
> is was 22.04 (Ubuntu jammy from April 2022).
>
Revision history for this message
|
#11 |
The last non-LTS version before Ubuntu 24.04 was 23.10.
In any case:
I suggest that you try running boot-info (or boot-repair in the "info" mode).
This will hopefully give hints what maybe is missing in Windows for correctly starting.
Revision history for this message
|
#12 |
Thanks again, I will give that a try, Windows is going into auto-repair
mode at the moment but it doesn't seem to be having much luck. I think
it's as baffled as i am. Anyway, I'll keep trying but it may end up
being a reload of Windows I'm thinking. I appreciate you assistance but
I feel guilty taking up your time like this.
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 13/9/24 17:25, Manfred Hampl wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Manfred Hampl posted a new comment:
> The last non-LTS version before Ubuntu 24.04 was 23.10.
>
> In any case:
> I suggest that you try running boot-info (or boot-repair in the "info" mode).
> This will hopefully give hints what maybe is missing in Windows for correctly starting.
>
Revision history for this message
|
#13 |
It sounds like after upgrading to Ubuntu 24.04 LTS on your dual-boot machine, the Windows partition is no longer accessible. This can happen when the bootloader (GRUB) doesn't properly detect the Windows installation. Here are a few steps to try and recover your Windows boot:
1. Check if Windows partition still exists:
Boot into Ubuntu and open a terminal.
Run the command:
bash
Copy code
sudo fdisk -l
Look for the Windows partition (usually NTFS). If it's listed, your Windows data is still there.
2. Update GRUB:
In the terminal, run the following to update GRUB and detect other operating systems:
bash
Copy code
sudo update-grub
This command should scan for any existing operating systems, including Windows, and add them to the GRUB menu.
3. Check GRUB menu at startup:
When you boot your machine, press Esc or Shift while booting to access the GRUB menu.
If Windows is listed, you can select it to boot into.
4. Repair Bootloader with Boot-Repair:
If the above steps don’t work, you can try using Boot-Repair, a tool to fix boot issues:
Install Boot-Repair by running:
bash
Copy code
sudo add-apt-repository ppa:yannubuntu/
sudo apt update
sudo apt install boot-repair
Run Boot-Repair and choose the Recommended Repair option.
5. Check BIOS/UEFI boot settings:
Sometimes, the upgrade can change the boot priority. Make sure the correct bootloader (GRUB) is set as the default in your BIOS/UEFI settings. https:/
These steps should help restore access to your Windows installation. Let me know if you need more assistance!
Revision history for this message
|
#14 |
G'day Syed,
thank you for your asssistance and explanation, it was very
helpful. I do still have the Windows data etc and have managed to boot
into it after a lot of mucking around. I am still having problems
booting into Windows though and have to resort to the press <Esc> on
boot to get the menu so that I can select Windows, else it just boots
straight to Ubuntu. I think I need to have a go at using the
boot-repair tool but before I do that I have a question re the
instructions you gave me to update the grub:
I typed the following into a terminal:
bash (no problem)
Copy code (No such command error; I tried again with l/c c, same response)
sudo update-grub (this appeared to work OK)
Am I doing something wrong with the Copy code line? At least I can
now access the Windows OS and that is great, I thought I might have lost
it and was dreading having to reinstall all the software and subsequent
updates, fortunately all the data files are stored on my NAS but
resetting everything would have taken weeks probably.
I really appreciate how everyone has been so helpful.
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 16/9/24 01:20, SYED SAQIB wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> SYED SAQIB posted a new comment:
> It sounds like after upgrading to Ubuntu 24.04 LTS on your dual-boot
> machine, the Windows partition is no longer accessible. This can happen
> when the bootloader (GRUB) doesn't properly detect the Windows
> installation. Here are a few steps to try and recover your Windows boot:
>
> 1. Check if Windows partition still exists:
> Boot into Ubuntu and open a terminal.
> Run the command:
> bash
> Copy code
> sudo fdisk -l
> Look for the Windows partition (usually NTFS). If it's listed, your Windows data is still there.
> 2. Update GRUB:
> In the terminal, run the following to update GRUB and detect other operating systems:
> bash
> Copy code
> sudo update-grub
> This command should scan for any existing operating systems, including Windows, and add them to the GRUB menu.
> 3. Check GRUB menu at startup:
> When you boot your machine, press Esc or Shift while booting to access the GRUB menu.
> If Windows is listed, you can select it to boot into.
> 4. Repair Bootloader with Boot-Repair:
> If the above steps don’t work, you can try using Boot-Repair, a tool to fix boot issues:
> Install Boot-Repair by running:
> bash
> Copy code
> sudo add-apt-repository ppa:yannubuntu/
> sudo apt update
> sudo apt install boot-repair
> Run Boot-Repair and choose the Recommended Repair option.
> 5. Check BIOS/UEFI boot settings:
> Sometimes, the upgrade can change the boot priority. Make sure the correct bootloader (GRUB) is set as the default in your BIOS/UEFI settings.
> These steps should help restore access to your Windows installation. Let me know if you need more assistance!
>
Revision history for this message
|
#15 |
1. The "answer" by SYED SAQIB is very dubious and has to be taken with caution. It most probably has been created by some kind of AI system, just for the purpose of posting a dubious web link.
Those "bash" and "Copy code" lines apparently are some failed formatting instructions and should be discarded.
2. There is no need for boot-repair, because Windows is running when selected.
If you want to have "Windows" being offered in the grub menu, you have to
a. configure grub to display the grub menu and
b. configure grub to show Windows in the grub menu
Open a terminal window and issue the command
sudo gnome-text-editor /etc/default/grub
This will ask for your password (as a confirmation for an administrative action) and will then open an editor with the grub configuration file loaded.
Make the following changes:
Change the lines
GRUB_TIMEOUT_
GRUB_TIMEOUT=0
to
GRUB_TIMEOUT_
GRUB_TIMEOUT=10
and change
GRUB_DISABLE_
to
GRUB_DISABLE_
Then save the file and close the editor.
Finally run the command
sudo update-grub
After that change when booting you should see a grub menu that offers Ubuntu and Windows (and boots into Ubuntu when no selection is made within 10 seconds).
Revision history for this message
|
#16 |
Thanks again Manfred,
this time I was able to edit the grub file and it appears that my
system is back to normal operation. I really appreciate all the
assistance I have been given. Just one further question if I may; Can I
change the order of the grub menu so that Windows is the first choice
rather than last?
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 16/9/24 15:30, Manfred Hampl wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Manfred Hampl posted a new comment:
> 1. The "answer" by SYED SAQIB is very dubious and has to be taken with caution. It most probably has been created by some kind of AI system, just for the purpose of posting a dubious web link.
> Those "bash" and "Copy code" lines apparently are some failed formatting instructions and should be discarded.
>
> 2. There is no need for boot-repair, because Windows is running when selected.
> If you want to have "Windows" being offered in the grub menu, you have to
> a. configure grub to display the grub menu and
> b. configure grub to show Windows in the grub menu
>
> Open a terminal window and issue the command
>
> sudo gnome-text-editor /etc/default/grub
> This will ask for your password (as a confirmation for an administrative action) and will then open an editor with the grub configuration file loaded.
> Make the following changes:
>
> Change the lines
> GRUB_TIMEOUT_
> GRUB_TIMEOUT=0
> to
> GRUB_TIMEOUT_
> GRUB_TIMEOUT=10
>
> and change
> GRUB_DISABLE_
> to
> GRUB_DISABLE_
>
> Then save the file and close the editor.
> Finally run the command
>
> sudo update-grub
>
> After that change when booting you should see a grub menu that offers
> Ubuntu and Windows (and boots into Ubuntu when no selection is made
> within 10 seconds).
>
Revision history for this message
|
#17 |
There are different methods to set Windows the default.
The one which I rate most failsafe is the following:
Open a terminal window and issue the command
grep menuentry /boot/grub/grub.cfg
Count the lines in the output. Which line indicates Windows?
Subtract 1 from that number.
Execute the command
sudo gnome-text-editor /etc/default/grub
In the line
GRUB_DEFAULT=0
replace the number "0" by the "line number of Windows minus 1"
Save the file, close the editor and run
sudo update-grub
(This does not put Windows into the first line, but it makes Windows the choice already selected.)
Revision history for this message
|
#18 |
Thanks again Manfred, you have been very helpful and i appreciate your
input. All is running normally now.
Cheers
Rod
¯\_( ͡⟃ ͜ʖ ⟄)_/¯
On 16/9/24 17:40, Manfred Hampl wrote:
> Your question #818710 on Ubuntu changed:
> https:/
>
> Manfred Hampl posted a new comment:
> There are different methods to set Windows the default.
> The one which I rate most failsafe is the following:
>
> Open a terminal window and issue the command
>
> grep menuentry /boot/grub/grub.cfg
>
> Count the lines in the output. Which line indicates Windows?
> Subtract 1 from that number.
> Execute the command
> sudo gnome-text-editor /etc/default/grub
> In the line
> GRUB_DEFAULT=0
> replace the number "0" by the "line number of Windows minus 1"
>
> Save the file, close the editor and run
> sudo update-grub
>
> (This does not put Windows into the first line, but it makes Windows the
> choice already selected.)
>