Skip to main content

Install Ubuntu on disk with Windows with both GUID and MBR partitions

This is actually a reminder for me. The original answer is found at

What I had done in my case was the following:
I was in a new PC where everything required SATA connections. I thought my old ATA optical drives would work but no chance obviously. My only solution was to use the one and only 4GB USB stick I found somewhere roaming around the house.

At first, I installed Ubuntu 12.04.  I created my partitions etc. I then had to delete my 4GB in order to get Windows into it. Unfortunately, I found no way to install Windows 7 without deleting Ubuntu 12.04. So... I formatted the whole drive once again and I installed Windows. Now I was ready to install Ubuntu. In this case, I decided to install 13.10... But!

Ubuntu 12.04 had created a GPT record. Windows deleted the partitions found in this GPT record but not the record itself. Instead, it created its MBR record - leaving the GPT record intact. Empty but still there. As a result Ubuntu read the whole disk as unallocated space since it preferred GPT over MBR.

I got into Windows safe mode and did the following:
bootrec /fixmbr
bootrec /fixboot
bootrec /RebuildBcd

No luck!

I googled once more and found the answer linked at the beginning. From Ubuntu 13.10 live, I did the following:
a) Installed gDisk
sudo apt-get install gdisk
b)Then listed the partitions that are on the GUID partition table:
sudo gdisk -l /dev/sda
c) They had come up empty. I had to preserve the MBR and drop the stray GUID partition table identifier entirely:
sudo fixparts /dev/sda

That was all!


Popular posts from this blog

Drupal: Allow registrations through Invite or Referral modules only

The Invite module provides invitations from existing users to their contacts. The Referral module, in contrary, creates a special URL for each existing user, which can be found in each user's profile, and allows new user registration. Even though, these two modules seem to provide the same functionality, they don't (and they shouldn't). Invite module, provides a mechanism for a site administrator to limit new registrations to "Invitations only". Referral module doesn't provide any of this functionality. Some users have requested the Invite module and Referral module to join in one module. Until now, there isn't anything to that direction. Wouldn't it be great though if there was a solution to limit drupal registration to referral or invitation only? Copy the functions below to a refinvite.module file in your sites→all→modules→refinvite folder and enable the module. Then go to http://<your-address-here>/admin/user/settings and enable the new …

Drupal: Status report problem: HTTP request status fails

Some of you may have encountered this problem in some cases. In "Status Report" page, accidentally appears the error below:

HTTP request status   FailsYour system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.
What I did, was to recheck that my webserver had access to internet. Of course it had! The problem exists mostly when there is no information to resolve the domain name used with the local ip address of the webserver. This means that an error occurs in the entries of the DNS server.

In cases where DNS server is not existant(ex. local testing environment) all you have to do is inform the /etc/hosts file. For example if you use the domain http://www.example.local/ and your local ip addr…

Configure drupal_http_request() on the fly

The drupal_http_request() function supports connections using a proxy. You can configure a global proxy to use for all drupal_http_request() callbacks from the settings.php file of your website/installation by filling the following lines with the proper information:For those of you preferring a UI, then HTTP proxy module is for you.But what if you only want to use a proxy in some cases; like a custom module? In that case you will need the following function(modify accordingly):Now all you have to do is Call <?php _MYMODULE_change_proxy(); ?>.Do your drupal_http_request() calls.Call <?php _MYMODULE_change_proxy(TRUE); ?> to reset your previous settings.