3

I bought a dell laptop with pre-existing ubuntu 14 installation. I use both ubuntu and windows on my main machine. when I tried to install windows alongside ubuntu 14 and after I formatted a space from the main drive for it, it told me it can't be installed on this disk because it's a gpt type disk, and the only solution is to delete the disk (in case of booting from usb, you can't boot to usb in uefi mode in this laptop). then I tried to enter ubuntu 14 again, but it wouldn't boot. with this message appearing: `error failure reading sector from 'hd1' so I searched for this message but all the solutions was about a live cd that won't boot. so after that I decided to follow this guide. I partitioned the disk as mentioned there but in uefi mode. then as mentioned I tried to format the windows partition in windows setup as a ntfs drive. the setup told me the same earlier message about gpt type disk. then I tried to open ubuntu 16 again and it booted into emergency mode.

I'm writing this post as I'm installing windows 10 after deleting the whole disk. this question is about knowing the exact reasons and for whom who might encounter the same problem to help him dodging this problem. and if there're some advices on installing ubuntu 16 next.

laptop is dell inspiron 5559 i5-6200U

  • Welcome to Linux! This is the main hate-producing feature m$ windose brings along. Always install in this order:
    1. WindozZze
    2. Everything else.

    I guess 20 years of GRUB aren't enough for Microsoft to just give up their crappy bootloader.. will take some 10 more years at least.

    – Gewure Dec 12 '16 at 16:52
  • Anyone who attempts dual booting without reading https://en.wikipedia.org/wiki/Power-on_self-test , https://en.wikipedia.org/wiki/BIOS , https://en.wikipedia.org/wiki/Master_boot_record , https://en.wikipedia.org/wiki/GUID_Partition_Table , https://en.wikipedia.org/wiki/UEFI is doomed to confusion, failure and frustration. – waltinator Dec 12 '16 at 18:09
  • I actually installed ubuntu alongside windows couple of times on my desktop never encountered such an issue, the worst thing that happens is the casual grub problem. also seen ubuntu installed on many machines never heard of this I feel dump not knowing about this issue for all this time. – mohRamadan Dec 12 '16 at 22:45
  • Your system will have UEFI boot, you just have to find the right combinations of settings. With Dell I have seen users say to have CSM/Legacy/BIOS mode on, but still boot in UEFI mode. Most systems if you have CSM on, then only boot in BIOS mode. You may have to turn on or allow USB boot or USB UEFI boot. Another Dell model, but suggested settings changes. https://ubuntuforums.org/showthread.php?t=2342359 – oldfred Dec 14 '16 at 16:02
  • I found the problem with uefi usb booting, it was enabled but when I burnt the usb I choose 'MBR for both BIOS and UEFI' frankly that didn't work and had to be ' GPT for UEFI only'. I feel dump for not checking this – mohRamadan Dec 18 '16 at 16:37

1 Answers1

1

The error message you're seeing, while technically accurate, tends to lead people on wild goose chases. The problem is not the partition table type; it's the boot mode. Specifically, your existing Ubuntu installation was in EFI mode and used the GUID Partition Table (GPT), but you booted your Windows installation medium in BIOS/CSM/legacy mode using a feature called the Compatibility Support Module (CSM). When booted in BIOS mode, the Windows installer insists on installing to an MBR disk, not to a GPT disk.

The solution is to ensure that your Windows installation medium supports EFI-mode booting, and boot it in that mode, either by disabling the CSM or by using firmware-specific features to boot in EFI mode. You can probably disable the CSM using your firmware setup utility, but the details of how to do this vary greatly from one EFI to another. Ensuring that the Windows installation medium supports EFI-mode booting requires using the right tool to prepare the boot medium, and I'm not an expert on that subject for Windows boot media. You may want to ask on a Windows forum about that.

I have written a web page about this subject you may want to read; however, my page is written from the perspective of a system with Windows pre-installed and the user wants to install Linux, not the other way around. The principles involved are the same, but some important details (like preparing the OS installation boot medium) differ. (I'm not 100% positive, but I think Rufus will write either Linux or Windows installation images, though.)

Note also that Windows will set its boot loader as the default after it installs. Ubuntu is smarter about detecting Windows and providing a Windows boot option. This is why most instructions suggest installing Windows first and Ubuntu second. If you're re-installing everything from scratch, this is the way to go. If your Ubuntu installation still boots, though, you can install Windows second and then use any of several tools to adjust the boot order after Windows is installed. The third-party EasyUEFI is likely to be the best choice for this task. You'll then need to run sudo update-grub to have GRUB detect Windows and offer it as an option.

Rod Smith
  • 44,284
  • 7
  • 63
  • 105
  • thanks for the answer, when installing everything from scratch I've always started with windows as it's the one that spoils everything. but reading the tutorial I linked in the question, it suggested installing ubuntu first. although in my case installing windows first was the best solution. – mohRamadan Dec 15 '16 at 14:50