Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] [OT] ...preventing MAC OS from polluting my USBsticks...?

270 views
Skip to first unread message

tu...@posteo.de

unread,
Jan 13, 2019, 8:50:03 AM1/13/19
to
Hi,

it happens that I use my usbsticks with a Mac. As soon I use the stick
again with my trusty Linux...I found a lot of added "hidden" files,
which are shorter and renamed versions of files, which are already
there...and there are everywere.

Is there any hack/trick/<whatever> to prevent MacOS to write to
my usbstick when not instructed to do so?

I am neither the owner nor the system admin of that Mac...I only
have an ordinary user account and I am not allowed to install any
software...

Hopefully there is anything to do against this...

Cheers!
Meino

Andrew Udvare

unread,
Jan 13, 2019, 10:50:04 AM1/13/19
to

> On 2019-01-13, at 08:43, tu...@posteo.de wrote:
>
> Hi,
>
> it happens that I use my usbsticks with a Mac. As soon I use the stick
> again with my trusty Linux...I found a lot of added "hidden" files,
> which are shorter and renamed versions of files, which are already
> there...and there are everywere.
>
> Is there any hack/trick/<whatever> to prevent MacOS to write to
> my usbstick when not instructed to do so?

There are these two defaults settings, and they don't require root to set them:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true
defaults write com.apple.desktopservices DSDontWriteUSBStores true

These are only for stopping Finder from writing .DS_Store files. Anything you delete on macOS will still go in .Trash/ at the root of the drive.

--
Andrew Udvare

tu...@posteo.de

unread,
Jan 13, 2019, 1:40:03 PM1/13/19
to
Hi Andrew,

ok...I only will delete something from my usbstick when I at home
using Linux :)

Only to get sure not to break anything (the MAC is not my own and I am
not at $HOME with Macs)...the
two commands:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true
defaults write com.apple.desktopservices DSDontWriteUSBStores true

need to given as commands at the commandline (the way real UNICES do
it), aren't they?

Cheers!
Meino

Andrew Udvare

unread,
Jan 13, 2019, 3:50:03 PM1/13/19
to


> On 2019-01-13, at 13:38, tu...@posteo.de wrote:
>
> Only to get sure not to break anything (the MAC is not my own and I am
> not at $HOME with Macs)...the
> two commands:
>
> defaults write com.apple.desktopservices DSDontWriteNetworkStores true
> defaults write com.apple.desktopservices DSDontWriteUSBStores true
>
> need to given as commands at the commandline (the way real UNICES do
> it), aren't they?

Yes. Open Terminal and paste these in.

macOS is POSIX certified: https://blog.opengroup.org/2012/07/25/apple-registers-mac-os-x-10-8-mountain-lion-to-the-unix-03-standard/

tu...@posteo.de

unread,
Jan 13, 2019, 11:20:03 PM1/13/19
to
Ok - thanks! :)
0 new messages