Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2014 19:38:30 -0500
From:      Andrew Berg <aberg010@my.hennepintech.edu>
To:        <freebsd-geom@freebsd.org>
Subject:   Re: Recreating a GPT
Message-ID:  <5366DD86.8050005@my.hennepintech.edu>
In-Reply-To: <alpine.BSF.2.00.1405041705540.9118@wonkity.com>
References:  <5366CC63.4000001@my.hennepintech.edu> <alpine.BSF.2.00.1405041705540.9118@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2014.05.04 18:21, Warren Block wrote:
> It will take a while to copy the disk with dd(1), but that's really the 
> only safe way.  Make a copy, and write the partition tables to that.
>
> gpart(8) only writes to the partition tables or bootcode, and should be 
> safe for the data in the partitions, but the only way to guarantee that 
> is on a copy, not the original.
I've already cloned the entire thing to the scratch drive. I'd just rather
not rewrite it in its entirety again. How much of the disk will I need to
rewrite to get the partition table back to its original state if my attempts
are unsuccessful? IIRC, bits are written to the end of the disk as well,
so I'm not sure how to do it with dd(1), though I'm sure it can be done.

> gpart backup produces plain text that can be manually created.  I'd 
> still rather let gpart deal with the disk directly by using gpart create 
> and add commands.
I'm under the assumption that 'gpart create' will do more than
'gpart restore'; is that not correct?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5366DD86.8050005>