PDA

View Full Version : [SOLVED] Windows entry removed from grub



thulasiram-valleru
November 25th, 2016, 04:51 PM
I upgraded from Ubuntu 14.04 to Ubuntu 16.04. From then Windows entry disappeared from the boot loader. By mistake I made an entry of windows recovery environment into grub. I used boot-repair again to repair grub but no use.

Below I posted the link for the grub config file and info generated by boot-repair. Could any find the issue with my grub file and help me in fixing the situation.

http://paste2.org/nYAxKkyW

Bucky Ball
November 25th, 2016, 05:53 PM
Welcome. Open a terminal and run this command:


sudo update-grub

Reboot. Windows there?

thulasiram-valleru
November 25th, 2016, 06:06 PM
The windows 10 entry was replaced by still Windows recovery environment. The command doesn't do much good, it still detects windows recovery environment not actual windows environment on the partition.

yancek
November 25th, 2016, 06:50 PM
The grub.cfg entry you posted for windows shows "Recovery Environment" in the label but it is pointing to sda2 which looks to me like your windows system partition since it is by far the largest partition and also contains the windows boot files. What happens when you select that option to boot?

oldfred
November 25th, 2016, 06:55 PM
It says Windows recovery, but looks too large to be a standard Windows recovery.
Grub attempts to parse what version Windows you have and if no match found to exact description it defaults to Windows Recovery for description.

You show sda1 as Windows boot partition as it has boot flag. But it is not showing bootmgr, just BCD.
Windows uses boot flag, but grub does not. And to find a Windows bootable partition it looks for the two required boot files bootmgr & BCD. You may need to copy bootmgr into sda1 from sda2.
Windows itself will only boot from partition with boot flag. Grub may show two boot entries if you have two sets of bootmgr & BCD.

Boot-Repair is primarily for Linux repairs, it can only do minor Windows repairs, most due to the proprietary/copyrighted limits. Best to create Windows repair/recovery disk to do Windows repairs.
And if now newer Windows make sure fast start up is off.
Windows 10 repair disk
http://www.tenforums.com/tutorials/4200-recovery-drive-create-windows-10-a.html
http://www.tenforums.com/tutorials/36083-system-repair-disc-create-windows-10-a.html
Repair/backup/restore
https://support.microsoft.com/en-us/instantanswers/3a747883-b706-43a5-a286-9e98f886d490/create-a-recovery-drive
http://windows.microsoft.com/en-us/windows-10/windows-10-recovery-options


You also have a lot of old kernels. The look like from an older install, so may not still be in dpkg. So try to uninstall using dpkg. If not found then you may just delete.

https://help.ubuntu.com/community/RemoveOldKernels
(https://help.ubuntu.com/community/RemoveOldKernels)
Check current kernel I also keep one older just in case:
#Current kernel:
uname -a
# kernels, shows older also?
dpkg --list | grep linux-image
sudo apt-get -s autoremove

If you end up having to use rm to houseclean you may have bits of the old kernels in other locations also.

kernel house clean
/usr/src/*
http://askubuntu.com/questions/301466/files-are-piling-up-in-usr-src-how-can-i-stop-this


Did you also check /var/cache/apt/archives? You may have the old .deb's taking up space.
/var/cache/apt/archives

(https://help.ubuntu.com/community/RemoveOldKernels)

thulasiram-valleru
November 25th, 2016, 11:09 PM
It goes to windows repair that clearly shows windows recovery environment is also present in the same partition.

thulasiram-valleru
November 25th, 2016, 11:34 PM
Windows is installed in sda2

oldfred
November 26th, 2016, 01:22 AM
Grub is only booting the Windows install in sda2, as it says in description.
But you may have been booting from sda1 as that has boot flag and would be only partition Windows would boot from.
Have you moved a bootmgr to sda1 and updated grub to see if you get another grub entry for that Windows.

thulasiram-valleru
November 26th, 2016, 11:19 AM
Grub is only booting the Windows install in sda2, as it says in description.
But you may have been booting from sda1 as that has boot flag and would be only partition Windows would boot from.
Have you moved a bootmgr to sda1 and updated grub to see if you get another grub entry for that Windows.


As the boot flag says, its a MBR and mostly loaded with grub. Its not having the correct entry of Windows in grub.cfg that fails to boot to windows. Need steps to recover the record or modify.

thulasiram-valleru
November 26th, 2016, 12:57 PM
I upgraded from Ubuntu 14.04 to Ubuntu 16.04. From then Windows entry disappeared from the boot loader. By mistake I made an entry of windows recovery environment into grub. I used boot-repair again to repair grub but no use.

Below I posted the link for the grub config file and info generated by boot-repair. Could any find the issue with my grub file and help me in fixing the situation.

http://paste2.org/nYAxKkyW

I recovered the environment again.

I followed the below steps:

1. bootsect /nt60 ALL but it disturbs grub.
1.1. After windows recovery, burn a disk or make a usb bootable with ubuntu, install boot-repair utility and use recommended repair option, then restart. Every thing works file.

2. bootsect /nt60 {partition. E.g., D:\} or bootsect /nt60 SYS