mac开机禁用部分磁盘挂载

2019-03-08

黑苹果双系统电脑 Mac 系统下不需要 win 的磁盘

使用改写 /etc/fstab 的方法 禁止挂载不需要的磁盘

获取需要禁止挂载的磁盘信息 UUID

打开/Applications/Utilities/Disk Utility.app 磁盘软件
先获取磁盘的分区名字

我的是
win10
win10data

命令行下运行命令
diskutil info "win10
得到

Device Identifier: disk1s3

Device Node: /dev/disk1s3

Whole: No

Part of Whole: disk1



Volume Name: win10

Mounted: Yes

Mount Point: /Volumes/win10



Partition Type: Microsoft Basic Data

File System Personality: NTFS

Type (Bundle): ntfs

Name (User Visible): Windows NT File System (NTFS)



OS Can Be Installed: No

Media Type: Generic

Protocol: PCI-Express

SMART Status: Not Supported

Disk / Partition UUID: 42D7CC71-C9AC-4190-A68A-76422D6B1537

Partition Offset: 240123904 Bytes (468992 512-Byte-Device-Blocks)



Disk Size: 48.3 GB (48319430656 Bytes) (exactly 94373888 512-Byte-Units)

Device Block Size: 512 Bytes



Volume Total Space: 48.3 GB (48319426560 Bytes) (exactly 94373880 512-Byte-Units)

Volume Used Space: 26.9 GB (26879488000 Bytes) (exactly 52499000 512-Byte-Units) (55.6%)

Volume Free Space: 21.4 GB (21439938560 Bytes) (exactly 41874880 512-Byte-Units) (44.4%)

Allocation Block Size: 4096 Bytes



Read-Only Media: No

Read-Only Volume: Yes



Device Location: Internal

Removable Media: Fixed



Solid State: Yes

Hardware AES Support: No

UUID如下

Disk / Partition UUID: 42D7CC71-C9AC-4190-A68A-76422D6B1537

改写 fstab 文件

UUID=42D7CC71-C9AC-4190-A68A-76422D6B1537 none ntfs rw,noauto

LABEL=win10 none ntfs rw,noauto

然后开机系统就禁止挂载了