It was some time back when I had dual booted my laptop (Lenovo g50-30) with Ubuntu 17.10, which used to have Windows 10. After some time, I deleted Ubuntu to only have windows 10.

Also, I was trying to fix a bootloader problem, and in doing that I made a mistake and now I am unable to boot into windows.

However, I just realized that my BIOS settings are not saving, which was cause due to the Ubuntu 17.10 bug which I was unaware of, and no bootable usb can be detected by it too.

I can't think of any way to recover my machine, as I can't boot into any OS, and BIOS isn't working for me as well. Please help guys.

Edit: Hey guys, thanks for the response. I managed to find a solution to my problem and am typing now from my laptop. Luckily, there was still an ubuntu entry in my boot menu, and on launching that, I reached minimal Bash. I used chainloader from there to boot lubuntu which was on a usb. With this I managed to edit my rEFInd conf file and managed to enable it to detect all efi files, which I had disabled for some reason. rEFInd managed to detect my windows recovery media, and was able to fix my windows. Now I have to just fix my bios :).

  • Welcome to Ask Ubuntu! :-) Unfortunately, if you cannot boot anything, you cannot boot Ubuntu so that makes your question off-topic here. If you have a DVD Drive, you might still be able to boot Ubuntu using that... Please confirm otherwise you'll have to return the laptop to the manufacturer.
    – Fabby
    Mar 23, 2018 at 13:47
  • @Fabby that's incorrect, as Ubuntu is the likeliest cause of the issue. Sep 23, 2018 at 3:21

1 Answer 1


Although your problem is not strictly relevant to Ubuntu, in short you could have a messed up or incorrectly configured Windows BCD, or a missing/corrupt bootmgfw.efi file (if you have a GPT disk). Either way you will not be able to boot up.

You haven't mentioned whether you are using a UEFI GPT disk or MBR one (I'm assuming the former case). Suffice it to say you will need to boot up externally into 'repair mode' either from a Windows installation DVD or a prepared bootable repair disk/USB drive. That way you can directly access your hard drive.

BIOS is independent of your OS, ie you should be able to access BIOS and save settings even without a hard drive in your machine. Firstly if a HDD is installed it should be automatically detected by BIOS whether it has an OS on it or otherwise, as well as any external drive if connected. First, I would check in your BIOS if 'secure boot' is enabled. If so disable it as that can make your HDD inexplicably disappear sometimes; that does happen if Windows 7 is installed. Save that and then re-enter BIOS. If your drives still fail to be detected you could be looking at hardware issues.

It will take too long to go into the wonders of BCD configuration, but have a read of How to fix Windows 8 UEFI problems. It's the same repair procedure for a Win 10 BCD. Good luck!

  • The OP is suffering from this bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147 Ubuntu bug. Once you boot a 17.10 stick or live CD the BIOS of certain computer models (mainly Lenovo) is corrupted in a way that makes it impossible to save BIOS settings or boot from USB, i.e. you are trapped in whatever is currently on your HDD. AFAIK it helps to physically remove the internal HDD to force the machine to boot from USB. (Meanwhile the bug is fixed and 17.10.1 is released).
    – PerlDuck
    Mar 23, 2018 at 16:03
  • Forgive me as I don't know about this bug as I have Ub 16.04. But are you saying that Ub 17.10 actually and inadvertently flashes BIOS when it is run, because AFAIK the only way to change a BIOS (eg update it) is to flash it with a special prog for that purpose? Mar 23, 2018 at 16:52
  • No worries. I thought so as well. I don't understand the details but basically a certain driver shipped with U17.10 writes two bytes to the BIOS where it should write just one and thus overwrites something so you cannot save BIOS settings any longer. But there's a fix and as long as you can install and run another kernel you can revert the mess easily. Just google 17.10+lenovo+bios.
    – PerlDuck
    Mar 23, 2018 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .