This is a question about dual boot system with Windows 10 and and Ubuntu 18.04. The dual boot was setup with wubiuefi.
I cloned the boot disk to a new disk and then replaced it with the new disk. Ubuntu stopped booting after that. I would like to get it back on track.
When I boot my PC I get a grub menu with 4 options:
- Ubuntu
- Advanced options for Ubuntu
- Windows Boot Manager (on /dev/sdb2)
- System setup
If I choose Ubuntu options, I get the following text:
Booting a command list
error: no such device: B0ACCB58ACCB17AC
Press any key to continue..
On pressing any key system hangs.
If I choose the Windows option I get:
error: no such device: 62A5-4B98.
error: file `/EFI/Microsoft/Boot/bootmgfw.efi' not found.
Press any key to continue...
I still can log in to windows, if during the boot up process I select BIOS Boot options. When I do I see the menu:
- P0: WDC WD40EZRZ-00WN9B0
- P2: WDC WD4005FZEX-00Z4SA0
- Windows Boot Manager
- P1: CT1000MX500SSD1
- Xubuntu
- Enter Setup
If I select P0, P1 or P2 option I get a message about a missing boot record. If I select Xubuntu I get to the grub menu I described above. If I select Windows Boot Manager I can successfully boot to windows.
Here is what I see if select e
on the Ubunutu line in grub:
setparams 'Ubuntu'
gfxmode $linux_gfx_mode
insmod gzio
insmod ntfs
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 B0ACCB58ACCB17AC
else
search --no-floppy --fs-uuid --set=root B0ACCB58ACCB17AC
fi
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-4.15.0-39-generic root=UUID=B0ACCB58ACCB17AC loop=/ubuntu/disks/root.disk ro rootflags=sync quiet splash $vt_handoff
initrd /boot/initrd.img-4.15.0-39-generic
How can I fix my grub so that I can boot to Windows and Linux via grub again?
Note: all the above I typed manually (no copy-paste from the boot screen), so my apologies for any typos