How can I hide a ramdisk from Finder?

Solution 1:

Try

chflags hidden "/Volumes/RamDisk"

And restart your finder with

killall Finder