Changes between Version 4 and Version 5 of Ticket #10208


Ignore:
Timestamp:
Mar 8, 2021, 10:31:36 AM (3 years ago)
Author:
pulkomandy
Comment:

This is probably related to https://review.haiku-os.org/c/haiku/+/653

If the disk was initially formatted directly with a filesystem using 2K blocks, it seems that the intel partitionning system will reuse that value instead of the actual disk block size to compute partition sizes.

To confirm:

  • Format the whole disk as, for example BFS (without any partition table)
  • Reboot
  • Then create a partition table and add some partitions
  • Reboot again
  • Confirm that your partitions have shrunk as a result

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10208 – Description

    v4 v5  
    22I decided to have 2 Haiku partitions for the OS and 1 haiku data partition.
    33Steps:
    4 1) boot from USB stick
    5 2) Fire up DriveSetup
    6 3) Initialize Disk to Intel Partition Map (it was unrecognized for some reason, but I can't remember what OS was on it...)
    7 4) Add 3 partitions
     4
     51. boot from USB stick
     62. Fire up DriveSetup
     73. Initialize Disk to Intel Partition Map (it was unrecognized for some reason, but I can't remember what OS was on it...)
     84. Add 3 partitions
    89  - Haiku32 (about 20 GiB, using the slider)
    910  - Haiku64 (about 30 GiB, using the slider)
    1011  - HaikuData (the rest of the available space)
    11 5) Format Haiku32
    12 6) Install haiku to Haiku32 using HaikuInstaller
    13 7) Reboot
    14 8) Start Haiku from USB stick into boot menu, I can't find Haiku32...
    15 9) Back into Haiku (usb stick), the partition sizes are now approximately 3, 4 and 67 GiB!
    16 10) Reinstall Haiku unto Haiku32
    17 11) Now Haiku32 is visible in my boot menu on the USB stick.
     125. Format Haiku32
     136. Install haiku to Haiku32 using HaikuInstaller
     147. Reboot
     158. Start Haiku from USB stick into boot menu, I can't find Haiku32...
     169. Back into Haiku (usb stick), the partition sizes are now approximately 3, 4 and 67 GiB!
     1710. Reinstall Haiku unto Haiku32
     1811. Now Haiku32 is visible in my boot menu on the USB stick.
    1819
    1920It is almost as if performing these actions in 1 go (initialize, create x3, format, install), it has miscounted the sizes. The actual written partition map sizes after the reboot is pretty much 4x smaller, but before the reboot its idea of the partition map is the originally intended sizes. I'll see if I can gather some useful information