본문 바로가기

리눅스

macOS에서 ISO 이미지를 USB 부팅 디스크로 생성하는 방법

반응형

macOS에서 ISO 이미지를 USB 부팅 디스크로 생성하는 방법

USB 장치 확인

USB 디스크 식별자를 확인합니다.

diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +994.7 GB   disk3

/dev/disk4 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *30.8 GB    disk4
   1:       Microsoft Basic Data                         3.3 GB     disk4s1
   2:                        EFI ESP                     5.2 MB     disk4s2
   3:       Microsoft Basic Data                         307.2 KB   disk4s3
   4:           Linux Filesystem                         27.5 GB    disk4s4
  • disk4는 예시입니다. 실제 USB 번호를 꼭 확인하세요.

1. USB 초기화

부팅 호환성을 위해 MBR + FAT32로 포맷합니다.

  • 파티션 테이블 : MBR
  • 파일시스템 : FAT32
  • 볼륨 이름 : USB
  • 단일 파티션
diskutil eraseDisk FAT32 USB MBR /dev/disk4
Started erase on disk4
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk4s1 as MS-DOS (FAT32) with name USB
512 bytes per physical sector
/dev/rdisk4s1: 60093760 sectors in 1877930 FAT32 clusters (16384 bytes/cluster)
bps=512 spc=32 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=2048 drv=0x80 bsec=60123136 bspf=14672 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk4
$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +994.7 GB   disk3

/dev/disk4 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *30.8 GB    disk4
   1:                 DOS_FAT_32 USB                     30.8 GB    disk4s1

2. USB unmount

diskutil unmountDisk /dev/disk4
Unmount of all volumes on disk4 was successful
728x90

ISO 이미지 확인

ls ubuntu-24.04.3-live-server-amd64.iso
ubuntu-24.04.3-live-server-amd64.iso

3. ISO 이미지를 USB에 기록(핵심)

ISO 파일이 있는 디렉터리에서 실행합니다.

sudo dd if=ubuntu-24.04.3-live-server-amd64.iso of=/dev/rdisk4 bs=1m status=progress
  • /dev/rdisk4 : 속도 빠름
  • status=progress : 진행률 표시
Password:
  3293577216 bytes (3294 MB, 3141 MiB) transferred 273.005s, 12 MB/s
3150+1 records in
3150+1 records out
3303444480 bytes transferred in 273.727217 secs (12068381 bytes/sec)

4. 완료 후 USB 분리

diskutil eject /dev/disk4
Disk /dev/disk4 ejected

 

728x90
반응형