mac 刻录Ubuntu系统盘

  • 内容
  • 评论
  • 相关

1,先将iso镜像转为dmg格式

hdiutil convert -format UDRW -o ubuntu-16.04-desktop-amd64.dmg ubuntu-16.04-desktop-amd64.iso
voidcat:catHHD zhigangyang$ hdiutil convert -format UDRW -o ubuntu-16.04-desktop-amd64.dmg ubuntu-16.04-desktop-amd64.iso 
正在读取Driver Descriptor Map(DDM:0)…
正在读取Ubuntu 16.04 LTS amd64          (Apple_ISO:1)…
正在读取Apple(Apple_partition_map:2)…
正在读取Ubuntu 16.04 LTS amd64          (Apple_ISO:3)…
..............................................................................
正在读取EFI(Apple_HFS:4)…
..............................................................................
正在读取Ubuntu 16.04 LTS amd64          (Apple_ISO:5)…
..............................................................................
已耗时: 1m  1.445s
速度:23.1M 字节/秒
节省:0.0%
created: /Volumes/mac/catHHD/ubuntu-16.04-desktop-amd64.dmg

2,看下U盘的下载节点

 diskutil list
 #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *120.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage ssd                     119.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:          Apple_CoreStorage mac                     499.2 GB   disk1s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3

/dev/disk2 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            ssd                    +118.8 GB   disk2
                                 Logical Volume on disk0s2
                                 CAB976A0-78AD-45CE-99BF-C471A6FDB320
                                 Unlocked Encrypted

/dev/disk3 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            mac                    +498.9 GB   disk3
                                 Logical Volume on disk1s2
                                 41D876ED-E55E-41C8-9DB0-BCA575DA35EB
                                 Unencrypted

/dev/disk4 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *30.8 GB    disk4
   1:             Windows_FAT_32 NO NAME                 30.8 GB    disk4s1

我这里是/dev/disk4 (external, physical):

卸载掉U盘

diskutil umountDisk /dev/disk4
voidcat:catHHD zhigangyang$ diskutil umountDisk /dev/disk4
Unmount of all volumes on disk4 was successful

3,使用dd命令写入

sudo dd if=ubuntu-16.04-desktop-amd64.dmg of=/dev/disk4亲测ok

评论

0条评论

发表评论

电子邮件地址不会被公开。