Date: Thu, 30 Aug 2012 07:52:42 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: =?KOI8-R?B?98nUwczJyiD01dLP18XD?= <corebug@corebug.net> Cc: FreeBSD Questions List <freebsd-questions@freebsd.org> Subject: Re: Force disk with old GPT label to be recognized as MBR one Message-ID: <alpine.BSF.2.00.1208300721490.7149@wonkity.com> In-Reply-To: <CAKB6gVj_TLaqaKx1j=JZjVzFZnCWEJr%2BY-khjKBeN_C8zJyLXQ@mail.gmail.com> References: <CAKB6gVj_TLaqaKx1j=JZjVzFZnCWEJr%2BY-khjKBeN_C8zJyLXQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 30 Aug 2012, ??????? ??????? wrote: > Hello there, people! > I have a FreeBSD box with 9.1-RC3 i386 and an interesting HDD. > It was patitioned with GPT and zfs some (long) time ago. After that > the hdd has been completely repartitioned with MBR scheme and one > single freebsd (165) partition and one slice there. It worked fine in > 7.2, but now i have to get the data from that slice and when i connect > the hdd to 9.1 box, it finds old corrupt GPT label (i suppose, it's > backup GPT header somewhere in the end of actual disk) and does not > recognize the MBR scheme there. In case it has not been said: make a full backup of everything on that disk first using dd. Erasing the last 34 blocks or 17048 bytes of the disk will erase the backup GPT. It may be enough to erase just the very last block. # diskinfo -v /dev/ada1 /dev/ada1 512 # sectorsize 256060514304 # mediasize in bytes (238G) 500118192 # mediasize in sectors # : Not tested, could be off by one! # dd if=/dev/zero of=/dev/ada1 bs=512 seek=500118191 Force a retaste with 'true > /dev/ada1', then see what gpart shows. If the drive is still seen as GPT, adjust the seek to begin at (mediasize in sectors) - 34.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1208300721490.7149>