[PATCH] gpt-partnames: add "ChromeOS firmware" & doc link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a Chromebook, with fdisk -l of the internal flash being:
  Disk /dev/mmcblk0: 29.12 GiB, 31268536320 bytes, 61071360 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: gpt
  Disk identifier: 8648551F-D8FC-AC44-AA00-C0CA32C4A9BC
  
  Device            Start      End  Sectors  Size Type
  /dev/mmcblk0p1  8704000 61063119 52359120   25G Microsoft basic data
  /dev/mmcblk0p2    20480    53247    32768   16M ChromeOS kernel
  /dev/mmcblk0p3  4509696  8703999  4194304    2G ChromeOS root fs
  /dev/mmcblk0p4    53248    86015    32768   16M ChromeOS kernel
  /dev/mmcblk0p5   315392  4509695  4194304    2G ChromeOS root fs
  /dev/mmcblk0p6    16448    16448        1  512B ChromeOS kernel
  /dev/mmcblk0p7    16449    16449        1  512B ChromeOS root fs
  /dev/mmcblk0p8    86016   118783    32768   16M Microsoft basic data
  /dev/mmcblk0p9    16450    16450        1  512B ChromeOS reserved
  /dev/mmcblk0p10   16451    16451        1  512B ChromeOS reserved
  /dev/mmcblk0p11      64    16447    16384    8M unknown
  /dev/mmcblk0p12  249856   315391    65536   32M EFI System
  
  Partition table entries are not in disk order.
and -lx being:
  Disk /dev/mmcblk0: 29.12 GiB, 31268536320 bytes, 61071360 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: gpt
  Disk identifier: 8648551F-D8FC-AC44-AA00-C0CA32C4A9BC
  First usable LBA: 34
  Last usable LBA: 61063134
  Alternative LBA: 61063167
  Partition entries starting LBA: 2
  Allocated partition entries: 128
  Partition entries ending LBA: 33
  
  Device            Start      End  Sectors Type-UUID                            UUID                                 Name       Attrs
  /dev/mmcblk0p1  8704000 61063119 52359120 EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 D8331AD0-ED78-F442-87F4-78DF0130895A STATE      
  /dev/mmcblk0p2    20480    53247    32768 FE3A2A5D-4F32-41A7-B725-ACCC3285A309 CCFE5BD8-BBE4-A840-9C0B-BBA6427B6309 KERN-A     GUID:49,56
  /dev/mmcblk0p3  4509696  8703999  4194304 3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC E71F6E02-1BC3-9D43-9EDD-2C7CA20D512A ROOT-A     
  /dev/mmcblk0p4    53248    86015    32768 FE3A2A5D-4F32-41A7-B725-ACCC3285A309 753B5AEB-254E-AE47-8B69-FF58D9AC7DEA KERN-B     GUID:48,56
  /dev/mmcblk0p5   315392  4509695  4194304 3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC 8D0AAB90-FCDD-1B4E-88C1-25591367535A ROOT-B     
  /dev/mmcblk0p6    16448    16448        1 FE3A2A5D-4F32-41A7-B725-ACCC3285A309 A1F17DE0-C736-0749-9D46-C7AF964C0805 KERN-C     GUID:52,53,54,55
  /dev/mmcblk0p7    16449    16449        1 3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC 9D3217B1-C796-694B-8F13-5266A7B03F3E ROOT-C     
  /dev/mmcblk0p8    86016   118783    32768 EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 37A18CE9-ACF2-894B-9B67-C212C374C100 OEM        
  /dev/mmcblk0p9    16450    16450        1 2E0A753D-9E48-43B0-8337-B15192CB1B5E F534539C-EDAC-2C44-A6CD-827D7490CF50 reserved   
  /dev/mmcblk0p10   16451    16451        1 2E0A753D-9E48-43B0-8337-B15192CB1B5E E4248D3E-6EA0-B148-8215-B50269CE9678 reserved   
  /dev/mmcblk0p11      64    16447    16384 CAB6E88E-ABF3-4102-A07A-D4BB9BE3C1D3 530A6C46-BDFA-7C40-A446-FC05001BDA82 RWFW       
  /dev/mmcblk0p12  249856   315391    65536 C12A7328-F81F-11D2-BA4B-00A0C93EC93B BCF61070-764A-004F-8ABD-590A44996A91 EFI-SYSTEM LegacyBIOSBootable
  
  Partition table entries are not in disk order.

Note part 11/RWFW being "unknown".
The fdisk on the device doesn't know it, and upstream doesn't either.

The only google result is
  https://chromium.googlesource.com/chromiumos/docs/+/d5eefaba799595d6cd302de047325ca8295dd87e/disk_format.md
which agrees with the other three ChromeOS definitions fdisk knows,
so add this one as well, and link to the live document.

fdisk -l now shows:
  /dev/mmcblk0p10   16451    16451        1  512B ChromeOS reserved
  /dev/mmcblk0p11      64    16447    16384    8M ChromeOS firmware
  /dev/mmcblk0p12  249856   315391    65536   32M EFI System
---
diff '--color=auto' -u -r util-linux-2.39.3.orig/include/pt-gpt-partnames.h util-linux-2.39.3/include/pt-gpt-partnames.h
--- util-linux-2.39.3.orig/include/pt-gpt-partnames.h	2023-11-30 11:26:09.675522060 +0100
+++ util-linux-2.39.3/include/pt-gpt-partnames.h	2024-01-18 19:00:19.208308527 +0100
@@ -229,8 +229,10 @@
 DEF_GUID("49F48DAA-B10E-11DC-B99B-0019D1879648", N_("NetBSD RAID")),
 
 /* ChromeOS */
+/* https://chromium.googlesource.com/chromiumos/docs/+/main/disk_format.md#partition-types */
 DEF_GUID("FE3A2A5D-4F32-41A7-B725-ACCC3285A309", N_("ChromeOS kernel")),
 DEF_GUID("3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC", N_("ChromeOS root fs")),
+DEF_GUID("CAB6E88E-ABF3-4102-A07A-D4BB9BE3C1D3", N_("ChromeOS firmware")),
 DEF_GUID("2E0A753D-9E48-43B0-8337-B15192CB1B5E", N_("ChromeOS reserved")),
 
 /* MidnightBSD */

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux