標籤:sse 共用 csr 工具 hint hang for sudo soft
前言
我有一台Mac,裝有OS X和Windows兩系統,因Windows和OS X都能讀寫exFAT分區,
故若在Machintosh HD和Windows HD之間開闢一個exFAT分區,可以作為共用檔案區。
我在OS X中用磁碟工具對Machintosh HD進行分區,在Machintosh HD和Windows HD之間開闢一個exFAT分區。
重啟啟動時,我按住了option,之後出現的啟動選項中沒有Windows。這因為剛才給磁碟分了區才導致的。
解決
重啟MAC ,按住COMMAND+R進入復原模式,開啟Terminal
csrutil disable #關閉rootless
修改完,重啟MAC,開啟終端
sudo fdisk -e /dev/disk0
yanghaodeMacBook-Pro:~ yanghao$ sudo fdisk -e /dev/disk0Password:fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directoryEnter ‘help‘ for informationfdisk: 1> pDisk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]Offset: 0 Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size]------------------------------------------------------------------------ 1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID> 2: AC 1023 254 63 - 1023 254 63 [ 409640 - 183869624] <Unknown ID> 3: AB 1023 254 63 - 1023 254 63 [ 184279264 - 1269536] Darwin Boot *4: 07 1023 254 63 - 1023 254 63 [ 185548800 - 304685056] HPFS/QNX/AUXfdisk: 1>
修改分區表
fdisk: 1> pDisk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]Offset: 0 Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size]------------------------------------------------------------------------ 1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID> 2: AC 1023 254 63 - 1023 254 63 [ 409640 - 183869624] <Unknown ID> 3: AB 1023 254 63 - 1023 254 63 [ 184279264 - 1269536] Darwin Boot *4: 07 1023 254 63 - 1023 254 63 [ 185548800 - 304685056] HPFS/QNX/AUXfdisk: 1> setpid 4 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size]------------------------------------------------------------------------*4: 07 1023 254 63 - 1023 254 63 [ 185548800 - 304685056] HPFS/QNX/AUXPartition id (‘0‘ to disable) [0 - FF]: [7] (? for help) 07fdisk: 1> flag 4Partition 4 marked active.fdisk:*1> pDisk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]Offset: 0 Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size]------------------------------------------------------------------------ 1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID> 2: AC 1023 254 63 - 1023 254 63 [ 409640 - 183869624] <Unknown ID> 3: AB 1023 254 63 - 1023 254 63 [ 184279264 - 1269536] Darwin Boot *4: 07 1023 254 63 - 1023 254 63 [ 185548800 - 304685056] HPFS/QNX/AUXfdisk:*1> writeDevice could not be accessed exclusively.A reboot will be needed for changes to take effect. OK? [n] yWriting MBR at offset 0.
重啟電腦按OPTION
Mac OS X磁碟重新分區後 BootCamp Windows啟動項丟失