From owner-freebsd-geom@FreeBSD.ORG Sun Feb 20 20:24:27 2011 Return-Path: Delivered-To: geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0E67106564A for ; Sun, 20 Feb 2011 20:24:27 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 5D5E58FC2A for ; Sun, 20 Feb 2011 20:24:27 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id 87B4C8B141E for ; Sun, 20 Feb 2011 21:24:26 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.961 X-Spam-Level: X-Spam-Status: No, score=-100.961 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.039, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id 1YnClzlLcJ2R for ; Sun, 20 Feb 2011 21:24:24 +0100 (CET) Received: from [192.168.100.30] (p54B0D207.dip.t-dialin.net [84.176.210.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id AAB1A8B141B for ; Sun, 20 Feb 2011 21:24:24 +0100 (CET) Message-ID: <4D617823.1000407@executive-computing.de> Date: Sun, 20 Feb 2011 21:22:59 +0100 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: geom@freebsd.org References: <4D616979.30406@executive-computing.de> <4D6170D4.5030401@yandex.ru> In-Reply-To: <4D6170D4.5030401@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Resolved: gpart restore seems to hang on corrupted secondary GPT label X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2011 20:24:27 -0000 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