$Id: $
Modify an exisintng MacOS
- setup commandline tools; see this setup page.
- git, python3, ProperTree, mountEFI, GenSMBIOS, brew, svn, (command-line) emacs, GUI emacs and so on.
- clone and expand apfs partition
- make a partition by gparted as exfat or so
Note: it does not have an option of partition type of APFS.
- clone the parttion by dd on Ubuntu.
- Repair the partition type id by gdisk on Ubuntu.
- $ sudo gdisk /dev/sda
- t (type)
- 6 (/dev/sda6)
- AF0A (APFS, note AF00: hfs+)
- Repair the size of partition (set by dd).
- boot from recovery.dmg
- run terminal
- $ diskutil # to show the commands.
- $ diskutil list # to show all the partition.
- $ diskutil apfs resizeContainer disk0s6 limits # to show the max size
It shows 251.7GB in my case.
- $ diskutil apfs resizeContainer disk0s6 251.7GB
It successfully resize macOS data volume!
- re-install MacOS; it takes 3 hours.
- Boot into Recovery Mode
- boot
- push "space" at OS selection to show all options.
- select "Recovery.dimg", push Enter and wait until recovery mode boots up; it takes time to start recovery mode.
- select "diskUtility" at Main Menu and push "continue".
- select "MacOS" partition and push "Erase"; select APFS to format.
- back to the main menu; select reinstall MacOS; select the disk partition.
- Modify SMBIOS
new genSMBIOS for RZ4_2
- $ mountEFI.commnad # then press B to mount EFI partition.
- $ ls /Volumes/EFI_RZ4SSD/EFI/
Boot/
Microsoft/
OC/
- $ cd /Volumes/EFI_RZ4SSD/EFI/OC/
- $ ProperTree.command config.plist # if tkinter error occurs
- $ brew intall python-tk@3.14 # change @3.14 according to your system.
- go to platform info to change the info.
Go back to Computer