Question Everything
That says you have booted Ubuntu in BIOS/Legacy/CSM boot mode.
It does not say anything about Windows.
You can check in Windows.
Or if drive is gpt partitioned then Windows has to be UEFI as it only installs in UEFI boot mode from gpt partitioned drives and only in BIOS mode from the old MBR partitioning.
sudo parted -l
UEFI boot install & repair info - Regularly Updated :
https://ubuntuforums.org/showthread.php?t=2147295
Please use Thread Tools above first post to change to [Solved] when/if answered completely.
Question Everything
Here's my output ofCode:sudo parted -lCode:shadius@shadius-phantom:~$ sudo parted -l [sudo] password for shadius: Model: ATA LITEONIT LCS-256 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 608MB 607MB primary ntfs boot 2 608MB 256GB 255GB primary ntfs Model: ATA Hitachi HDS72101 (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 983GB 983GB primary ext4 boot 2 983GB 1000GB 17.1GB extended 5 983GB 1000GB 17.1GB logical linux-swap(v1) shadius@shadius-phantom:~$
Question Everything
According to the output, you do not have an EFI partition in your Windows drive, therefore it looks like you have Windows 10 in Legacy mode.
Can you confirm that you originally started with Windows 7 (or 8) and then upgraded in situ until you reached Windows 10?
If you run Boot-Repair, DO NOT run the auto fix.
With two drives you want to only use the advanced mode for repairs.
In advanced mode you can choose an install and choose a drive on where to install boot loader.
https://sourceforge.net/p/boot-repair/home/Home/
You really want a Windows boot loader in MBR of Windows drive and grub boot loader in the MBR of the Ubuntu drive.
Grub only boots working Windows. And Windows turns fast start up which sets hibernation flag and then grub cannot boot Windows. You have to directly boot Windows, but if you have Windows boot loader in Windows drive you just need to select it in BIOS/UEFI one time boot and fix Windows then boot into grub again.
Best to also have Windows repair/recovery flash drive to fix Windows.
And of course you always need good current backups.
UEFI boot install & repair info - Regularly Updated :
https://ubuntuforums.org/showthread.php?t=2147295
Please use Thread Tools above first post to change to [Solved] when/if answered completely.
@oldfred
I do not think that the OP needs boot-repair because there has been no discussion about non booting.
Now that it seems that both systems are in Legacy mode, there is the requirement in post 7 to use grub as the OS selection rather than boot options in the start up UEFI/BIOS screens.
If you usewithin Ubuntu, that should pick up the Windows OS.Code:sudo update-grub
However, the OP wants Windows as a default with Ubuntu second and I don't know grub intimately enough to help with that request.
My preference would be to use Boot Device Options when powering up the PC but that has been rejected by the OP.
If OP installs Windows boot loader to Windows drive, then he can set that as default in BIOS/UEFI.
Then whenever he/she wants Ubuntu, use the BIOS one time boot key, often f12 or f10 to choose to boot Ubuntu.
You can change default boot in grub also, but Windows 10 will keep turning on fast start up with updates and then grub will not boot Windows until fast start up turned off.
Multiple ways to change boot order in grub or default boot. Ubfan posted the one where you change order scripts are run.
You can also edit grub default either by number or description. Or manually copy 40_custom to 06_custom and add a Windows entry to that script. Grub processes scripts into grub.cfg in script number order XX_.
https://help.ubuntu.com/community/Gr...ecific_Entries
Even more examples:
https://help.ubuntu.com/community/Gr...ult.2BAC8-grub
find your windows entry in grub.cfg and copy to grub default like this Vista entry - If you edit your windows command use the edited copy as this must match the title exactly:
gedit /boot/grub/grub.cfg
and copy into grub_default here:
sudo -H gedit /etc/default/grub
GRUB_DEFAULT=0
change to comment # or delete old and add new :
#GRUB_DEFAULT=0
GRUB_DEFAULT="Windows Vista (on /dev/sda1)"
Then do:
sudo update-grub
UEFI boot install & repair info - Regularly Updated :
https://ubuntuforums.org/showthread.php?t=2147295
Please use Thread Tools above first post to change to [Solved] when/if answered completely.
Thank you for the informative reply - much appreciated.
Therefore, when selecting the OS, there is a distinct advantage to use UEFI/BIOS Boot Device Options rather than grub when the systems are on separate drives.
UEFI firmware is not affected by OS upgrades, albeit Windows or Ubuntu.
With BIOS that was true. BIOS and operating system were totally separate. But with BIOS updates, it reset to defaults and you often had to redo your settings.UEFI firmware is not affected by OS upgrades, albeit Windows or Ubuntu.
But with UEFI some settings are reset & some are remembered. And operating system can modify some UEFI settings. Windows typically syncs BCD with UEFI boot options and that is why you often have to add another setting to BCS for Ubuntu.
Other settings are like BIOS and are only changed if you do an UEFI update. But both Windows and now Ubuntu (fwupd) may do UEFI update changing some settings back to defaults and causing issues.
UEFI boot install & repair info - Regularly Updated :
https://ubuntuforums.org/showthread.php?t=2147295
Please use Thread Tools above first post to change to [Solved] when/if answered completely.
Bookmarks