오늘은 맥에서 리눅스 혹은 윈도우 부팅을 하기 위한
부팅 USB를 만드러보려해요.
천천히 따라오세요.
$ 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_CoreStorage Macintosh HD 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +249.8 GB disk1
Logical Volume on disk0s2
55D0807B-077D-4F79-92A1-9C90E2183DF1
Unlocked Encrypted
먼저 USB를 꽂지 않은 상태에서 diskutil list 명령을 입력해줍니다.
그리고 USB를 꽂은 뒤 또 다시 diskutil list를 입력해줍니다.
$ 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_CoreStorage Macintosh HD 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +249.8 GB disk1
Logical Volume on disk0s2
55D0807B-077D-4F79-92A1-9C90E2183DF1
Unlocked Encrypted
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *62.1 GB disk2
1: Windows_NTFS USB 62.1 GB disk2s1
그럼 다음과 같이 /dev/disk2 라는 장치가 리스트에 추가된 것을 보실 수 있어요.
USB가 아닌 다른 장치를 건드리면 안되니 확실하게 확인하기 위해서
다음과 같은 작업을 진행했어요.
$ diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
디스크를 확인했으니 unmountDisk 옵션을 주어 마운트 해제를 합니다.
$ hdiutil convert -format UDRW -o ~/Desktop/ubuntu.img ~/Downloads/ubuntu-16.04.3-desktop-amd64.iso
Driver Descriptor Map(DDM : 0) 읽는 중...
Ubuntu 16.04.3 LTS amd64 (Apple_ISO : 1) 읽는 중...
Apple(Apple_partition_map : 2) 읽는 중...
Ubuntu 16.04.3 LTS amd64 (Apple_ISO : 3) 읽는 중...
............................................................................
EFI(Apple_HFS : 4) 읽는 중...
............................................................................
Ubuntu 16.04.3 LTS amd64 (Apple_ISO : 5) 읽는 중...
..............................................................................
경과 시간: 4.698s
속도: 322.3Mbytes/초
저장: 0.0%
created: /Users/Desktop/ubuntu.img.dmg
이제 다운로드 받은 ISO파일의 경로를 가져와
hdiutil convert -format UDRW -o ~/Desktop/ubuntu.img [ISO 다운로드 경로] 뒤에 붙여줍니다.
그럼 위와 같이 dmg파일이 생성되는데, 이를 img로 변경해주어야 합니다.
$ mv ~/Desktop/ubuntu.img.dmg ~/Desktop/ubuntu.img
이렇게 입력해주어도 되고,
파일명 변경을 통해서 .dmg를 지우셔도 됩니다.
$ sudo dd if=~/Desktop/ubuntu.img of=/dev/disk2 bs=1m
1514+1 records in
1514+1 records out
1587609600 bytes transferred in 345.249275 secs (4598444 bytes/sec)
그럼 dd명령으로
if에는 img파일 경로,
of에는 처음에 알아내었던 디스크 명을 넣어주시면 됩니다.
조금의 시간이 걸린 뒤 완료되었다는 문구가 나오게 됩니다.
그럼 위와 같은 창이 뜰텐데 추출을 눌러 USB를 제거해주시면 되겠습니다.
이상 부팅 USB 만들기였습니다.
'IT' 카테고리의 다른 글
카미(KAMI)2: 여행 5페이지 6번째 퍼즐 해답 (0) | 2017.10.09 |
---|---|
리눅스: 터미널을 이용한 시스템 종료와 재부팅 (0) | 2017.10.08 |
맥에서 리눅스, 윈도우 부팅 USB 만들기 (1) | 2017.09.16 |
MySQL: root 비밀번호(초기암호) 분실, 재설정 for Mac (0) | 2017.09.15 |
한 번의 스크롤로 동시에 다른 요소까지 스크롤 (0) | 2017.09.13 |
아이폰 메세지 맥북과 연동하기 (0) | 2017.09.07 |
혹시 방법있나요?