Monday, April 2, 2018

boot - Reinstall of 14.04 after somehow changing mbr to gpt



I had a functioning ubuntu 14.04 system that I upgraded to 16.04 and everthing seemed to be working fine until I somehow changed my partition ( I think) from mbr to gtp.




My computer won't boot even to the grub menu so since my /home is on a seperate partition I decided to reinstall ubuntu 14.04 without reformatting /home to get system back (as I've done before) The problem is that after selecting something else and formatting / as ext4 and setting /home as ext4 but not formatting it, I hit install now and got the following error which I've never seen before.



" The partition table format in use on your disks normally requires you to create a separate partition for boot loader code. This partition should be marked for use as “Reserved BIOS boot area” and should be at least 1 MB in size. Note that this is not the same as a partition mounted on /boot. If you do not go back to the partitioning menu and correct this error, bootloader installation may fail later, although it may still be possible to install the boot loader to a partition."



Also there is small amounts of "free space" showing up between partitions in the install partition table.



Here is my current gparted gparted



and the installation type screen showing the free space and current device for bootloader installation installation type




Is there anything I can do to get back to a working ubuntu install, for instance if I shut down and boot to live CD again (to change from UEFI to BIOS somehow) have I wrecked everything by already formatting SDA5?



Edit /etc/fstab looks like




overlay / overlay rw 0 0



tmpfs /tmp tmpfs nosuid,nodev 0 0



/dev/sda6 swap swap defaults 0 0





Also. Output of gdisk /dev/sda is




GPT fdisk (gdisk) version 0.8.8



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



Found valid GPT with protective MBR; using GPT.





Could I get back to mbr using gdisk? I could if MBR was present but I'm not sure with protective.



After discussions in the comments...



You do/did have a GPT disk. The GPT has a built in protective MBR for compatibility.



I just looks like the boot flag may have disappeared from sda1. Use gparted to add that flag back. If the fstab that you posted came from sda5, then it's wrong... reinstall Ubuntu into sda5, and tell it that you've got /home in sda7, and it should put in a valid fstab, and reinstall grub so that you can dual-boot again.




Report back. Cheers, Al


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...