From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Axvh7MJJtFba for ; Sun, 26 Jan 2014 10:24:43 +0100 (CET) Received: from mail-ee0-x231.google.com (mail-ee0-x231.google.com [IPv6:2a00:1450:4013:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sun, 26 Jan 2014 10:24:43 +0100 (CET) Received: by mail-ee0-f49.google.com with SMTP id d17so1700107eek.36 for ; Sun, 26 Jan 2014 01:24:42 -0800 (PST) Message-ID: <52E4D457.4030304@gmail.com> Date: Sun, 26 Jan 2014 10:24:39 +0100 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] LUKS GPT GUID List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?UGFsaSBSb2jDoXI=?= , dm-crypt@saout.de Cc: Karel Zak On 01/26/2014 02:40 AM, Pali Rohár wrote: > Hello, > > according to wikipedia [1] and other sites (e.g. [2]) MBR partition ID > for LUKS is E8. I tried to find GPT partition GUID for LUKS, but there > is nothing on wikipedia [3] nor google... So has LUKS already > preferred/assigned GUID for GPT partition table? There is already GPT > GUID for linux data, raid, swap, lvm and home partitions (see [3]), so > I think that LUKS should have GUID too. Hi, this is wonderful... who assigned E8 type? I thought LUKS has no assigned partition type and also I doubt LVM2 type is properly assigned too (it is probably form the LVM1 age when it was implemented in-kernel directly and partition type was important to detect it.) But not sure about this. Anyway, today partition type is ignored (both in LVM and LUKS), so it is really just for convenience for other applications. (Anyway, code should always use (lib)blkid to detect what's really on the device, not trust partition id.) For GPT GUID, I would like to know how these GUID codes appeared in libfdisk and how this was standardized for LVM. LUKS should have GUID too then... (cc to Karel as util-linux/libfdisk maintainer ;-) If this is really used, both should be documented in LUKS specification. Thanks, Milan > > [1] - http://en.wikipedia.org/wiki/Partition_type > [2] - http://www.win.tue.nl/~aeb/partitions/partition_types-1.html > [3] - http://en.wikipedia.org/wiki/GUID_Partition_Table