Jump to content
ITzTravelInTime

High Sierra Automatic APFS Convert fix concept

16 posts in this topic

Recommended Posts

Hi guys, I am creating this topic to discuss an idea I had about a way to force the Mac OS installer to not install using apfs.

So we know that apfs does not runs well on drives not made by apple because it's designed to run on apple firmware, so error correcting features will not work and this will cause data corruption and data lose over the long period of time, so some people will like more to not use apfs and avoid all that problems, but apple has integrated an ssd detection mechanism that will force to upgrade to apfs if an ssd is detected, so my idea is to create a kext that is loaded before the system initializes sata devices and then forces the system to detect all sata and nvme devices as hard drives, I think that is possible, but I do not know iokit so much well to do it, so I am creating this thread, to ask if it's possible to create something like that using io kit and other system libraries to create a kext the could work with clover kext injection and force the system to see all the ssd as hard drives, and also other idea for the kext is that it will enable itself to run only when you are booting into a Mac OS installer, maybe that could be also done using a clover kext to patch string directly on the sata family kext, so what do you think about my idea? is there someone that could help me to create the kext or a clover patch?

 

Thank you for checking out my thread, I hope that we will find a solution soon :)

 

PS: I know that there re things like scripts and commands to install without apfs, but my aim is to create a method that lets the users to tone perform any special task inside the Mac OS installer

Share this post


Link to post
Share on other sites
Advertisement

I think there's no need to (temporary) modify the sata family kext.

There actually is a script made by Pike R. Alpha that checks for APFS convertion and changes it's value to prevent the convertion from happening: https://pikeralpha.wordpress.com/2017/08/03/script-to-check-apfs-conversion-settings/

 

On the other hand:

Also, changing FFM and FM will prevent the APFS convertion.
So does passing --converttoapfs NO  as an argument to the startosinstall tool.

Share this post


Link to post
Share on other sites

I think there's no need to (temporary) modify the sata family kext.

There actually is a script made by Pike R. Alpha that checks for APFS convertion and changes it's value to prevent the convertion from happening: https://pikeralpha.wordpress.com/2017/08/03/script-to-check-apfs-conversion-settings/

 

On the other hand:

Also, changing FFM and FM will prevent the APFS convertion.

So does passing --converttoapfs NO  as an argument to the startosinstall tool.

 

Yes, but I created this thread with the aim to create a solution that does not requires to perform special tasks in the Mac OS installer, because things like command line stuff and scripts are difficult to use for the average user, but I didn't know about the ffm and fm edit method, I tried using ffm and fm from my old Sierra config and it didn't worked

Share this post


Link to post
Share on other sites

I understand the purpose of this thread. Perhaps I should have been more clear:

 

There is no need to change any kexts, because it can be changed within the installer. I referred to Pike R Alpha's script as well as the other two methods as the reason how and why.

 

So it would be more ideal to implement something similar to Pike R. Alpha's script within Clover. That way the enduser is able to specify itself if the convertion needs to be done or not (Config Arg UseAPFS = false/true).

 

IMHO it's better than (temporary) changing any kexts

 

Edit: Alternatively a hotpatch to return ssd check to false would be a good idea too, however I dislike the "only at install" part, because then you either need to remove it after installation, or you're with an unused kext or patch after the install (which isn't a big deal, but still...  :P)

 

Edit2: ORRRRR.... you implement ^ in your installation tool on which we're still waiting  :lol:  :P

Share this post


Link to post
Share on other sites

Yes, I mean to have something that it's easy to enable and will let you to use the installer as usual without performing any script, and also for the kext I did not mean to mod system kext, but to create some sort of injector kext that forces to see ssds as hard drives 

Share this post


Link to post
Share on other sites

something change in latest "Install macos High Sierra"

no more --volume argument in startosinstall?

if you are installing from the usb installer the --volume argument is needed

Share this post


Link to post
Share on other sites

guys, i have discovered that exists a kext that does exactly what i said in the concept, lets the system to believe that your ssd is an hard drive to avoid automatic apfs conversion, it's the unsolid kext, some friends told me of it, it can be found here:

 

https://www.hackintosh-forum.de/index.php/Thread/34272-UnSolid-oder-ich-kann-kein-APFS-nie-nicht-leiden/

 

(note that the link is from the german hackintosh forum website)

Share this post


Link to post
Share on other sites

guys, i have discovered that exists a kext that does exactly what i said in the concept, lets the system to believe that your ssd is an hard drive to avoid automatic apfs conversion, it's the unsolid kext, some friends told me of it, it can be found here:

 

https://www.hackintosh-forum.de/index.php/Thread/34272-UnSolid-oder-ich-kann-kein-APFS-nie-nicht-leiden/

 

(note that the link is from the german hackintosh forum website)

 

Did you try this kext  ? (I had already downloaded it)

UnSolid.kext.zip

Share this post


Link to post
Share on other sites

some friends did try it, it seems to not work to avoid apfs upgrade, but solves the slow boot issue using apfs on an ssd

Share this post


Link to post
Share on other sites

some friends did try it, it seems to not work to avoid apfs upgrade, but solves the slow boot issue using apfs on an ssd

Hello everyone, not to automatically install high sierra in APFS on ssd (and as startosinstall did not render me the expected service) I simply changed "OSInstallAttr.plist" to the line "Do APFS Convert Boolean NO "and the file" minstallconfig.xml "has the line" <key> ConvertToAPFS </ key>

<False />

"

, these files are located in the "/ macOS Install Data /" folder of your USB key or

your preinstallation volume.

the installation is done on the ssd of my choice with HFS + formatting.

Share this post


Link to post
Share on other sites

Hello everyone, not to automatically install high sierra in APFS on ssd (and as startosinstall did not render me the expected service) I simply changed "OSInstallAttr.plist" to the line "Do APFS Convert Boolean NO "and the file" minstallconfig.xml "has the line" <key> ConvertToAPFS </ key>

<False />

"

, these files are located in the "/ macOS Install Data /" folder of your USB key or

your preinstallation volume.

the installation is done on the ssd of my choice with HFS + formatting.

 

i know that method, but it's not so "user friendly" because you have to do it with the nano editor via terminal you do not have other mac installations on the same machine, and sometimes it seems to not work, at least for me

Share this post


Link to post
Share on other sites

i know that method, but it's not so "user friendly" because you have to do it with the nano editor via terminal you do not have other mac installations on the same machine, and sometimes it seems to not work, at least for me

Hello ITzTravelInTime, when you want a hackintosh, it is very difficult to stay "user friendly", you have to put your hands in the "engine", this forum where participants propose, seek, find ... solutions to problems with the expertise and experience of each. Create a usb mac os installation key with only Windows as OS, for everyone here it's impossible. So yes it is true that it requires to have a mac os already operating (virtually or as a dedicated bone).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MaLd0n
      Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Install Clover UEFI in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace Folder CLOVER INSTALLATION.zip   --Install Sierra and boot into system!   --Install Clover UEFI and replace with my folder  CLOVER POST INSTALLATION.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! I prefer DSDT way, apply all patches in one file, many people prefer many SSDTs or Clover patches!   If you need DSDT edit... Run it RunMe.app   --DSDT My DSDT DSDT.ASUS H61M-A MaLd0n.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -EHCx -LPC -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -PNLF Clear NVRAM, Purge and Kextcache
          --FakeSMC http://www.hwsensors.com/releases --Audio https://github.com/vit9696/AppleALC --USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads --LAN http://www.insanelymac.com/forum/topic/287161-new-driver-for-realtek-rtl8111/   Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
    • By bell47
      Hello
       
      I'm French, so excuse me for the approximate language......

      I was on Mountain Lion without problems and I installed a new Sierra system with Clover and rebooted with the key but when I remove the Clover USB key no longer "sees" my hard drive.
      "loading operating system" then black screen.
      Anybody got any ideas?
      Thank you
       
      Gigabyte H61N-USB3 F8
       Intel Core i5
       Mémory    8 Go
       
    • By iammask
      Requirements
      Pendrive 2.0 (>=8GB) "Install macOS Sierra app" (https://itunes.apple.com/de/app/macos-sierra/id1127487414?l=en)(Around 5GB) Working Mac  
      Installing Clover to USB
      Get a USB 2.0 Pendrive (8GB and above)
      Before you can partition the USB, you must determine what the disk identifier is. With the USB plugged in to the computer, use 'diskutil list':

      In Terminal:
      diskutil list In my case, output:
      /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage MacOS 500.4 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s5 4: Microsoft Basic Data DATA 498.8 GB disk0s4 /dev/disk1 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: Pendrive *8.0 GB disk1 As you can see my pendrive is available at /dev/disk1 (check yours).
      Now we are going to create partitions, In Terminal:
      diskutil partitionDisk /dev/disk1 1 GPT HFS+J "install_macos" R Output:
      Started partitioning on disk1 Unmounting disk Creating the partition map Waiting for the disks to reappear Formatting disk1s2 as Mac OS Extended (Journaled) with name install_osx Initialized /dev/rdisk1s2 as a 7 GB case-insensitive HFS Plus volume with a 8192k journal Mounting disk Finished partitioning on disk1 /dev/disk1 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *8.0 GB disk1 1: EFI EFI 209.7 MB disk1s1 2: Apple_HFS install_macos 7.7 GB disk1s2 Now as you can see partitions are created and your pendrive is ready to install clover.
      Download the Clover installer. Current builds are available on sourceforge: http://sourceforge.net/projects/cloverefiboot (chameleon, stolen and rebranded) 
      After Downloading the Clover installer,
      Install it to the Target "install_macos" partition  using "Change Install Location". Select "Customize". Check "Install for UEFI booting only", "Install Clover in the ESP" will automatically selected. Check "BGM" from Themes. Check "AptioMemoryFix.efi", "EmuVariableUefi-64.efi", "OsxFatBinaryDrv-64.efi" from Drivers64UEFI. After making your selections, Click "Install". Finally, one more EFI driver is needed, HFSPlus.efi:
      Download from : https://github.com/JrCs/CloverGrowerPro/raw/master/Files/HFSPlus/X64/HFSPlus.efi. Copy to /EFI/Clover/drivers64UEFI.  
      Kext Setup
      Remove all folders from EFI/CLOVER/kexts/ except 'Other'. Now Download These, FakeSMC.kext: https://github.com/RehabMan/OS-X-FakeSMC-kozlek VoodooPS2Controller.kext: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller USBInjectAll.kext: https://github.com/RehabMan/OS-X-USB-Inject-All Lilu.kext: https://github.com/vit9696/Lilu IntelGraphicsFixup.kext: https://github.com/lvs1974/IntelGraphicsFixup RealtekRTL8100.kext: https://www.insanelymac.com/forum/files/file/259-realtekrtl8100-binary/  
      Setting config.plist
      Download it from the attachments, Unzip and replace EFI/CLOVER/config.plist
       
      Building the MacOS Installer
      In Terminal : 
      sudo "/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia" --volume /Volumes/install_macos --applicationpath "/Applications/Install macOS Sierra.app" --nointeraction sudo diskutil rename "Install macOS Sierra" install_macos Now your Bootable USB is ready to install. Turn off your Laptop.
       
      Installing 
      Make sure you have adequate bios settings
       
      Then Follow:
      Power on laptop with pendrive connected to it. Continuously press "ESC". Select "Boot From USB" (i.e. F9) and select pendrive from the menu. Now it boots into Clover, with left-right arrow, select options. Select "Graphics Injector Menu". Under "Inject Intel" select "FakeID" and replace "0x00000000" to "0x12345678". Now return to main screen and select "install_macos". When grey screen comes, select DiskUtility. Format whole Hard Disk as "Mac Os Extended (Journaled)" with Name as "MacOS" Now quit DiskUtility and click "Install Mac OS Sierra" and select the newly created partition in previous step. Now installer will begin installing files (~15-20mins) and the restart. After restart again boot into clover(Follow Step 1-5) and again select "install_macos". Now Install screen will appear and continue installation. This time installer will install files to your target partition and create Recovery HD partition. Later on restarts. After restart again boot into clover(Follow Step 1-5) and again select "MacOS". If everything goes well, you will finish up the installation process and arrive at the Mac OS Sierra desktop.  
      Install clover to hdd.
      Congratulations!! Your Installation is complete!! 
      Now you need to fix things one by one.
       
      Will Provide fixes when I get time.
      config.plist.zip
    • By fantomas1
      Hi InsanelyMacaholics   

      Use this thread to link / talk about of the future Nvidia Web Driver updates for macOS Sierra.
       
      10.12.6
      Nvidia Web Driver - 378.02.02.25f10 --> build 16G1510 (thanks to BreBo)  New!
      Nvidia Web Driver - 378.02.02.25f09 --> build 16G1408 (thanks to BreBo)
      Nvidia Web Driver - 378.02.02.25f08 --> build 16G1314 (thanks to BreBo)
      Nvidia Web Driver - 378.02.02.25f07 --> build 16G1314 (thanks to haring)
      Nvidia Web Driver - 378.05.05.25f06 --> build 16G1212 (thanks to WeBeRiO)
      Nvidia Web Driver - 378.05.05.25f04 --> build 16G1114 (thanks to lukazm)
      Nvidia Web Driver - 378.05.05.25f03 --> build 16G1036 (thanks to Gradou)
      Nvidia Web Driver - 378.05.05.25f01 --> build 16G29 (thanks to Badruzeus)
       
       
      10.12.5
      Nvidia Web Driver - 378.05.05.15f01 --> build 16F73 (see this post)
       
       
      10.12.4
      Nvidia Web Driver - 378.05.05.05f02 --> build 16E195(thanks to crachmaster4999)
      Nvidia Web Driver - 378.05.05.05f01 --> build 16E195 (thanks to Moviemakergr)  Pascal support!!!
      Nvidia Web Driver - 367.15.10.45f01 --> build 16E195 (thanks to Lanc)
       
       
      10.12.3

      Nvidia Web Driver - 367.15.10.35f01 --> build 16D32 (thanks to shatterhenner)
       
       
      10.12.2
      Nvidia Web Driver - 367.15.10.25f02 --> build 16C68 (see this post)
      Nvidia Web Driver - 367.15.10.25f01 --> build 16C67 (see this post)
      Nvidia Web Driver - 367.15.10.25b06 --> build 16C60b/16C63a (see this post)
       
       
      10.12.1
      Nvidia Web Driver - 367.15.10.15f03 --> build 16B2657/16B2659 (thanks to Moviemakergr).
      Nvidia Web Driver - 367.15.10.15f01 --> build 16B2555 (thanks to Moviemakergr)
       
       
      10.12.0
      Nvidia Web Driver - 367.15.10.05f01 --> build 16A323 (thanks to phi777)
       
       
      GM
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A323 (same driver since DP4/PB3)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A322 (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A320 (see this post)
       
       
      DP/PB
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A313a (DP8 & PB7) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A304a (DP7 & PB6) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A294a (DP6 & PB5) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A286a (DP5 & PB4) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A270f (DP4 & PB3) (thanks to TheRacerMaster)
      Nvidia Web Driver - 367.05.10.05b07 --> build 16A254g (DP3 & PB2) (see this post)
      Nvidia Web Driver - 367.05.10.05b07 --> build 16A238m (PB1) (thanks to Faun) 
      Nvidia Web Driver - 367.05.10.05b07 --> build 16A239j (DP2) (thanks to Faun)
      Nvidia Web Driver - 367.05.10.05b03 --> build 16A201w (DP1) (thanks to Xmedik)
       
    • By IPN96
      Ciao mi scuso per il disturbo, io vorrei abilitare la mia scheda grafica Nvidia geforce gtx 950m per avere delle prestazioni migliori quando lavoro su after effect, la scheda Intel non è ha abbastanza memoria non so se sia possibile fare qualcosa, spero possiate aiutarmi, vi lascio delle info. 
      Sistema operativo Mac osx sierra 10.12.6 
      Modello laptop : Asus N551jx-cn043t
      Il resto è nella screen 
       
       

×