Ubuntu Linux, Unable to set bitcoin datadir to a folder in different drive

I am trying to run a bitcoin node. I want to set the datadir to a folder located on drive other than on which I have installed ubuntu.
Folder I want to set as datadir:


with permissions

drwxrwxrwx 1 spider spider 448 اپریل   2 17:25 bitcoin

But when i try to run bitcoin-core i get this error

$  bitcoin bitcoin-core.daemon --datadir=/media/spider/Utils/bitcoin   
Error: Failed saving settings file:
- Error: Unable to open settings file /media/spider/Utils/bitcoin/settings.json.tmp for writing