You need to use the following two commands on Apple OS X to directory write an ISO image to USB flash drive:
a) diskutil command - The diskutil utility manipulates the structure of local disks.
b) dd command - The dd utility copies the standard input to the standard output
How to create and use Live USB on a OS X
First, download a Fedora image by visiting the official site. Insert a USB stick and backup all required data on your disk. Open the Terminal and type the following command to view USB stick name:
diskutil list
Sample outputs:
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *480.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage 479.2 GB disk0s2
3: Apple_Boot Boot OS X 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFSX Macintosh HD *478.9 GB disk1
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *16.4 GB disk2
1: DOS_FAT_32 UNTITLED 16.4 GB disk2s1
In this example, /dev/disk2 is my USB flash drive (16.4GB). You need to use the correct drive name in next step. Please note that the following command will destroy all data on the USB stick. Also, make sure you use the correct USB drive name. Do not blame me if you overwrite OS X disk:
## first unmount the usb media ## diskutil unmountDisk /dev/disk2 ## Now, write an iso image to the usb media in raw format. ## ### I'm using Fedora 20 Live ISO Image downloaded from https://fedoraproject.org/ ## sudo dd if=~/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso of=/dev/disk2 bs=1m
Sample outputs:
Wait for the dd command to complete, then remove the USB flash drive. Start your x86/amd64 based computer/laptop, and boot from a USB stick by holding down F12 (or F2 or Del) keys:
0 comments:
Post a Comment