Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2014 05:04:13 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: GEOM_PART: Integrity check failed (ada2, MBR)
Message-ID:  <alpine.BSF.2.00.1405160453130.34394@wonkity.com>
In-Reply-To: <1758.1400216600@server1.tristatelogic.com>
References:  <1758.1400216600@server1.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Hitachi HTS541010A9E680 JA0OA480> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1405160453130.34394>