mac pro 封装u盘制作linux系统启动盘
安装操作系统其实很简单,博主windows下随意,deepin下也刻录过,linux只知道dd if 可以,但是没有操作过,如今用了mac 很多东西都要慢慢的熟悉,今天打算刻录个u盘,给家里的台式机装centos操作系统,玩玩kvm及一些知道但没操作过的集群,刻录时发现还是蛮有乐趣的,下面给大家分享下。
1、插入U盘后默认的会弹出对话框,我们将其格式化就行。
2、列出所有的驱动器:
MacBook-Pro:~ mew$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh HD 120.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +120.1 GB disk1
Logical Volume on disk0s2
E16F3C8B-2351-4F73-AD20-88A4479124E8
Unlocked Encrypted
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *7.9 GB disk2
1: 0xEF 6.4 MB disk2s2
mewdeMacBook-Pro:~ mew$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 112Gi 53Gi 59Gi 48% 13837631 15485631 47% /
devfs 183Ki 183Ki 0Bi 100% 634 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
3、卸载指定的驱动:
mewdeMacBook-Pro:~ mew$ diskutil umount /dev/disk2s2
Volume OSXDaily on diskss2 unmounted
卸载完成你会发现,在Finder里这块u盘是不可访问的,但是但它仍将通过从命令行diskutil可以看到他。
4、刻录u盘,制作操作系统:
mewdeMacBook-Pro:~ mew$ sudo dd if=~/Downloads/CentOS-7-x86_64-DVD-1511.iso ofdev/disk2s2 bs=1m
dd: /dev/disk2s2: end of device
7+0 records in
6+1 records out
6422528 bytes transferred in 4.558927 secs (1408781 bytes/sec)
参考博客:http://www.tuicool.com/articles/jQbmie
本文出自 “LINUX Super梦” 博客,请务必保留此出处http://215687833.blog.51cto.com/6724358/1770595
原文地址:http://215687833.blog.51cto.com/6724358/1770595