Mac terminal "no such file or directory" error

Hello


Reaching Mac terminal from within Recovery Mode, I type cd /Volumes/Macintosh SSD/ ,trying to switch to my main drive (yes, main drive is not called Macintosh HD). However, in return I get "no such file or directory".

I also tried other combinations (including Macintosh HD) without any luck.


Basically, I want to check if a folder named "rm -rf com.apple.TimeMachine.localsnapshots" exists, and possibly delete it.


Reason: I want to upgrade OS, however, I am not able to select the main drive, Macintosh SSD, as installation destination, because I get the prompt "volume cannot be used because it is a backup disk" when reaching this step in the process.


The machine is a 2011 Macbook Pro with High Sierra installed.


MacBook Pro 15″, macOS 10.13

Posted on Aug 28, 2023 1:29 PM

Reply

Similar questions

4 replies

Aug 28, 2023 2:24 PM in response to Niel

I think I need some more help.. so what do you think is the best way to locate and delete those old TimeMachine snapshots in general? (If they exist, which they must according to the prompt during installation) could you provide some code? yes I know rm -rf is for deleting. Sorry for my ignorance, I never use terminal

Aug 28, 2023 8:10 PM in response to mariuste

mariuste wrote:

Basically, I want to check if a folder named "rm -rf com.apple.TimeMachine.localsnapshots" exists, and possibly delete it.


Possibly delete it?


rm -rf   <whatever>


literally means "delete everything from <whatever> on down, recursively, without prompting."


I hope you are being very careful about what commands you enter – especially if you are poking around inside system directories, and especially if you are thinking about running a command as superuser, using sudo. Give a "rm -rf" in a bad place, or in a bad way, and you can get into real trouble. E.g., you think you're getting rid of all the files beginning with "trash", but you type an extra space in the command.


rm -rf trash *


This means "delete the file named 'trash', then recursively delete EVERYTHING."


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac terminal "no such file or directory" error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.