From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 23 22:16:37 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2EE6FE5 for ; Tue, 23 Dec 2014 22:16:37 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90BB419C7 for ; Tue, 23 Dec 2014 22:16:37 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sBNMGbuX094290 for ; Tue, 23 Dec 2014 22:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196241] New: gpart does not recognize Apple Core Storage partitions Date: Tue, 23 Dec 2014 22:16:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: roddi@me.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2014 22:16:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196241 Bug ID: 196241 Summary: gpart does not recognize Apple Core Storage partitions Product: Base System Version: 10.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: roddi@me.com When creating an encrypted partition on a OS X system a Core Storage partition is created. I wont go into details about these partitions but you can do a "man diskutil" on a OS X system to learn more. A disk partitioned with such a partition looks like this on OS X (output of "diskutil list"): /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *2.0 TB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_CoreStorage 250.0 GB disk2s2 3: Apple_Boot Recovery HD 650.0 MB disk2s3 4: 516E7CBA-6ECF-11D6-8FF8-00022D09712B 1.7 TB disk2s4 Note partition (or slice) 2 On FreeBSD "gpart show": => 34 3906963389 da0 GPT (1.8T) 34 6 - free - (3.0K) 40 409600 1 efi (200M) 409640 488281256 2 !53746f72-6167-11aa-aa11-00306543ecac (233G) 488690896 1269536 3 apple-boot (620M) 489960432 3417002984 4 freebsd-zfs (1.6T) 3906963416 7 - free - (3.5K) So obviously "!53746f72-6167-11aa-aa11-00306543ecac" is the magic UID for the Core Storage slice. All this applies to GUID partition tables. I have no idea what the situation is with other partition schemes but I doubt that Core Store Volumes can be created anywhere else than GPT. While not really a serious bug, I still think this should be added to the list of known partition types. P.S.: The output above is from the exact same disk. Apple uses base-10 values instead of base-2 values so everything appears to be larger. -- You are receiving this mail because: You are the assignee for the bug.