From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 08:55:21 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 34842106567B for ; Thu, 30 Aug 2012 08:55:21 +0000 (UTC) (envelope-from corebug@corebug.net) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D9F618FC12 for ; Thu, 30 Aug 2012 08:55:20 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2064318vbm.13 for ; Thu, 30 Aug 2012 01:55:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=/b+i+8TuFcGq0Szat+9hype5Ea1uYIoB2soy5P0zlXA=; b=jMbb25nsWqZ87kk9ifbyl6Z2+/ct5uP7xqKCCechkdQRxr9C2dt8mKfOyaYQP3+mCs Xj2gnWLu5iP1K8HTNeFuS90L/6zA4tbVgRK5v3myZfNJjpV0ZHCmQwSt4aC4YmXFnY3Z yGGaz5ETlMQ0UUm11XTZE64FA5KgMNNuUYCAYZ6jO3uqYwWMbevGaXhCo5IDWPSErUcq 7LpEPAzuHylzniWNLdohhelnflm2PBpKr0007BxYYPMwXhAOKsiDlzlan8dwC/IKDc9N Ho/TlDHDcCDo0sOln6ay8j2JHNNX482zgwksw3NIDTYH9EvM4mnkvxL62pzUzmNkcJfc NoSA== Received: by 10.220.248.69 with SMTP id mf5mr2631122vcb.42.1346316919457; Thu, 30 Aug 2012 01:55:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.249.138 with HTTP; Thu, 30 Aug 2012 01:54:58 -0700 (PDT) X-Originating-IP: [95.158.3.122] From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= Date: Thu, 30 Aug 2012 11:54:58 +0300 Message-ID: To: FreeBSD Questions List Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQn1SehircDYI0fIylmkFIATGYrxXxkRKlaDH5lo559EHY0Yz0SFWb5XwH3gEZ0P9G+1rvLZ Subject: Force disk with old GPT label to be recognized as MBR one X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 08:55:21 -0000 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. It sees no freebsd partitions (and one exists there, for sure :) ). So my question is: how do i force the system to ignore old corrupt GPT header on this hdd, or how do i remove the header, or is there any workaround possible? This is what gpart says about this disk: [11:54][border][~] # gpart show ada1 => 34 1250263661 ada1 GPT (596G) [CORRUPT] 34 256 1 freebsd-boot (128k) 290 838860800 2 freebsd-zfs (400G) 838861090 411402605 - free - (196G) And this is what fdisk says: [11:54][border][~] # fdisk ada1 ******* Working on device /dev/ada1 ******* parameters extracted from in-core disklabel are: cylinders=1240341 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1240341 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 1250258562 (610477 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 14/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: So fdisk sees everything fine. Thank you a lot guys! -- ~~~ WBR, Vitaliy Turovets Systems Administrator Corebug.Net +38(093)265-70-55 VITU-RIPE X-NCC-RegID: ua.tv