写入 U 盘

显示都有什么设备

diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         623.1 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                377.1 GB   disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +623.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            15.2 GB    disk1s1
   2:              APFS Snapshot com.apple.os.update-... 15.2 GB    disk1s1s1
   3:                APFS Volume Macintosh HD - Data     405.7 GB   disk1s2
   4:                APFS Volume Preboot                 753.2 MB   disk1s3
   5:                APFS Volume Recovery                1.1 GB     disk1s4
   6:                APFS Volume VM                      2.1 GB     disk1s5

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *30.8 GB    disk2
   1:             Windows_FAT_32 randoruf_disk           30.8 GB    disk2s1

可以看到是 /dev/disk2

在写入之前需要 unmount ,否则会说 (别问我怎么知道的)

dd: /dev/disk2: Resource busy

在 unmount 之后写入到 U 盘

diskutil unmountDisk /dev/disk2

(因为有逻辑分区,所以需要 diskutil unmountDisk)

提示 : Unmount of all volumes on disk2 was successful

现在可以开始写入了

sudo dd bs=4M if=ubuntu-18.04.6-desktop-amd64.iso of=/dev/disk2

安装 Ubuntu

点击下就可以了,很简单。

但要记得把显卡换到 Integrated Graphic Card

安装后

注意到 Linux 是不会自动切换显卡的 (Windows 和 MacOS 都可以自动根据需求开启独显)

How To Switch Between Intel and Nvidia Graphics Card on Ubuntu (linuxbabe.com)

首先看看适合的驱动

sudo ubuntu-drivers devices

How To Switch Between Intel and Nvidia Graphics Card on Ubuntu

既然系统推荐就安装吧。

sudo apt-get install nvidia-352