Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

guypliskin

macrumors newbie
Original poster
Feb 26, 2019
1
0
hi guys
i am tring to acomplish a script to find if a ceratin share is maounted as SMB, and if it is, then unmount it an re mount it as AFP.( allso, check this every 10 min).
any ideas?
thanks..
 
You can check which SMB shares are mounted in terminal with the command:
smbutil statshares -a

Process the output (with grep?)
unmount the share with the umount or diskutil unmount command followed by the mountpoint path
then mount it again with the command mount_afp
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.