"Go" using ISO to make Linux installation USB disk under Mac

Source: Internet
Author: User

Http://www.linuxidc.com/Linux/2013-04/82973.htm

In a Mac environment, the Linux ISO image is generated as a Linux installation disk, similar to Linux, but with some of its own tools under the Mac.

The steps are as follows:

1. Under terminal, convert ISO image to DMG format:

$ hdiutil Convert-format Udrw-o ~/linux.dmg/tmp/linux.iso

Reading Master Boot Record (mbr:0) ...
Reading Linux (apple_iso:1) ...
Reading (Windows_ntfs_hidden:2) ...
.......................................................................................................................
Elapsed time: 14.829s
Speed: 145.1M Bytes/second
Save: 0%
Created:/TMP/LINUX.DMG

You can also use Disk utility to convert to a read-write DMG image.

2. Insert the USB drive, then under Terminal, look for the device name of the disk:

$ diskutil List
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0:guid_partition_scheme *121.3 GB Disk0
1:efi 209.7 MB disk0s1
2:APPLE_HFS Macintosh HD 120.5 GB disk0s2
3:apple_boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0:fdisk_partition_scheme *15.8 GB Disk1
1:windows_ntfs wxy-u3 15.8 GB disk1s1

The device name shown above for this disk is:/dev/disk1

You can also select a disk (not a partition) from the disk utility to view its information and get the device name.

3. Unmount the USB drive (it is automatically mounted when plugged in), but do not eject it. Under the terminal:

$ diskutil Umountdisk/dev/disk1
Unmount of all volumes on Disk1 is successful

You can also uninstall by using Disk Utility.

4, mirror the above generated DMG content to the USB disk, under the terminal:

$ sudo dd if=linux.dmg of=/dev/rdisk1 bs=1m
Password:
2151+1 Records in
2151+1 Records out
2256076800 bytes transferred in 90.277905 secs (24990354 bytes/sec)

It is important to note here that the specified type is not written incorrectly, otherwise too late. In addition, the for parameter specifies the device name, can be found on the above/dev/disk1, can also be used/dev/rdisk1, where "R" is said to write faster.

In addition, if the error: "Dd:invalid number ' 1m '", may be used in different versions of DD, can be changed to bs=1m try.

If error: "DD:/dev/diskn:resource Busy", it is possible that the above steps did not complete uninstalling the USB drive.

5, the introduction of USB disk. After copying the above, the system may error, "This computer is not difficult to read the disk can be inserted", regardless of the direct launch can be. Can also be launched under the terminal:

$ diskutil Eject/dev/disk1

or launch it in Disk utility.

Booting with this USB drive allows Linux to be installed.

 exmythchungdemacbook-air:raspberrypi exmyth$ sudo  DD  if  =2016 -09 -23 -raspbian-jessie.img of=/dev /disk2password:  8493056  +0  Records 8493056  +0   records out  4348444672  bytes Transferred in  1495184  bytes/sec) exmythchungdemacbook -air:raspberrypi exmyth$ 

"Go" using ISO to make Linux installation USB disk under Mac

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.