GPT/Protective MBR problem...

 
Thread Tools Search this Thread
# 1  
Old 11-09-2010
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. Smilie

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. Smilie
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..
# 2  
Old 11-09-2010
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.
# 3  
Old 11-10-2010
Oh dear. Smilie 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 11-10-2010
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..

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
2nd hdd is Linux_lvm can't mount MBR on BSD with GPT 1in10 Emergency UNIX and Linux Support 0 04-14-2016 09:11 PM
GPT Partitions derekludwig Red Hat 4 11-27-2014 01:22 PM
Hard Drives and MBR Lost in Cyberia Hardware 3 06-04-2013 06:28 PM
Installing Windows 7 on a GPT drive mojoman Windows & DOS: Issues & Discussions 1 10-04-2012 05:34 PM
Disk Paritioning Scheme--GPT or MBR mojoman Fedora 3 09-21-2012 04:13 AM
Ubuntu filesystem error corrupt GPT label ccj4467 Emergency UNIX and Linux Support 2 02-06-2012 07:31 AM
Lost MBR on disk xaphan Boot Loaders 2 12-30-2010 06:20 PM
RHEL4 easyRAID problem 2tb gpt xfs onkeldave Red Hat 1 10-08-2010 02:33 PM
Delete gpt signatures tannu UNIX for Dummies Questions & Answers 3 07-26-2010 09:06 PM
About MBR,Boot Loader programe. vishwasrao UNIX for Dummies Questions & Answers 1 02-10-2009 08:02 AM
How to zero a disk (especially MBR)? siegfried UNIX for Dummies Questions & Answers 1 03-15-2007 06:21 AM