本文主要是介绍mac下制作U启动盘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.查询分区
bogon:Downloads lj$ df -hP
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk1 234573824 57011376 177050448 25% /
devfs 371 371 0 100% /dev
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
/dev/disk2s1 3906961400 1423011000 2483950400 37% /Volumes/Elements
/dev/disk3s1 15370904 2136 15368768 1% /Volumes/U
2.把USB unmount
bogon:Downloads lj$ diskutil unmountDisk /dev/disk3s1
3.. 把系统iso复制到u盘
bogon:Downloads lijie$ sudo dd if=ARMMUIx3.iso of=/dev/disk3
1150560+0 records in
1150560+0 records out
589086720 bytes transferred in 417.868333 secs (1409742 bytes/sec)
-----------------------------------------------
快速几步:
1.把iso转成dmg格式
- hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/kubuntu.iso
2. 查找USB有设备盘符
- diskutil list
3. 把USB unmount
- diskutil unmountDisk /dev/diskN
- N是查找到u盘 可能是1,2这样的数字
4. 把dmg复制到u盘
- sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
If you see the error dd: Invalid number `1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M. If you see the error dd: /dev/diskN: Resource busy make sure the disk is not in use. Start the "Disk Utility.app" and unmount (not eject) the drive.
5. 弹出U盘
- diskutil eject /dev/diskN
6. 重启时按住Option键,选择usb启动。
这篇关于mac下制作U启动盘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!