Removing Invisible Mac Files on FAT32 USB Stick For TV

Macintosh software/hardware discussion and troubleshooting

Moderator: James Steele

Post Reply
User avatar
monkey man
Posts: 13932
Joined: Fri Apr 22, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Melbourne, Australia

Removing Invisible Mac Files on FAT32 USB Stick For TV

Post by monkey man »

I've "researched" this but it always ends up with Terminal madness. I've no clue how to use Terminal, and every "recommended" procedure I've tried has failed or I've run into problems entering the commands. I don't feel comfortable with the Terminal approach; who knows what damage I might have already done?

It's the .DS_Store (I think that's right) and .Trashes folders / files, I think. The TV sees multiple folders, and "replicates" all my (K-Pop EDM) videos with the "._" prefix. This means that to watch my beloved happy clips I have to scroll through all the "phantom" files first to get to them. It's a right PITB.

There's no doubt many of you would know about these old-fangled files; even I'm aware that Spotlight and the Finder create them. The problem is in removing them.

Help, please. :cry:

Mac 2012 12C Cheese Grater, OSX 10.13.6
MOTU DP8.07, MachFive 3.2.1, MIDI Express XT, 24I/O
Novation, Yamaha & Roland Synths, Guitar & Bass, Kemper Rack

Pretend I've placed your favourite quote here
User avatar
cleamon
Posts: 209
Joined: Wed Jan 07, 2015 2:19 pm
Primary DAW OS: MacOS

Re: Removing Invisible Mac Files on FAT32 USB Stick For TV

Post by cleamon »

monkey man wrote:I've "researched" this but it always ends up with Terminal madness. I've no clue how to use Terminal, and every "recommended" procedure I've tried has failed or I've run into problems entering the commands. I don't feel comfortable with the Terminal approach; who knows what damage I might have already done?

It's the .DS_Store (I think that's right) and .Trashes folders / files, I think. The TV sees multiple folders, and "replicates" all my (K-Pop EDM) videos with the "._" prefix. This means that to watch my beloved happy clips I have to scroll through all the "phantom" files first to get to them. It's a right PITB.

There's no doubt many of you would know about these old-fangled files; even I'm aware that Spotlight and the Finder create them. The problem is in removing them.

Help, please. :cry:
Take a look at Path Finder - It has the option to view hidden files. http://www.cocoatech.com/pathfinder/
Plus if you use it instead of Finder, you can (virtually) eliminate the creation of the DS_Store files.
----------------------------------------------
Chuck
iMac (Retina 4K, 21.5-inch, 2017)|| 16GB Ram || OS/X 10.14.6 || Motu 828MkII || Steinberg UR242 || DP8.07
Macbook Pro (Retina, 13-inch), 2.7 GHz i5, 8GB Ram
User avatar
monkey man
Posts: 13932
Joined: Fri Apr 22, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Melbourne, Australia

Re: Removing Invisible Mac Files on FAT32 USB Stick For TV

Post by monkey man »

Thanks cleamon, I appreciate that.

I use MainMenu to show invisible files, so no problem there. The issue is in getting rid of them, and it's not just the DS_Store files; it's that damned .Trashes one too...

Mac 2012 12C Cheese Grater, OSX 10.13.6
MOTU DP8.07, MachFive 3.2.1, MIDI Express XT, 24I/O
Novation, Yamaha & Roland Synths, Guitar & Bass, Kemper Rack

Pretend I've placed your favourite quote here
User avatar
cleamon
Posts: 209
Joined: Wed Jan 07, 2015 2:19 pm
Primary DAW OS: MacOS

Re: Removing Invisible Mac Files on FAT32 USB Stick For TV

Post by cleamon »

monkey man wrote:Thanks cleamon, I appreciate that.

I use MainMenu to show invisible files, so no problem there. The issue is in getting rid of them, and it's not just the DS_Store files; it's that damned .Trashes one too...
Well, I'm afraid to say, that terminal is the best solution. Anything else is just "hunt and peck".
This is what I use:

Code: Select all

find ./ -depth -name ".DS_Store" -delete
This finds files named .DS_Store, starting at the current folder ( ./ ) and below, and deletes them.

You could create a script (plain text file) with this command, put it on your desktop, double click it to run it. If you want it to only work on your USB stick, change the ./ to the path name of the stick. For example (assuming your stick is named "MyClips"):

Code: Select all

find /Volumes/MyClips/ -depth -name ".DS_Store" -delete
Of course, cleaning the folder ON THE MAC, before copying to the stick would eliminate them as well.

Chuck
----------------------------------------------
Chuck
iMac (Retina 4K, 21.5-inch, 2017)|| 16GB Ram || OS/X 10.14.6 || Motu 828MkII || Steinberg UR242 || DP8.07
Macbook Pro (Retina, 13-inch), 2.7 GHz i5, 8GB Ram
User avatar
mikehalloran
Posts: 15213
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Removing Invisible Mac Files on FAT32 USB Stick For TV

Post by mikehalloran »

With Mavericks, a lot of old Terminal commands no longer work. The syntax is much tighter now--capitalization, spacing and spelling must be exact.

The good news is that any Terminal Command that works in OS 10.9 or 10.10 is backwards compatible as long as the function is.

Terminal supports copy and paste. I keep a text document called OSX Terminal Commands and an alias to it on my desktop. I call it up whenever I need to use Terminal. It's simple to copy and paste the commands into Terminal knowing that they will always just work. Just make sure that the ones you find online wok in Mavericks first.
DP 11.31; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sonoma 14.4.1, USB4 8TB external, M-Audio AIR 192|14, Mackie ProFxv3 6/10/12; 2012 MBPs Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5.2, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 Pro, Toast 20 Pro
User avatar
monkey man
Posts: 13932
Joined: Fri Apr 22, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Melbourne, Australia

Re: Removing Invisible Mac Files on FAT32 USB Stick For TV

Post by monkey man »

Thank you, Chuck and Mike.

I found the DS_Store files easy to delete with the Finder; I suspect they're sent to the .Trashes folder, but either way, I can empty the trash. It's the .Trashes one that I think I'll have to use Terminal for. Sorry if I've named that incorrectly; I don't have access to the thumb drive right now and have gone by memory (my memory's gone by LOL).

I tried numerous "strings" from the 'net, not dissimilar to the one you posted, Chuck, but my lack of knowledge got in the way. My substitutions where you seem to indicate that they're required must've been flawed.

I also have text files for the following, and they've always worked no problem: Dashboard Disable/Enable, QuickLook Plug-Ins Update, Screenshots-Set default file format, User Lib ƒ - Keep Visible. The trouble is, none of the the thumb drive routines I've tried have done anything. I'm literally a complete ignoramus when it comes to bash or whatever it is. Stash, no problem, but bash... it's a foreign concept. :?

Mac 2012 12C Cheese Grater, OSX 10.13.6
MOTU DP8.07, MachFive 3.2.1, MIDI Express XT, 24I/O
Novation, Yamaha & Roland Synths, Guitar & Bass, Kemper Rack

Pretend I've placed your favourite quote here
Post Reply