FANDOM


I use this script to create a 8GB Ram Disk every time my computer boots (user login).

(Start Scripteditor and save it as a Program, Go to user Startup Items add the Program. Although it takes up to 2 Seconds until the RAID is created).

Enjoy

Here is the script ❤

do shell script "

if ! test -e /Volumes/'Eros SpeedDisk' ; then

diskutil erasevolume HFS+ r1 `

hdiutil attach -nomount ram://$((2*1024*2048))`

diskutil erasevolume HFS+ r2 `

hdiutil attach -nomount ram://$((2*1024*2048))`

diskutil erasevolume HFS+ r3 `

hdiutil attach -nomount ram://$((2*1024*2048))`

diskutil erasevolume HFS+ r4 `

hdiutil attach -nomount ram://$((2*1024*2048))`

diskutil createRAID Stripe 'Eros SpeedDisk' HFS+ /Volumes/r1 /Volumes/r2 /Volumes/r3 /Volumes/r4

fi

mkdir -p /Volumes/'Eros SpeedDisk'/'Applications Caches' /Volumes/'Eros SpeedDisk'/Download /Volumes/'Eros SpeedDisk'/Movies /Volumes/'Eros SpeedDisk'/Videos /Volumes/'Eros SpeedDisk'/Pictures /Volumes/'Eros SpeedDisk'/Music

rm -rf /Users/鱫鰰/Applications ~/Library/Caches

ln -s /Volumes/'Eros SpeedDisk'/'Applications Caches' ~/Library/Caches

ln -s /Volumes/'Eros SpeedDisk'/'Applications Caches' /Users/鱫鰰/Applications"

螢幕快照 2016-05-22 03.10.47.jpg
螢幕快照 2016-05-22 03.11.32.jpg

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

查看其他FANDOM

随机维基