macos

這是本文件的舊版!


Macos

csrutil status
pmset -b standbydelaylow 900
pmset -b standbydelayhigh 10800
pmset -b tcpkeepalive 0
pmset -g
diskutil list
diskutil unmount
ioreg -p IOUSB -l -b | grep -E "@|PortNum|USB Serial Number"
scutil --dns
route -n get default www.google.com
route -n get default
netstat -rn

Holding Option key on boot to switch boot drive. Holding Ctrl key and the icon will change, this set the default boot drive.

diskutil list
sudo diskutil mount disk0s1 # mount EFI partition
sudo bless --folder /Volumes/EFI/EFI/Boot --label Windows
csrutil disable # in recovery mode

## For macOS icon
### find the preboot partition
sudo diskutil apfs list
### mount the preboot partition
sudo diskutil mountDisk /dev/disk1s2
### copy icon
sudo cp /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Internal.icns /Volumes/Preboot/.VolumeIcon.icns

## For Windows icon
## mount the EFI parititon
sudo diskutil mountDisk /dev/disk0s1
### copy icon
sudo cp /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Internal.icns /Volumes/EFI/.VolumeIcon.icns

csrutil enable # in recovery mode

https://apple.stackexchange.com/questions/388246/efi-partition-change-name-and-logo/388287

Download bootcamp driver from

  1. Apple's bootcamp utility that will save bootcamp driver to USB drive

sudo diskutil mount disk0s1

  • macos.1677574381.txt.gz
  • 上一次變更: 2023/02/28 16:53
  • jz