From owner-freebsd-geom@FreeBSD.ORG Fri May 16 11:04:23 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B210E227 for ; Fri, 16 May 2014 11:04:23 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A94A22FF for ; Fri, 16 May 2014 11:04:22 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s4GB4Jmt034597 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 16 May 2014 05:04:19 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s4GB4D1L034594; Fri, 16 May 2014 05:04:19 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 16 May 2014 05:04:13 -0600 (MDT) From: Warren Block To: "Ronald F. Guilmette" Subject: Re: GEOM_PART: Integrity check failed (ada2, MBR) In-Reply-To: <1758.1400216600@server1.tristatelogic.com> Message-ID: References: <1758.1400216600@server1.tristatelogic.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 16 May 2014 05:04:19 -0600 (MDT) Cc: freebsd-geom@freebsd.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2014 11:04:23 -0000 On Thu, 15 May 2014, Ronald F. Guilmette wrote: > 1) I placed the 1tb drive into my #2 system and then booted that system > using a recent vintage (0.18.2) version of the "Gparted Live" CD. > > 2) I used Gparted to create and initialize a GPT partition table on the > drive. > > 3) I used Gparted to create and initialize a single partition (containing > all free space on the drive) and had it (Gparted) create an ext3 filesystem > on that partition. > > 4) I then performed a clean shutdown of Gparted. > > 5) I then removed the new 1tb drive in question from my #2 desktop system > and moved it into the hot-swap rack of my main (FreeBSD 9.1-RELEASE) system > (which already contains two other drives, i.e. ada0 and ada1). > > 6) I used the power switch on the rack to power on the drive. > > The result of the above operations is as follows: > > May 15 21:53:33 segfault kernel: ada2 at ata5 bus 0 scbus5 target 0 lun 0 > May 15 21:53:33 segfault kernel: ada2: ATA-8 SATA 3.x device > May 15 21:53:33 segfault kernel: ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > May 15 21:53:33 segfault kernel: ada2: 31MB (65134 512 byte sectors: 16H 63S/T 64C) > May 15 21:53:33 segfault kernel: ada2: Previously was known as ad10 > May 15 21:53:33 segfault kernel: GEOM_PART: integrity check failed (ada2, MBR) Some Linuxes (Linii?) might be creating "hybrid" GPTs, with a PMBR that is non-standard. I can't speak to what Gparted does. There is a sysctl to relax the strict checking in FreeBSD, but I would suggest using gpart(8) instead. (Backups necessary, etc., and this is off the top of my head and untested.): # gpart destroy -F ada2 # gpart create -s gpt ada2 # gpart add -t \!0x83 -b1m -a4k ada2 (That 0x83 is for the Linux partition type. gpart(8) might have a keyword for that, like "linux" or "linux-data".) Then newfs /dev/ada2p1 to ext2 or 3. The steps would be nearly identical for MBR, but avoid MBR if you can.