[Parted-maintainers] Bug#1025223: minor

Trent W. Buck trentbuck at gmail.com
Thu Dec 1 07:58:08 GMT 2022


Package: parted
Version: 3.4-1
Severity: normal

https://en.wikipedia.org/wiki/GUID_Partition_Table says

    [Linux is] limited to 256 partitions per disk.^[19]
    https://web.archive.org/web/20200326214544/https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/linux/genhd.h

    Windows [is] limited to 128 partitions per disk.^[27]
    https://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.aspx

>From sheer orneriness, I wanted to make a disk image with a
partition that Linux could see, and Windows couldn't -- like a hidden track on an LP.
https://en.wikipedia.org/wiki/Hidden_track

But parted seems to be limited to 128 GPT partitions (test transcript below).
Is this a fundamental limitation of GPT?
If not, can parted be changed to allow 256 partitions?

    bash5$ with-temp-dir
    with-temp-dir: entering directory `/tmp/with-temp-dir.LUG7Fz'
    This directory will be deleted when you exit.

    bash5$ truncate -s1P delete-me.img

    bash5$ parted -saopt delete-me.img mklabel gpt $(for i in {1..512..2}; do echo "mkpart $i ext2 $((2048*i))s $((2048*(i+1)))s"; done)
    Error: Too many primary partitions.

    bash5$ parted -saopt delete-me.img print
    Model:  (file)
    Disk /tmp/with-temp-dir.LUG7Fz/delete-me.img: 1126TB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags: 

    Number  Start   End     Size    File system  Name  Flags
     1      1049kB  2098kB  1049kB               1
     2      3146kB  4195kB  1049kB               3
     3      5243kB  6292kB  1049kB               5
     4      7340kB  8389kB  1049kB               7
     5      9437kB  10.5MB  1049kB               9
     6      11.5MB  12.6MB  1049kB               11
     7      13.6MB  14.7MB  1049kB               13
     8      15.7MB  16.8MB  1049kB               15
     9      17.8MB  18.9MB  1049kB               17
    10      19.9MB  21.0MB  1049kB               19
    11      22.0MB  23.1MB  1049kB               21
    12      24.1MB  25.2MB  1049kB               23
    13      26.2MB  27.3MB  1049kB               25
    14      28.3MB  29.4MB  1049kB               27
    15      30.4MB  31.5MB  1049kB               29
    16      32.5MB  33.6MB  1049kB               31
    17      34.6MB  35.7MB  1049kB               33
    18      36.7MB  37.7MB  1049kB               35
    19      38.8MB  39.8MB  1049kB               37
    20      40.9MB  41.9MB  1049kB               39
    21      43.0MB  44.0MB  1049kB               41
    22      45.1MB  46.1MB  1049kB               43
    23      47.2MB  48.2MB  1049kB               45
    24      49.3MB  50.3MB  1049kB               47
    25      51.4MB  52.4MB  1049kB               49
    26      53.5MB  54.5MB  1049kB               51
    27      55.6MB  56.6MB  1049kB               53
    28      57.7MB  58.7MB  1049kB               55
    29      59.8MB  60.8MB  1049kB               57
    30      61.9MB  62.9MB  1049kB               59
    31      64.0MB  65.0MB  1049kB               61
    32      66.1MB  67.1MB  1049kB               63
    33      68.2MB  69.2MB  1049kB               65
    34      70.3MB  71.3MB  1049kB               67
    35      72.4MB  73.4MB  1049kB               69
    36      74.4MB  75.5MB  1049kB               71
    37      76.5MB  77.6MB  1049kB               73
    38      78.6MB  79.7MB  1049kB               75
    39      80.7MB  81.8MB  1049kB               77
    40      82.8MB  83.9MB  1049kB               79
    41      84.9MB  86.0MB  1049kB               81
    42      87.0MB  88.1MB  1049kB               83
    43      89.1MB  90.2MB  1049kB               85
    44      91.2MB  92.3MB  1049kB               87
    45      93.3MB  94.4MB  1049kB               89
    46      95.4MB  96.5MB  1049kB               91
    47      97.5MB  98.6MB  1049kB               93
    48      99.6MB  101MB   1049kB               95
    49      102MB   103MB   1049kB               97
    50      104MB   105MB   1049kB               99
    51      106MB   107MB   1049kB               101
    52      108MB   109MB   1049kB               103
    53      110MB   111MB   1049kB               105
    54      112MB   113MB   1049kB               107
    55      114MB   115MB   1049kB               109
    56      116MB   117MB   1049kB               111
    57      118MB   120MB   1049kB               113
    58      121MB   122MB   1049kB               115
    59      123MB   124MB   1049kB               117
    60      125MB   126MB   1049kB               119
    61      127MB   128MB   1049kB               121
    62      129MB   130MB   1049kB               123
    63      131MB   132MB   1049kB               125
    64      133MB   134MB   1049kB               127
    65      135MB   136MB   1049kB               129
    66      137MB   138MB   1049kB               131
    67      139MB   141MB   1049kB               133
    68      142MB   143MB   1049kB               135
    69      144MB   145MB   1049kB               137
    70      146MB   147MB   1049kB               139
    71      148MB   149MB   1049kB               141
    72      150MB   151MB   1049kB               143
    73      152MB   153MB   1049kB               145
    74      154MB   155MB   1049kB               147
    75      156MB   157MB   1049kB               149
    76      158MB   159MB   1049kB               151
    77      160MB   161MB   1049kB               153
    78      163MB   164MB   1049kB               155
    79      165MB   166MB   1049kB               157
    80      167MB   168MB   1049kB               159
    81      169MB   170MB   1049kB               161
    82      171MB   172MB   1049kB               163
    83      173MB   174MB   1049kB               165
    84      175MB   176MB   1049kB               167
    85      177MB   178MB   1049kB               169
    86      179MB   180MB   1049kB               171
    87      181MB   182MB   1049kB               173
    88      184MB   185MB   1049kB               175
    89      186MB   187MB   1049kB               177
    90      188MB   189MB   1049kB               179
    91      190MB   191MB   1049kB               181
    92      192MB   193MB   1049kB               183
    93      194MB   195MB   1049kB               185
    94      196MB   197MB   1049kB               187
    95      198MB   199MB   1049kB               189
    96      200MB   201MB   1049kB               191
    97      202MB   203MB   1049kB               193
    98      204MB   206MB   1049kB               195
    99      207MB   208MB   1049kB               197
    100     209MB   210MB   1049kB               199
    101     211MB   212MB   1049kB               201
    102     213MB   214MB   1049kB               203
    103     215MB   216MB   1049kB               205
    104     217MB   218MB   1049kB               207
    105     219MB   220MB   1049kB               209
    106     221MB   222MB   1049kB               211
    107     223MB   224MB   1049kB               213
    108     225MB   226MB   1049kB               215
    109     228MB   229MB   1049kB               217
    110     230MB   231MB   1049kB               219
    111     232MB   233MB   1049kB               221
    112     234MB   235MB   1049kB               223
    113     236MB   237MB   1049kB               225
    114     238MB   239MB   1049kB               227
    115     240MB   241MB   1049kB               229
    116     242MB   243MB   1049kB               231
    117     244MB   245MB   1049kB               233
    118     246MB   247MB   1049kB               235
    119     249MB   250MB   1049kB               237
    120     251MB   252MB   1049kB               239
    121     253MB   254MB   1049kB               241
    122     255MB   256MB   1049kB               243
    123     257MB   258MB   1049kB               245
    124     259MB   260MB   1049kB               247
    125     261MB   262MB   1049kB               249
    126     263MB   264MB   1049kB               251
    127     265MB   266MB   1049kB               253
    128     267MB   268MB   1049kB               255

    bash5$ 


-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-0.deb11.4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages parted depends on:
ii  libc6         2.31-13+deb11u5
ii  libparted2    3.4-1
ii  libreadline8  8.1-1
ii  libtinfo6     6.2+20201114-2

parted recommends no packages.

Versions of packages parted suggests:
ii  parted-doc  3.4-1

-- no debconf information



More information about the Parted-maintainers mailing list