Unix/Linux Go Back    


Boot Loaders Discuss GRUB, BURG, UEFI, GPT, Mac EFI, GRUB2 and other topics about boot loaders.

GPT/Protective MBR problem...

Boot Loaders


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-09-2010   -   Original Discussion by Blackbird
Blackbird's Unix or Linux Image
Blackbird Blackbird is offline
Registered User
 
Join Date: Feb 2010
Last Activity: 28 March 2011, 12:20 PM EDT
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
GPT/Protective MBR problem...

Hi,

short thing: I've done something I didn't know what happens; bad thing: I did it with my partition table. Linux

My OS is Ubuntu 10.10. I've used GPT and now want to convert it to MBR with gdisk.
I started gdisk, chose 'r' for "transformation options" and chose 'g' to "convert GPT into MBR and exit".
Then I rebooted. Now all my programs tell me something other:

fdisk says the following (language is german):

Code:
   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1               1      121602   976762583+  ee  GPT

gdisk says it to be a protective MBR, but '-l' switch doesn't print any partition:

Code:
GPT fdisk (gdisk) version 0.5.1

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

Found valid GPT with protective MBR; using GPT.

The kernel doesn't seem to detect anything, only sda* thing is /dev/sda.

partitionmanager says that there is no valid partition table.

Now, what should I do? Stupid thing is that I missed to make a backup of my first sectors before. Linux
Remember, the only thing I want is to be able to read my partitions on sda again and to have an MBR on it in the end.


Blackbird

Last edited by Blackbird; 11-09-2010 at 04:31 PM..
Sponsored Links
    #2  
Old Unix and Linux 11-09-2010   -   Original Discussion by Blackbird
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
Humm, the conversion from GPT to MBR by gdisk is a best-faith attempt only according to the man page. No guarantees, especially if there were no free blocks between the partitions.

You could try the -c option to load the backup partition table but I suspect that it will contain nothing.
Sponsored Links
    #3  
Old Unix and Linux 11-10-2010   -   Original Discussion by Blackbird
Blackbird's Unix or Linux Image
Blackbird Blackbird is offline
Registered User
 
Join Date: Feb 2010
Last Activity: 28 March 2011, 12:20 PM EDT
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Oh dear. Linux Lucky me that a made a backup of my data before.

I think I will just create a new MBR and restore my backups...
    #4  
Old Unix and Linux 11-10-2010   -   Original Discussion by Blackbird
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
Yes, that is the best plan. Glad you had a backup. It is my opinion that utilities such as gdisk should not attempt to automatically convert from MBR to GPT and visa versa. Too many edge cases where things can go wrong.

Last edited by fpmurphy; 11-10-2010 at 11:15 AM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DHCP problem and eth1 problem sllinux UNIX for Dummies Questions & Answers 0 10-23-2009 03:45 AM
user login problem & Files listing problem. pernasivam AIX 1 06-18-2009 10:09 AM
problem in finding a hardware problem girish.batra Solaris 8 09-09-2008 11:10 AM



All times are GMT -4. The time now is 03:12 AM.