我通常使用以下命令/etc/fstab
将卷安装在 Mac 上的标准位置(这些模仿我们在其他操作系统上对本地卷的设置):
UUID=655DCDDB-15BA-37BF-A7F8-EB3D57C610F5 /local hfs rw
UUID=52B32A78-4AE6-3338-ADF7-B2284A7A89F1 /local/scratch hfs rw
在一台机器上(运行 10.5.7 的 Mac Pro),我为提高性能对暂存分区进行了条带化,但现在它不再在启动时安装。
这只是一个错误/缺失的功能,还是我做错了什么?如果是前者,任何不涉及对设备节点进行硬编码的解决方法都将不胜感激。
diskutil info
如果有帮助的话,输出如下:
Device Identifier: disk4
Device Node: /dev/disk4
Part Of Whole: disk4
Device / Media Name:
Volume Name: scratch
Mount Point: /local/scratch
File System: Journaled HFS+
Journal size 40960 KB at offset 0xe8b000
Owners: Enabled
Partition Type: Apple_HFS
Bootable: Is bootable
Media Type:
Protocol:
Volume UUID: 52B32A78-4AE6-3338-ADF7-B2284A7A89F1
Total Size: 465.0 Gi (499312033792 B) (975218816 512-byte blocks)
Free Space: 455.1 Gi (488632147968 B) (954359664 512-byte blocks)
Read Only: No
Ejectable: No
Whole: Yes
Internal: No
OS 9 Drivers: No
Low Level Format: Not Supported
This disk is a RAID Set. RAID Set Information:
Set Name: scratchy
RAID Set UUID: 1C8FBA63-A780-4576-82D6-1AF4F2CE5266
Level Type: Stripe
Status: Online
Chunk Size: 32768
答案1
刚刚发现一个解决方法:diskutil
将允许您通过其 UUID 安装 RAID 集(但如果您将此 UUID 放入 中/etc/fstab
,则它不起作用)。我在启动时通过将以下内容放入 中来使其工作/Library/LaunchAgents
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>mount-striped-scratch</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/diskutil</string>
<string>mount</string>
<string>1C8FBA63-A780-4576-82D6-1AF4F2CE5266</string>
</array>
</dict>
</plist>