Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Dual Boot Problem - GPT error

  1. #1
    Join Date
    Nov 2005
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Dual Boot Problem - GPT error

    Need help on this GPT error.

    Last time, I'm dual booting Windows 7 and Ubuntu 12.10. Both we're working except for the NVIDIA optimus which is not detected on Ubuntu 12.10.

    As for curiosity, I tried triple booting with Sabayon as the 3rd OS. Installation of Sabayon was successful, booted to Sabayon and update then after restart, problem arises. Can't boot to Windows, can't boot to Ubuntu, can only boot to Sabayon. Other problem on Sabayon, after update, wireless stopped working, LAN stopped working and there's no way I can connect to the internet. So I decided to just reinstall everything.

    This time, I installed Windows 7 and was successful. Tried to install Ubuntu again and failed. I can no longer install Ubuntu alongside Windows 7.
    This time, on installing Ubuntu, I get an error about GPT.


    And after pressing YES, partition shown as empty. No windows is detected with gparted. Same with NO, outcome is still the same. No windows partition is detected. As if hard disk is empty.


    The same error above occurs when I tried to install Ubuntu via WUBI.

    Weird. It works before but this time, it won't.

    Anyone have experience something like this? Can anyone share their experiences and how they fixed it?

    Thanks.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-land
    Beans
    11,137
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    It looks like one of the OSes used an old, out of date partition manager. Some of the old ones do not support GPT yet. I know that Win7 and Ubuntu 12.04+ handle this later, so guess which OS was the problem? You can say it. Go ahead.

    In the future, you need to avoid using older OSes to manage GPT format disks. Don't use WinXP either as an example. Don't use fdisk under any OS, always use Gparted or parted going forward. These tools handle both MBR and GPT partitioning perfectly.

    Don't use WUBI unless you don't have **any** other choice. You will thank me.

    So boot into a liveCD or off a flash drive running Ubuntu 12.04 or later. Then drop to a shell, run $ sudo parted -l and post the results.

    If you are in a real hurry, you might try boot-repair, but I wouldn't until you see all the appropriate partitions again. Search for "boot-repair ubuntu" to learn more.

    If you need to run an older OS release, just put it into a virtual machine, like KVM or VirtualBox supports.

    Also, you didn't say, but does your BIOS use UEFI too?

  3. #3
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Arrow Re: Dual Boot Problem - GPT error

    Please indicate your BootInfo URL: https://help.ubuntu.com/community/Boot-Info

  4. #4
    Join Date
    Nov 2005
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    Quote Originally Posted by TheFu View Post

    Don't use WUBI unless you don't have **any** other choice. You will thank me.

    Also, you didn't say, but does your BIOS use UEFI too?
    I don't plan on installing via WUBI. I just tested it on WUBI to see if it works on WUBI but I still got the same GPT error.

    As with UEFI, I'm not sure. But on boot sequence, I got [UEFI] Slimtype DVD and that's where I'm installing from, from DVD. I tried the other P1 - Slimtype DVD and still the same. Don't know what's the difference between P1 and UEFI.

    Quote Originally Posted by YannBuntu View Post
    Please indicate your BootInfo URL: https://help.ubuntu.com/community/Boot-Info
    I'll post BootInfo later as my laptop is at home and I'm currently on an internet cafe, I'm on a travel. I didn't bring my laptop.

    Thanks.

  5. #5
    Join Date
    Nov 2005
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    Quote Originally Posted by YannBuntu View Post
    Please indicate your BootInfo URL: https://help.ubuntu.com/community/Boot-Info
    http://paste.ubuntu.com/1506088/

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-land
    Beans
    11,137
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    Wish I knew how to help, but my guess is that your Sabayon install used fdisk and hosed the GPT partitions.

    All of the partitions are marked as NTFS, which is unlikely. GPT stores a 2nd copy of the partition table at the far end of the disk (this is one of the major improvements that GPT has over MBR). Somehow that seems to be missing too. Ouch.

    First step, I would ask parted to export the partition table in a machine readable format. This will be your backup so you don't do any more harm by accident.

    Second step, I would use a bit-by-bit copy program to mirror this disk somewhere else. ddrescue is my tool of choice, but dd would work too. I'd want an exact copy of all the bits, including errors, problems, and raw data before I attempted any fixes.

    Then I'd do some research on how to restore corrupted GPT tables and try that. Hopefully, someone will post some better ideas here. I found this http://www.rodsbooks.com/gdisk/repairing.html , but cannot vouch for any of the the data. He claims the software is beta level, but also recommends a complete disk backup (though his provided dd command will be extremely slow, always use a reasonable block size with dd).

    I did see a message inside the bootinfo asking for an email concerning an UEFI thing. I'd email a link to the pastebin to that address too.

    At least we have more data to work from. Thanks for running the bootinfo.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Dual Boot Problem - GPT error

    As mentioned gpt has a backup gpt partition table at the end of the drive. But if drive was gpt and you install Windows in BIOS mode it converts to MBR, but does not erase the backup gpt table. Then Linux tools see the MBR table & the gpt backup and get confused.

    Many have used this, from the author of gdisk.
    Fixparts - Repair broken partition tables (not overlapping issues) & delete Stray gpt data from MBR drives
    http://ubuntuforums.org/showthread.php?t=1705325
    http://www.rodsbooks.com/fixparts/
    First backup partition table, use your drive for sdX or sda, sdb etc.
    sudo sfdisk -d /dev/sdX > parts.txt
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Nov 2005
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    Currently, gparted doesn't seem to detect any partition when used, even if there are actual partitions. What if I'll let gparted create a parition? What will happen to the existing one that is not detected? Will they be replaced? And will it fixed the GPT error I have?

    I still have all my files backed up on my external drive. It doesn't matter if I'll repartition or reformat this drive as I still have everything backed up. But before doing so, how can I prevent this error from happening again?

    I still want to dual boot Win 7 and Ubuntu 12.10 (both 64bit). I still want to test everything on Ubuntu if all laptop features are working or not, while use Win 7 for work when not testing. Just like what I did on my older laptop. Older laptop is using Ubuntu now, no dual boot. And I also want the same on this new laptop.

    I was thinking on using gparted to create the following partitions:
    partition 1 - Windows System
    partition 2 - My Documents (on a separate drive)
    partition 3 - Ubuntu ( / )
    partition 4 - Ubuntu ( /home )
    partition 5 - swap

    But I'm not sure if doing so will actually fixed the problem. I may be able to create these partitions but I don't know what will happen after installing windows, probably back to GPT error.

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-land
    Beans
    11,137
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    I think you need to use the "fixparts" program as Oldfred suggests.

    It would be really bad to let gparted overwrite at this stage. You haven't necessarily lost any data yet, it is just that the partition table was most like screwed by your Sabayon installation. If you do not attempt to re-install that, then you should be fine.Windows7 and later AND ubuntu 12.04 and later (perhaps earlier too) work fine with GPT partitions.
    After using fixparts, you may be able to boot both Windows and Ubuntu. If not, use boot-repair.In theory, only the Sabayon install it toastand even it may not be lost.Hopefully, the explanation is clear.

  10. #10
    Join Date
    Nov 2005
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dual Boot Problem - GPT error

    I just did "Recommended repair" with boot-info and I still got the same problem.
    Run boot-info again and got this http://paste.ubuntu.com/1508946/
    Recommended repair is still the same.

    I'll try to use gparted to create partitions then install Win 7 (first) and see if this may solve the problem.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •