반응형
macOS에서 우분투 설치 USB를 diskutil과 dd로 만드는 방법
1. 우분투 ISO 다운로드
공식 사이트에서 원하는 버전의 .iso 파일을 받습니다.
- ubuntu releases : https://releases.ubuntu.com/26.04/
- kakao mirror : https://mirror.kakao.com/ubuntu-releases/26.04/
https://releases.ubuntu.com/26.04/ubuntu-26.04-live-server-amd64.iso
https://mirror.kakao.com/ubuntu-releases/26.04/ubuntu-26.04-live-server-amd64.iso
-rw-r--r--@ 1 staff staff 3.2G 7월 30 21:09 ubuntu-24.04.4-live-server-amd64.iso
-rw-r--r--@ 1 staff staff 2.7G 7월 30 21:09 ubuntu-26.04-live-server-amd64.iso
2. USB 삽입 후 디스크 확인
diskutil list
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *30.8 GB disk4
1: Windows_FAT_32 UBUNTU-SERV 30.8 GB disk4s1
보통 /dev/disk4처럼 표시되며 용량과 이름(예: USB DISK)으로 구분하면 됩니다.
3. 디스크 마운트 해제
diskutil unmountDisk /dev/disk4
Unmount of all volumes on disk4 was successful
4. dd로 ISO 굽기
sudo dd if=./ubuntu-26.04-live-server-amd64.iso of=/dev/rdisk4 bs=1m status=progress
Password:
3393191936 bytes (3393 MB, 3236 MiB) transferred 38.007s, 89 MB/s
3247+1 records in
3247+1 records out
3405469696 bytes transferred in 38.160414 secs (89240900 bytes/sec)
- if : ISO 파일 경로
- of : disk4가 아니라 rdisk4(raw disk)를 사용해야 훨씬 빠릅니다.
- bs=1m : 블록 크기 (macOS dd는 1m도 인식됨, 리눅스처럼 1M도 가능)
- status=progress : 진행 상황 표시 (macOS 기본 dd는 진행률이 안 나올 수도 있어서 안 나오면 다른 터미널에서 Ctrl+T를 눌러 진행 상태를 확인할 수 있습니다)
5. 완료 후 꺼내기
diskutil eject /dev/disk4
Disk /dev/disk4 ejected
6. USB 자체가 정상인지 검증
체크섬 확인 (ISO가 손상되지 않았는지)
shasum -a 256 ubuntu-26.04-live-server-amd64.iso
dec49008a71f6098d0bcfc822021f4d042d5f2db279e4d75bdd981304f1ca5d9 ubuntu-26.04-live-server-amd64.iso
- 우분투 사이트에 공개된 SHA256SUMS 값과 비교하세요
dd 결과물
- 검증 자동 계산 (직접 나눌 필요 없이 한 줄로)
SIZE=$(stat -f%z ubuntu-26.04-live-server-amd64.iso)
COUNT=$(( (SIZE + 1048575) / 1048576 ))
echo "SIZE=$SIZE, COUNT=$COUNT"
sudo dd if=/dev/rdisk4 bs=1m count=$COUNT 2>/dev/null | head -c $SIZE | shasum -a 256
dec49008a71f6098d0bcfc822021f4d042d5f2db279e4d75bdd981304f1ca5d9 -
728x90
반응형
'맥(솔라리스)' 카테고리의 다른 글
| macOS에서 diskutil과 터미널 명령어로 우분투 설치 USB 만드는 방법 (0) | 2026.06.14 |
|---|---|
| macOS에서 Sublime Text 키 매핑을 구성하는 방법 (0) | 2026.03.20 |
| macOS에서 stormssh를 설치하고 설정하는 방법 (0) | 2026.03.20 |
| macOS에서 Gas Mask를 설치하는 방법 (0) | 2026.03.20 |
| macOS에서 Spectacle를 설치하는 방법 (0) | 2026.03.19 |