jimmy@machine:~$ cd Downloads/
Executamos agora o comando que converte a imagem de iso para img:
jimmy@machine:~/Downloads$ hdiutil convert -format UDRW -o ubuntu-12.04.3-desktop-i386.img ubuntu-12.04.3-desktop-i386.iso
Reading Master Boot Record (MBR : 0)…
Reading Ubuntu 12.04.3 LTS i386 (Apple_ISO : 1)…
Reading (Windows_NTFS_Hidden : 2)…
................................................................................................................................................................................................................
Elapsed Time: 21.860s
Speed: 32.3Mbytes/sec
Savings: 0.0%
created: /Users/jimmy/Downloads/ubuntu-12.04.3-desktop-i386.img.dmg
Reading Master Boot Record (MBR : 0)…
Reading Ubuntu 12.04.3 LTS i386 (Apple_ISO : 1)…
Reading (Windows_NTFS_Hidden : 2)…
................................................................................................................................................................................................................
Elapsed Time: 21.860s
Speed: 32.3Mbytes/sec
Savings: 0.0%
created: /Users/jimmy/Downloads/ubuntu-12.04.3-desktop-i386.img.dmg
Por omissão, o macosx cria as imagens com .dmg no final, para resolver o problema basta trocar o nome do ficheiro.
jimmy@machine:~/Downloads$ mv ubuntu-12.04.3-desktop-i386.img.dmg ubuntu-12.04.3-desktop-i386.img
Inserimos a drive USB e executamos o seguinte comando para saber onde está a nossa pen, neste caso em (/dev/disk1)
jimmy@machine:~/Downloads$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS brain 319.7 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk1
1: DOS_FAT_32 8.0 GB disk1s1
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS brain 319.7 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk1
1: DOS_FAT_32 8.0 GB disk1s1
ATENÇÃO: memorize o numero da drive USB, neste caso é 1 (/dev/disk1)
"Desmontamos" a pen com o comando seguinte:
jimmy@machine:~/Downloads$ diskutil unmountDisk /dev/disk1
Unmount of all volumes on disk1 was successful
Unmount of all volumes on disk1 was successful
E corremos o comando que irá preparar a pen com o SO, troque o 1 (/dev/rdisk1) pelo número identificado no passo anterior:
jimmy@machine:~/Downloads$ dd if=ubuntu-12.04.3-desktop-i386.img of=/dev/rdisk1 bs=1m
707+0 records in
707+0 records out
741343232 bytes transferred in 77.944528 secs (9511165 bytes/sec)
707+0 records in
707+0 records out
741343232 bytes transferred in 77.944528 secs (9511165 bytes/sec)