0

for some reason my boot-loader stopped working and I had to use the recovery disc utility to restore grub.

After reinstalling grub, the windows partitions doesn't appear anymore (on grub and on ubuntu).

I tried to boot an windows installation cd to recover windows, and make some backups, and it says the i cant do that because the disk is locked (whatever that means).

Any help would be much appreciated.

the result of gdisk -l /dev/sda is:

GPT fdisk (gdisk) version 1.0.0

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): DE3382C7-BEC6-4E8D-9E5B-BA230F20056B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1050623   512.0 MiB   8300  EFI System 
   2         1050624      1237592063   589.6 GiB   8300  
   3      1237592064      1237624831   16.0 MiB    0C01  Microsoft 
   4      1237624832      1945298943   337.4 GiB   EF00  Basic data 
   5      1945298944      1953523711   3.9 GiB     8200  

And here's a screenshot of gparted (the windows partition is highlighted): Gparted

Thanks in Advance :)

  • Do sudo update-grub and see if that works. – TheWanderer Mar 23 '16 at 21:09
  • will do! ill report in a minute – Afonso Muralha Mar 23 '16 at 21:13
  • Ok, it found a windows recovery partition: Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.2.0-34-generic Found initrd image: /boot/initrd.img-4.2.0-34-generic Found linux image: /boot/vmlinuz-4.2.0-30-generic Found initrd image: /boot/initrd.img-4.2.0-30-generic Found Windows Recovery Environment (loader) on /dev/sda4 done – Afonso Muralha Mar 23 '16 at 21:17
  • Ok, i successfully booted windows, but it gives me an error. I tried to restore the windows bootloader to repair windows, but no good, windows is corrupted, and I have no grub now :( – Afonso Muralha 6 mins ago And the worst is that boot repair disk gives me an error: GPT detected. Please create a BIOS........ – Afonso Muralha 5 mins ago – Afonso Muralha Mar 23 '16 at 21:42
  • 1
    STOP. You have a UEFI install, but if Boot-Repair wants you to add a bios_grub partition that is for a BIOS boot. UEFI and BIOS are not compatible and you have to boot only from UEFI menu. Boot Boot-Repair in UEFI mode from UEFI and reinstall grub. Then you should be able to boot both Ubuntu & Windows in UEFI mode, unless you left Windows fast start up on. Then you can only boot from UEFI. – oldfred Mar 23 '16 at 23:05
0

I've used this guide more than once, works every time.

https://help.ubuntu.com/community/Boot-Repair

Try this if

sudo update-grub

does not work.

  • I tried boot repair, but no luck until now, i did update-grub and ill report again in a few minutes (see comments) – Afonso Muralha Mar 23 '16 at 21:19
  • This is not the same as repair disk, did you look at the link? Some of the steps includes update grub... – Izzno Mar 23 '16 at 21:21
  • Ok, i successfully booted windows, but it gives me an error. I tried to restore the windows bootloader to repair windows, but no good, windows is corrupted, and I have no grub now :( – Afonso Muralha Mar 23 '16 at 21:35
  • And the worst is that boot repair disk gives me an error: GPT detected. Please create a BIOS........ – Afonso Muralha Mar 23 '16 at 21:36
0

You may need to disable 'Fast Boot' in Windows. For information on how to do this, please see http://www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html

This is a good guide for Windows 10, and googling can get you instructions for other Windows versions.

  • I can't boot windows – Afonso Muralha Mar 23 '16 at 21:39
  • That's not going to help if Windows is the OS not booting. – TheWanderer Mar 23 '16 at 21:42
  • You should be able to boot Windows from the BIOS boot menu. – Daniel Mar 23 '16 at 21:45
  • Thanks, the issue was solved by reinstalling windows and restoring grub after. – Afonso Muralha Mar 28 '16 at 8:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.