T o n g wrote at 2010-06-27 21:22 -0500:
> On Sun, 27 Jun 2010 15:37:31 -0800, Greg Madden wrote:
> But actually, there is a much better cli way:
> 
> To backup the current disk partition setting, use the following command:
> 
>   sfdisk -d /dev/$HD | tee partition.$HD.info
> 
> Most importantly, partitions can be recreated by this simple command:
> 
>   # recreate partition
>   sfdisk --no-reread /dev/$HD < partition.$HD.info
> 
> Then reboot ASAP. 
> 
> Ref:
> 
> http://xpt.sourceforge.net/techdocs/nix/disk/general/disk01-
> PartitionTools/index.html#cmd_sfdisk

Great tip; thanks.

Attachment: signature.asc
Description: Digital signature

Reply via email to