07-24-2021, 09:23 PM
(07-24-2021, 07:26 PM)lascala_2a3 Wrote: I plugged the USB into the Mac and I can access it, but I don't seem to be able to move through directory levels using terminal commands. This is a SanDisk Extreme SSD 500MB if it matters. Instead of the expected permissions I see "You have custom permissions." It is formatted as ExFAT with partition type Master Boot Record. Since I'm this deep already, I could reformat the drive for optimal compatibility. Is this the best format and partitioning for the RPI4/Moode 7 and Mac OS, or would something else work better?
I use FAT32 (MS-DOS FAT or VFAT) for drives that I swap between Pi and Mac.
Below are bunch of commands to clean out the annoying OS X dot files and directories from drives plugged into a Pi.
First you need to change to the root of the drive that you want to clean for example.
Code:
cd /media/VFAT128
Then paste the commands into the command prompt.
Code:
sudo find . -name "._*" -exec rm -rf {} \;
sudo find . -name ".Trashes" -exec rm -rf {} \;
sudo find . -name "._.Trashes" -exec rm -rf {} \;
sudo find . -name ".Spotlight*" -exec rm -rf {} \;
sudo find . -name ".DS_Store" -exec rm -rf {} \;
sudo find . -name "._.DS_Store" -exec rm -rf {} \;
sudo find . -name ".fseventsd*" -exec rm -rf {} \;
sudo find . -name "._.com.apple.timemachine.donotpresent" -exec rm -rf {} \;
sudo find . -name ".com.apple.timemachine.donotpresent" -exec rm -rf {} \;
sudo find . -name ".TemporaryItems" -exec rm -rf {} \;
sudo find . -name "._.TemporaryItems" -exec rm -rf {} \;
sudo find . -name "._moodecfg.txt" -exec rm -rf {} \;
sudo find . -name "__MACOSX" -exec rm -rf {} \;