Go to the Terminal and issue the command:
sudo setfile -a V /Volumes/paritionName
where “partitionName” is the name of the partition or drive that you want to hide. This hides the partition from being seen in the Finder but you can still access it from the terminal such as with scripts.