Clear Filters
Clear Filters

Error using mkdir but not using !mkdir

13 views (last 30 days)
Rick
Rick on 27 Jul 2020
Commented: sshr on 9 Feb 2024
I'm running Matlab 2019b on a MacOS Catalina (10.15.5) and I am connected to a University Network drive which is mapped using Samba ('smb://') to
/Volumes/research-data/PRJ-dasa
I'm using a Matlab application (Brainstorm) which must create new directories within this project dir. However, when it tries to do so it results in the following error
>> cd /Volumes/research-data/PRJ-dasa
>> mkdir somepath
Error using mkdir
Read-only file system
However when I try to create the directory using either of the two following lines, the directories are created just fine.
>> !mkdir somepath
>> system('mkdir someotherpath')
So, my question is why does Matlab think the drive is read-only, when the system can create new directories without issue?
Your help is very much appreciated.
Rick
  2 Comments
Zoe Hughes
Zoe Hughes on 10 Aug 2022
Edited: Zoe Hughes on 10 Aug 2022
I have the exact same question. I am running 2021b on Monterey 12.4 but have the same issue with the smb server. Any insights, anyone?
sshr
sshr on 9 Feb 2024
Similar issue on mac running R2023b on Sonoma 14.2.1 connected to network drive mapped using smb

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!