티스토리 뷰

Revision History

2016/05/14 20:27:32 - 최초 작성

2016/12/14 16:39:03 - macOS Sierra 명령어 추가


VirtualBox에 맥을 설치해보려는데 예전에 만들어 두었던 설치용 ISO가 정상 동작하지 않아서 다른 방법을 찾던 중 asr(Apple Software Restore) 명령을 사용하는 방법이 비교적 간단하고 잘 만들어져서 기록해둡니다.


다음은 어느 글에 댓글로 적혀있던 내용입니다.

The instructions below, found in Creating a bootable El Capitan ISO image, worked for me after a download of OS X El Capitan from the App Store. hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd hdiutil create -o ElCapitan3.cdr -size 7316m -layout SPUD -fs HFS+J hdiutil attach ElCapitan3.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/iso asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages cp -rp /Volumes/esd/Packages /Volumes/OS\ X\ Base\ System/System/Installation cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/ cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/ hdiutil detach /Volumes/esd hdiutil detach /Volumes/OS\ X\ Base\ System hdiutil convert ElCapitan3.cdr.dmg -format UDTO -o ElCapitan3.iso mv ElCapitan3.iso.cdr ElCapitan3.iso Additionally for running within VirtualBox: Create a new OS X El Capitan from Wizard. Change "System->chipset" to PIIX3, mount created ISO and boot up. If you only see a the CD/DVD as installation target within the installation program choose diskutility and erase the VirtualBox disk, which will lead to an empty HFS+ Journaled disk, which now could be chosen as target.


글을 바탕으로 Install OS X El Capitan.app 이 들어있는 dmg 파일을 마운트하여 작업하였습니다.


1) El Captian 설치용 앱 Install OS X El Capitan.app 을 다운로드 받거나 마운트 한다.

다운로드 한 경우 /Applications/Install OS X El Capitan.app 이 기본 경로이고 마운트 한 경우 각 마운트 경로를 복사해서 사용


2) 설치 프로그램에 포함된 InstallESD.dmg 이미지를 /Volumes/esd 경로로 마운트

hdiutil attach "/Volumes/OS X El Capitan (15A284)/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd


3) dmg 이미지를 생성

hdiutil create -o ElCapitan -size 7316m -layout SPUD -fs HFS+J


4) 생성한 dmg 이미지를 /Volumes/iso 경로로 마운트

hdiutil attach ElCapitan.dmg -noverify -nobrowse -mountpoint /Volumes/iso


5) asr 명령어로 /Volumes/esd/BaseSystem.dmg 내용을 새로 만든 빈 dmg 이미지에 복원

asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase


6) 생성된 기본 시스템 구조에서 "/Volumes/OS X Base System/System/Installation/Packages" 를 제거

rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages


7) ESD 이미지의 파일을 새 이미지에 복사

cp -rp /Volumes/esd/Packages /Volumes/OS\ X\ Base\ System/System/Installation

cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/

cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/


8) 복사가 끝나면 마운트 되어있던 이미지들을 제거

hdiutil detach /Volumes/esd

hdiutil detach /Volumes/OS\ X\ Base\ System


9) 새로 만들 dmg 포맷을 iso 포맷으로 변환

hdiutil convert ElCapitan.dmg -format UDTO -o ElCapitan.iso

mv ElCapitan.iso.cdr ElCapitan.iso



2016/12/14 16:39:03 - macOS Sierra 명령어 추가

hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Install\ macOS\ Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Install\ macOS\ Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg
hdiutil detach /Volumes/install_app
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil convert /tmp/Install\ macOS\ Sierra.cdr.dmg -format UDTO -o /tmp/Install\ macOS\ Sierra.iso
mv /tmp/Install\ macOS\ Sierra.iso.cdr ${HOME}/Downloads/Install\ macOS\ Sierra.iso 

앱스토어에서 다운로드 한 경우 경로는 다음과 같습니다.

경로가 다른 경우 변경해주시면 됩니다.

/Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg



검색: El Capitan, 엘 캐피탄, Bootable ISO, 부팅 ISO, ASR, 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함