Can't read external drives

조회 수: 24 (최근 30일)
Taylor Webb
Taylor Webb 2024년 5월 16일
이동: Walter Roberson 2024년 8월 14일
I receive the following error when trying to read from several external drives.
"ls: /Volumes/Samsung USB/: Operation not permitted"
I receive similar errors when trying to change to a directory on the external drive.
"Unable to change current folder to '/Volumes/Samsung USB'."
The drives are visible in Finder and on Terminal and I can read and write to the drives using other applications. I am running macOS Sonoma version 14.4.1.

채택된 답변

Walter Roberson
Walter Roberson 2024년 5월 16일
System Preferences --> Privacy & Security --> Full Disk Access
Click on the "+" at the bottom middle . Authenticate. Select /Applications and the appropriate version of MATLAB within that, and click the Open button.
That might get you a message about how "MATLAB_R2024a.app" will not have full disk access until it is quit. Click to quit and restart (provided that all of your work is currently saved at the MATLAB level.)
  댓글 수: 2
Taylor Webb
Taylor Webb 2024년 5월 16일
Strangely, I also found that if I dragged and dropped a mat file from finder to the command window it would succesfully load and allow regular command line access afterwards.
Following these steps seemed to make it so I was able to access the disk immediately after connecting it so I won't have to go through the additional step anymore. MATLAB was already listed as enabled in Full Disk Access but it must have been pointing at an older version or something. Re-importing it into Full Disk Access seems to have done the trick.
Torben Ellegaard Lund
Torben Ellegaard Lund 2024년 8월 14일
이동: Walter Roberson 2024년 8월 14일
I had similar problems and tried the drag and drop on command line approach, which resolved my issues.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by