I have a machine with Windows 10 installed alongside Ubuntu 16.04. I have lost the partition before after Windows update but was able to get it back by using a Live CD and running either boot-repair or re-installing grub, but nothing is working this time.
It is a UEFI system. EFI partition is sda2, Linux partition is sda6. Secure boot is disabled. Fast Startup is disabled (in Windows).
Boot-repair hits an error at the very end - log below:
I've tried all of the upvoted answers on these pages, with no success (just keeps loading windows):
Windows 10 upgrade kills grub and boot-repair doesn't help
How can I repair grub? (How to get Ubuntu back after installing Windows?)
https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot
Grub and Ubuntu disappeared after Windows update
How can I repair grub? (How to get Ubuntu back after installing Windows?)
Any help would be much appreciated. Let me know if more info is needed.
Output of:
cat /etc/apt/sources.list; for X in /etc/apt/sources.list.d/*; do echo; echo; echo "** $X:"; echo; cat $X; done
deb cdrom:[Ubuntu-GNOME 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe
** /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-xenial.list:
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial main
# deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial main
EDIT: Problem ended up being that the ubuntu folder on my EFI partition was a file - deleting it and re-installing grub got me the partition back. This post helpe me
cat /etc/apt/sources.list; for X in /etc/apt/sources.list.d/*; do echo; echo; echo "** $X:"; echo; cat $X; done
Look for this and comment it out. http://repo.mongodb.org... then run Boot-Repair's full reinstall of grub. – oldfred Jul 05 '18 at 22:56sudo apt-get autoremove
to get rid of all those superfluous kernels that are downloaded that must be taking up a lot of unnecessary space. – Paul Benson Jul 06 '18 at 19:38