barrykn / big-sur-micropatcher

A primitive USB patcher for installing macOS Big Sur on unsupported Macs
1.24k stars 174 forks source link

Error While Patching the Big Sur via Terminal #206

Open anuzvaidhya opened 3 years ago

anuzvaidhya commented 3 years ago

Hi fellas, I am facing an error while patching the Big Sur 11.2.2 for my MacBook Pro mid-2012. I recently installed Big Sur on my MBP and the I wiped it and installed Catalina again. I wanted to install Big Sur again and I had the 12GB Big Sur file saved on my 2nd Hard Drive. So, I though to patch it again and make it compatible. But I am facing an error while patching it via terminal. I have attached a photo of the error.

I am pathing it via Micropatcher.sh command using terminal and install-setvars.sh, but it's failing. Saying "Failed to Locate the Big Sur recovery stick" Screenshot 2021-03-13 at 2 23 49 AM

Ausdauersportler commented 3 years ago

The documentation is pretty clear about this:

You cannot run the patch-kext.sh script from outside the micropatcher USB stick. If you are able to do bash programming you can separate it, but it is probably not worth the effort. Please follow the online docs, put in your micropatcher USB stick and run the patch-kext.sh starting from there.

ghost commented 3 years ago

(It says micropatcher.sh not patch-kexts.sh)

Ausdauersportler commented 3 years ago

(You are right!)

2nd try:

You need to install the Big Sur installation program using createinstallmedia as described in the online docs either on an USB thumb drive, SD card, HFS journaled partition on an internal or external disk drive.

The terminal command mount should show the prepared installer with the mount point similar to this

/dev/disk4s2 on /Volumes/Install macOS Big Sur (hfs, local, nodev, nosuid, journaled, noowners)

If no such drive is visible you cannot micropatch it.

anuzvaidhya commented 3 years ago

(You are right!)

2nd try:

You need to install the Big Sur installation program using createinstallmedia as described in the online docs either on an USB thumb drive, SD card, HFS journaled partition on an internal or external disk drive.

The terminal command mount should show the prepared installer with the mount point similar to this

/dev/disk4s2 on /Volumes/Install macOS Big Sur (hfs, local, nodev, nosuid, journaled, noowners)

If no such drive is visible you cannot micropatch it.

I installed Big Sur using createinstallmedia via terminal, but when it comes to Micropatch it, I am unable to do that. I am following the correct methods for micro path, but it's still unable to locate the Big Sur recovery stick.

Ausdauersportler commented 3 years ago

Unless you provide the output of the mount command as I previously mentioned I would say the micropatcher is fine (as it worked before a thousands time) and you made just another user error. Sorry, you need to be more precise.

anuzvaidhya commented 3 years ago

Unless you provide the output of the mount command as I previously mentioned I would say the micropatcher is fine (as it worked before a thousands time) and you made just another user error. Sorry, you need to be more precise.

Drive is visible, but on /dev/disk3s2 instead of /dev/disk4s2. Is it failing because of that? I am sorry for silly questions, I am new to macOS.

https://user-images.githubusercontent.com/80577631/111446847-d533fa00-8732-11eb-8fcd-37984481773b.mp4

I am new to macOS. I don't know about this stuff much.

Ausdauersportler commented 3 years ago

The mount point will vary depending on the number of disk and usb devices already connected....

Ok, please open the USB (Install macOS Big Sur) and show me the get info of the single file there having the same name "Install macOS Big Sur". And please provide a shot of the contents of the USB.

The get info box (right click on the icon) should give you a full name called "Install macOS Big Sur.app".

P.S.: Move the installer app from the desktop to another folder....it has the same name as the USB...

anuzvaidhya commented 3 years ago

The mount point will vary depending on the number of disk and usb devices already connected....

Ok, please open the USB (Install macOS Big Sur) and show me the get info of the single file there having the same name "Install macOS Big Sur". And please provide a shot of the contents of the USB.

The get info box (right click on the icon) should give you a full name called "Install macOS Big Sur.app".

P.S.: Move the installer app from the desktop to another folder....it has the same name as the USB...

Screenshot 2021-03-17 at 4 15 23 PM Screenshot 2021-03-17 at 4 15 33 PM

Ausdauersportler commented 3 years ago

His did you exactly create this USB?

All steps including download!

Ausdauersportler commented 3 years ago

The micropatcher expects and macOS installation applications named "Install macOS Big Sur". Whatever you did, you managed to install the download named "InstallAssistant" to be copied onto the USB.

This was not described in the docs.

anuzvaidhya commented 3 years ago

The micropatcher expects and macOS installation applications named "Install macOS Big Sur". Whatever you did, you managed to install the download named "InstallAssistant" to be copied onto the USB.

This was not described in the docs.

This is also I'm wondering about. I'm creating it via createinstallmedia via terminal. It was supposed to be "macOS Big Sur.app" but it's "install assistant" instead of it.

ghost commented 3 years ago

What version of macOS did you download?

anuzvaidhya commented 3 years ago

What version of macOS did you download?

It's the same file that was associated with the Patcher when I nstalled macOS 11.2.2 for the first time. When I was downgrading, I took a back-up of Big Sur file to use it in future if I need to upgrade to Big Sur again. Then I needed to upgrade to Big Sur but I found that I was unable to micropatch it.

Ausdauersportler commented 3 years ago

Somewhere on your disk you should have the Apple package InstallAssistant.pkg

  1. delete your USB thumb drive and rename it to "BSI" without the ""
  2. unpack the InstallAssistant.pkg by double clicking in Finder, it will unpack and install the "Install macOS Big Sur" on your local disk in the applications folder ( /Applications)
  3. create the USB using this command line: sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volume/BSI
  4. micropatch the now renamed USB (Install macOS Big Sur) and proceed to install
anuzvaidhya commented 3 years ago

Somewhere on your disk you should have the Apple package InstallAssistant.pkg

  1. delete your USB thumb drive and rename it to "BSI" without the ""
  2. unpack the InstallAssistant.pkg by double clicking in Finder, it will unpack and install the "Install macOS Big Sur" on your local disk in the applications folder ( /Applications)
  3. create the USB using this command line: sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volume/BSI
  4. micropatch the now renamed USB (Install macOS Big Sur) and proceed to install

I can't find InstallAssistant.pkg, where can I find it?

Ausdauersportler commented 3 years ago

Apparently theInstall\ macOS\ Big\ Sur.app is on your Desktop, so from the terminal after preparing the USB (delete and rename)

sudo ~/Desktop/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volume/BSI

should do the trick, too.

Honestly, how did you manage to create an installer USB in the first place and why you did not keep it?

anuzvaidhya commented 3 years ago

Apparently theInstall\ macOS\ Big\ Sur.app is on your Desktop, so from the terminal after preparing the USB (delete and rename)

sudo ~/Desktop/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volume/BSI

should do the trick, too.

Honestly, how did you manage to create an installer USB in the first place and why you did not keep it?

I did via patcher for the first, It did all work for me. Downloading and patching both. I wiped it because I wanted to downgrade to Catalina again and I had taken the backup macOS Big Sur file to make it bootable if I want to upgrade to Big Sur again. Now, even if I make it bootable again via patcher (by going to patcher and clicking on "browse"), I still can't Micropatcher it and neither via terminal.

The Patcher's Error:

`Error 1x1 Message: "Password:Error 2x1: Installer Not Found" Output: "Welcome to Patched Sur! (v0.1.1) This script should only be used through the Patched Sur app unless being tested for patcher development

Detecting Installer USB at /Volumes/Install macOS Big Sur [Beta]... Installer USB was not detected. Please be sure to not rename the USB before running patch-usb.sh. " `

seyoon20087 commented 3 years ago

Somewhere on your disk you should have the Apple package InstallAssistant.pkg

  1. delete your USB thumb drive and rename it to "BSI" without the ""
  2. unpack the InstallAssistant.pkg by double clicking in Finder, it will unpack and install the "Install macOS Big Sur" on your local disk in the applications folder ( /Applications)
  3. create the USB using this command line: sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volume/BSI
  4. micropatch the now renamed USB (Install macOS Big Sur) and proceed to install

I can't find InstallAssistant.pkg, where can I find it?

Please use this link to download InstallAssistant.pkg.

Alternatively, you can use Terminal to download InstallAssistant.pkg by typing:

curl -L -o "$HOME"/Downloads/InstallAssistant.pkg http://swcdn.apple.com/content/downloads/12/32/071-14766-A_Q2H6ELXGVG/zx8saim8tei7fezrmvu4vuab80m0e8a5ll/InstallAssistant.pkg
Ausdauersportler commented 3 years ago

This is not a micropatcher issue at all.

Please go to the Patched Sur download page and start over completely! Do not try to find short cuts, to not start in the middle, please start at the very beginning and please read the docs, again.

You obviously never loaded Big Sur yourself and this complete "issue" is yet another user problem.