lkml.org 
[lkml]   [2006]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ignore partition table on disks with AIX label
From
Date
On Wed, 17 May 2006 15:44:13 EDT, Valdis.Kletnieks@vt.edu said:

> As far as I can tell, the boot ROM snarfs up the first 512 byte block, and then
> looks for the 'IBMA' magic cookie, then looks at offset 0x1BE for a
> bog-standard 4-entry partition table, and a 0x55AA at offset 0x1FE.
>
> Additionally, there will be an *ASCII* '_LVM' in the first 4 bytes of physical
> 512-byte block 7, denoting the start of the LVM control record.
>
> I'd say if you find both the IBMA *and* _LVM cookies intact, you declare it
> an AIX volume.

Oh, one other check - the partition type(s) are set to 0x08 or 0x09 (AIX
boot and data partition flags). Other things use those 2 values as well,
but they won't have the _LVM cookie.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-05-17 22:05    [W:0.053 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site