2

I followed the instructions provided in this answer which explains how to make an El Capitan bootable disk from a system running Catalina

I copied the commands exactly as prescribed, reproduced here:

pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg ~/Desktop/El\ Capitan
diskutil eject Install\ OS\ X
cd ~/Desktop/El\ Capitan
hdiutil attach InstallMacOSX.pkg/InstallESD.dmg  -noverify -nobrowse -mountpoint /Volumes/esd
sudo asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/MyVolume -noprompt -noverify -erase
diskutil rename OS\ X\ Base\ System Install\ El\ Capitan
rm /Volumes/Install\ El\ Capitan/System/Installation/Packages
cp -rp /Volumes/esd/Packages /Volumes/Install\ El\ Capitan/System/Installation
cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/Install\ El\ Capitan/
cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/Install\ El\ Capitan/
hdiutil detach /Volumes/esd
sudo bless --folder /Volumes/Install\ El\ Capitan/System/Library/CoreServices --label Install\ El\ Capitan
cp /Volumes/Install\ El\ Capitan/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/InstallAssistant.icns /Volumes/Install\ El\ Capitan/.VolumeIcon.icns
diskutil eject Install\ El\ Capitan

However it hangs at the last line. Here is the output:

pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg ~/Desktop/El\ Capitan
diskutil eject Install\ OS\ X
cd ~/Desktop/El\ Capitan
hdiutil attach InstallMacOSX.pkg/InstallESD.dmg  -noverify -nobrowse -mountpoint /Volumes/esd
sudo asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/MyVolume -noprompt -noverify -erase
diskutil rename OS\ X\ Base\ System Install\ El\ Capitan
rm /Volumes/Install\ El\ Capitan/System/Installation/Packages
cp -rp /Volumes/esd/Packages /Volumes/Install\ El\ Capitan/System/Installation
cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/Install\ El\ Capitan/
cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/Install\ El\ Capitan/
hdiutil detach /Volumes/esd
sudo bless --folder /Volumes/Install\ El\ Capitan/System/Library/CoreServices --label Install\ El\ Capitan
cp /Volumes/Install\ El\ Capitan/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/InstallAssistant.icns /Volumes/Install\ El\ Capitan/.VolumeIcon.icns
diskutil eject Install\ El\ Capitan
Could not open package for expansion: /Volumes/Install OS X/InstallMacOSX.pkg
Unable to find disk for Install OS X
/dev/disk3              GUID_partition_scheme           
/dev/disk3s1            EFI                             
/dev/disk3s2            Apple_HFS                       /Volumes/esd
Password:

    Validating target...done
    Validating source...done
    Retrieving scan information...done
    Validating sizes...done
    Restoring  ....10....20....30....40....50....60....70....80....90....100
    Restored target device is /dev/disk2s1.
    Remounting target volume...done

asr: Couldn't personalize volume /Volumes/OS X Base System - State not recoverable
Volume on disk2s1 renamed to Install El Capitan

Does anyone have any idea why that might happen?

1 Answers1

0

The asr command can be replaced by using the Disk Utility to restore to a sparse image. Since the sparse image is using a MBR partitioning scheme, image can then be cloned to the external drive by using the dd command. The updated procedure has been added to the answer given as a link in your question.

  • but any idea why it hangs? How can I verify that the bootable drive was created properly ? – CodyBugstein Apr 24 '20 at 04:15
  • The answer is to use the Disk Utility instead of the asr command. – David Anderson Apr 24 '20 at 05:44
  • David, it doesn't terminate. it just stays stuck on that last line. It never goes back to the prompt. – CodyBugstein Apr 24 '20 at 07:08
  • So you're saying there's a way to use the Disk Utility GUI to create the bootable drive instead of using these terminal instructions ? – CodyBugstein Apr 24 '20 at 07:10
  • I suppose there is point in posting my answer since I now know I can not reproduce your problem. – David Anderson Apr 24 '20 at 07:10
  • Are there any more details I can provide to help you reproduce it ? – CodyBugstein Apr 24 '20 at 07:12
  • There is no point, if the answer fixes the problem. – David Anderson Apr 24 '20 at 07:42
  • I hit another wall with this. I get this error: "Could not validate sizes – Operation not permitted. The operation couldn’t be completed. (OSStatus error 1.)" It's discussed here but there is no solution https://discussions.apple.com/thread/250833232 My drive is 16GB – CodyBugstein Apr 26 '20 at 08:02
  • You are correct. I tested using a sparse image file instead of an actual flash drive. So, I added a step where the image is cloned to the flash drive. Since the original is immediately ejected and eventually deleted, I did not bother to use hfs.util to change the UUID of the clone. – David Anderson Apr 28 '20 at 19:47
  • You added this step to the above answer ? – CodyBugstein Apr 28 '20 at 19:53
  • Yes, I added a step to the previous procedure I used for testing. The posted answer was changed to include a step to create the sparse image and a different step to clone the image. – David Anderson Apr 28 '20 at 20:05