Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2011 21:22:59 +0100
From:      Marco Steinbach <coco@executive-computing.de>
To:        geom@freebsd.org
Subject:   Resolved: gpart restore seems to hang on corrupted secondary GPT label
Message-ID:  <4D617823.1000407@executive-computing.de>
In-Reply-To: <4D6170D4.5030401@yandex.ru>
References:  <4D616979.30406@executive-computing.de> <4D6170D4.5030401@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrey V. Elsukov wrote on 20.02.2011 20:51:
> On 20.02.2011 22:20, Marco Steinbach wrote:
>> gatekeeper# truss gpart restore ufsid/4d2665945e9460e3
>> [...]
>> sigaction(SIGINT,{ 0x281e3880 0x0 ss_t },0x0)          = 0 (0x0)
>> fstat(0,{ mode=crw--w---- ,inode=153,size=0,blksize=4096 }) = 0 (0x0)
>> ioctl(0,TIOCGETA,0xbfbfb170)                          = 0 (0x0)
> 
> Hi,
> 
> it is just waiting for input what it should restore.
> Did you read manual page? :)
> 

Quite a discovery not being able to simply read man pages thoroughly enough.

Thanks for pointing my nose to that :)

The correct way, as pointed out in the second mail from Andrey and quite 
prominently stated in the man page, is to first gpart backup the GPT 
table, and then use gpart recover (not restore).

Which worked as advertised.

MfG CoCo





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D617823.1000407>