MAC에서 우분투 부팅 USB 만들기
안녕하세요.
MAC에서 우분투 부팅 이미지 USB를 만드는 과정을 정리해 보았습니다.
1. 우분투 이미지 다운로드 하기(LTS 버전을 추천합니다.)
https://www.ubuntu.com/download/desktop
2. 다운이 완료된 iso 파일을 img로 변환합니다.
| MacBookPro:Downloads $ hdiutil convert -format UDRW -o ubuntu-18.04.1-desktop-amd64.img ubuntu-18.04.1-desktop-amd64.iso Driver Descriptor Map(DDM : 0) 읽는 중... Ubuntu 18.04.1 LTS amd64 (Apple_ISO : 1) 읽는 중... Apple(Apple_partition_map : 2) 읽는 중... Ubuntu 18.04.1 LTS amd64 (Apple_ISO : 3) 읽는 중... .................................................................................... EFI(Apple_HFS : 4) 읽는 중... .................................................................................... Ubuntu 18.04.1 LTS amd64 (Apple_ISO : 5) 읽는 중... ..................................................................................... 경과 시간: 6.220s 속도: 299.5Mbytes/초 저장: 0.0% created: ~/Downloads/ubuntu-18.04.1-desktop-amd64.img.dmg | 
3. 확장자 img.dmg 를 img로 변환합니다.
| MacBookPro:Downloads$ mv ubuntu-18.04.1-desktop-amd64.img.dmg ubuntu-18.04.1-desktop-amd64.img | 
4. USB 메모리를 연결합니다.
5. 마운트된 USB 메모리를 확인합니다. /dev/disk2 로 마운트 되는 것을 확인할 수 있습니다. 잘 모르겠다면 USB를 추출한 전/후를 비교하면 파일시스템 어디에 마운트되는지 확인이 가능합니다.
| MacBookPro:Downloads $ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_APFS Container disk1 250.8 GB disk0s2 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +250.8 GB disk1 Physical Store disk0s2 1: APFS Volume Macintosh HD 52.1 GB disk1s1 2: APFS Volume Preboot 45.1 MB disk1s2 3: APFS Volume Recovery 512.4 MB disk1s3 4: APFS Volume VM 2.1 GB disk1s4 /dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *16.1 GB disk2 1: DOS_FAT_32 JUNE 16.1 GB disk2s1 | 
6. USB를 언마운트합니다.
| MacBookPro:Downloads$ diskutil unmountDisk /dev/disk2 Unmount of all volumes on disk2 was successful | 
7. 부팅 이미지를 설치합니다. 이젠 인내의 시간이 필요합니다. 엔터를 친 후 아무 반응이 없는데 아래와 같이 대략 10분정도가 소요되네요.
| MacBookPro:Downloads $ sudo dd if=ubuntu-18.04.1-desktop-amd64.img of=/dev/disk2 bs=1m 1862+1 records in 1862+1 records out 1953349632 bytes transferred in 562.645930 secs (3471721 bytes/sec) | 
