From owner-freebsd-stable@FreeBSD.ORG Sun Jun 2 13:53:38 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3FEF1A74 for ; Sun, 2 Jun 2013 13:53:38 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id D085B12EB for ; Sun, 2 Jun 2013 13:53:37 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id q56so954461wes.3 for ; Sun, 02 Jun 2013 06:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version:x-mailer; bh=sAGu79NssqFlvu1x0tY4Gcmzn48BixXYnQsY7sKQbik=; b=qlwDEsOUJwViBvp4XRvwhKqLuYBYFKO7wIAFllHWXusVQWaC8y+LCklMtXr0DIMxH+ BlgIAqvHG85X1PfIkAE2Tr+lfihVKQkeZQcEsGjxzJr6YFcaPvgRPZ2X/HJC7L2nrpkA EbUC0wBVJbz44+lgXGjxL+Yd36ob4CM7ZvKA4PhgnyuTeZaoem9SeHQnOeNPvLDxbNdr id4k5RV852SK8bh19AatuZBAQRhlAsGg0JoAmfOt7awXNZotpV4/pq+Y+xq8byhhOTwy 5o8aauWI+SVPfENsmCbrChXcj9LFhjqNes6EK8HzdDTlt2v9QWg6PKRLxcFH+0WYT5Ed ShjQ== X-Received: by 10.180.20.177 with SMTP id o17mr9248411wie.52.1370181216909; Sun, 02 Jun 2013 06:53:36 -0700 (PDT) Received: from hollewijn.internal (8d690a59.ftth.concepts.nl. [141.105.10.89]) by mx.google.com with ESMTPSA id q13sm16714153wie.8.2013.06.02.06.53.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Jun 2013 06:53:35 -0700 (PDT) From: Alban Hertroys Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Corrupt GPT header on disk from twa array - fixable? Message-Id: Date: Sun, 2 Jun 2013 15:53:34 +0200 To: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 13:53:38 -0000 Hello list, I just replaced my home server and moved the disks from the old one over = to the new one. In the old server, 4 of the disks were connected to a = twa (3Ware 9550) controller, which of course has it's own way of marking = units/volumes on those disks. Before you start yelling at me, yes, of course I made backups ;) [*] The thing is, I have these disks in the new server and I found that I = (to my surprise) I can actually mount them! But, I'm missing a large = part and I am wondering if there's some method to access those last = partitions too. Here's what gpart show says about the problematic disk: # gpart show /dev/ada4 =3D> 34 41942972 ada4 GPT (931G) [CORRUPT] 34 128 1 freebsd-boot (64k) 162 1048448 2 freebsd-ufs (512M) 1048610 6291456 3 freebsd-swap (3.0G) 7340066 1048576 4 freebsd-ufs (512M) 8388642 2097152 5 freebsd-ufs (1.0G) 10485794 31457211 6 freebsd-ufs (15G) 41943005 1 - free - (512B) As you can see, most (about 910GB) of the disk is missing! This disk was = one half of a mirror on the twa controller, which had those disks split = in two again (I don't recall how, perhaps 2 different BSD slices?) I already looked if that part may perhaps have ended up as a different = device. On the old server, fstab was this: # cat /tmp/solfertje/etc/fstab # Device Mountpoint FStype Options Dump Pass# # These are the partitions listed above in gpart /dev/da0p2 / ufs rw 1 1 /dev/da0p3 none swap sw 0 0 /dev/da0p4 /var ufs rw 2 2 /dev/da0p5 /tmp ufs rw 2 2 /dev/da0p6 /usr ufs rw 2 2 # These are missing /dev/da1p1 /home ufs rw 2 2 /dev/da1p2 /media ufs rw 2 2 # These are on a different disk (ada2) /dev/da2p1 /media2 ufs rw 2 2 I don't _really_ need to get to those partitions, but it would be a = comfortable thought if it were possible somehow. [*] The reason I was trying to access those disks anyway is that I = thought I forgot to backup my database tables, but it turns out I had = just misplaced that backup and it has been restored now. Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.