[parted-devel] GoGPT

phcoder phcoder at gmail.com
Thu Apr 16 20:27:32 UTC 2009


Hello. I needed to convert my MBR disk to GPT without losing data, so I
coded a tool to do so. It should be able to also convert from other
partition labels as long as logical sector is 512 bit
It worked perfectly for me but I tested it only once so bugs are
possible. Use at your own risk
To compile:
put endian.h from libparted to the same directory as gogpt.c
gcc -o gogpt gogpt.c -Wall -luuid -lparted
To convert to gpt you do:
sudo ./gogpt <disk>
Note: it will change the order of your partitions and clean most of 
attributes
-- 

Regards
Vladimir 'phcoder' Serbinenko

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gogpt.c
Type: text/x-csrc
Size: 21498 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20090416/a9c2167a/attachment-0001.c>


More information about the parted-devel mailing list