Need a folder deleted from the Terminal

UrsaMinor

macrumors newbie
Original poster
Mar 2, 2018
26
4
Hello.

Long story short, Sierra won't boot from the M.2 drive, and Sierra won't re-install because the ssd is too full (need another 1/2 GB for the install). First Aid shows a code 8 that a re-install should fix. All personal folders are needed, except for the movies folder that contains a few movies. I need to remove the Movies folder to re-install Sierra.

I'm using the following command to delete the movies folder:

sudo rm -r ~/Movies

That command results in "command not found". I've also tried:

rm -r ~/Movies

That command results in "file or directory not found".

What am I doing wrong?

Thank you for reading this and any assistance you can provide:)
 

UrsaMinor

macrumors newbie
Original poster
Mar 2, 2018
26
4
I figured out an alternative way to do it:

- Took out the spin drive from my Macbook Pro that runs Sierra.

- Hooked it up to a USB port on the Macbook Air, then booted to it. I then copied the needed data, as this setup would not allow me to delete anything on the M.2.

- I then erased the Air's M.2 drive and installed Sierra.

All good now.
 
Last edited:

Mac03ForLife

macrumors regular
Sep 19, 2017
152
25
Washington, DC
You could have also typed

cd /users/[your user]/Movies
then

rm -rf *

using sudo with each line of course
unless you do sudo su - before you run anything else

you could also use single user mode then mount the fs as rwr (mode 7) then run the same commands (without sudo)
 

UrsaMinor

macrumors newbie
Original poster
Mar 2, 2018
26
4
Thanks for that Mac03. I'll bookmark this thread for future reference.

In hindsight however, I think I'll just stick with the method as described in my previous post. It seems the safest way to go about such an issue.