Guest ricoc90 Posted May 27, 2017 Share Posted May 27, 2017 (edited) Hi,I am running Windows 10 alongside macOS Sierra. The reserved system partition from windows automatically gets mounted in macOS, which I do not want. Normally I'd put the UUID from that partition into fstab. Now, here's the thing: the partition does not have an UUID assigned to it. $ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *120.0 GB disk0 1: Windows_NTFS Door systeem gereser... 524.3 MB disk0s1 2: Windows_NTFS Windows 119.5 GB disk0s2 /dev/disk1 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *120.0 GB disk1 1: EFI EFI 209.7 MB disk1s1 2: Apple_HFS Macintosh SSD 119.2 GB disk1s2 3: Apple_Boot Recovery HD 650.0 MB disk1s3 /dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *240.1 GB disk2 1: Windows_NTFS External 240.1 GB disk2s1 As you can see, I want disk0s1 to not automatically mount. $ diskutil info disk0s1 Device Identifier: disk0s1 Device Node: /dev/disk0s1 Whole: No Part of Whole: disk0 Volume Name: Door systeem gereserveerd Mounted: Yes Mount Point: /Volumes/Door systeem gereserveerd Partition Type: Windows_NTFS File System Personality: NTFS Type (Bundle): ntfs Name (User Visible): Windows NT File System (NTFS) OS Can Be Installed: No Media Type: Generic Protocol: SATA SMART Status: Verified Disk Size: 524.3 MB (524288000 Bytes) (exactly 1024000 512-Byte-Units) Device Block Size: 512 Bytes Volume Total Space: 524.3 MB (524283904 Bytes) (exactly 1023992 512-Byte-Units) Volume Used Space: 378.5 MB (378499072 Bytes) (exactly 739256 512-Byte-Units) (72.2%) Volume Available Space: 145.8 MB (145784832 Bytes) (exactly 284736 512-Byte-Units) (27.8%) Allocation Block Size: 4096 Bytes Read-Only Media: No Read-Only Volume: Yes Device Location: Internal Removable Media: Fixed And as you can see, no UUID.Is there another way to prevent this partition to auto mount? Is it possible to use the disk identifier instead of the UUID?As for reference, the second partition (disk0s2) does have an UUID: $ diskutil info disk0s2 | grep UUID Volume UUID: 070AD5CC-AFA1-4530-B0E5-E2EBC1BDBF3C EDIT: As a workaround I used Automator to run a shell script that unmounts the partition upon logging in, but I'd much rather have that partition to not get mounted at all.Thanks in advanceRico Edited May 27, 2017 by ricoc90 Link to comment Share on other sites More sharing options...
Maniac10 Posted May 27, 2017 Share Posted May 27, 2017 (edited) You can use the disk's name as LABEL in fstab, just replace the spaces with "\040": LABEL=Door\040systeem\040gereserveerd none ntfs ro,noauto Read fstab's man page for more options. Edited May 27, 2017 by Maniac10 1 Link to comment Share on other sites More sharing options...
Guest ricoc90 Posted May 27, 2017 Share Posted May 27, 2017 That did it, thanks!As shown in the man page. Well, let's just say it's the weather Link to comment Share on other sites More sharing options...
Recommended Posts