$Id: $

Modify an exisintng MacOS


  1. setup commandline tools; see this setup page.

  2. clone and expand apfs partition
    1. make a partition by gparted as exfat or so
    2. Note: it does not have an option of partition type of APFS.
    3. clone the parttion by dd on Ubuntu.
    4. Repair the partition type id by gdisk on Ubuntu.
      1. $ sudo gdisk /dev/sda
      2. t (type)
      3. 6 (/dev/sda6)
      4. AF0A (APFS, note AF00: hfs+)
    5. Repair the size of partition (set by dd).
      1. boot from recovery.dmg
      2. run terminal
      3. $ diskutil # to show the commands.
      4. $ diskutil list # to show all the partition.
      5. $ diskutil apfs resizeContainer disk0s6 limits # to show the max size
        It shows 251.7GB in my case.
      6. $ diskutil apfs resizeContainer disk0s6 251.7GB It successfully resize macOS data volume!

  3. re-install MacOS; it takes 3 hours.
    1. Boot into Recovery Mode
      1. boot
      2. push "space" at OS selection to show all options.
      3. select "Recovery.dimg", push Enter and wait until recovery mode boots up; it takes time to start recovery mode.
    2. select "diskUtility" at Main Menu and push "continue".
    3. select "MacOS" partition and push "Erase"; select APFS to format.
    4. back to the main menu; select reinstall MacOS; select the disk partition.

  4. Modify SMBIOS
  5. new genSMBIOS for RZ4_2
    1. $ mountEFI.commnad # then press B to mount EFI partition.
    2. $ ls /Volumes/EFI_RZ4SSD/EFI/
    3. Boot/
      Microsoft/
      OC/
    4. $ cd /Volumes/EFI_RZ4SSD/EFI/OC/
    5. $ ProperTree.command config.plist # if tkinter error occurs
    6. $ brew intall python-tk@3.14 # change @3.14 according to your system.
    7. go to platform info to change the info.

Go back to Computer