turn off FileVault with Terminal

johnbclark

macrumors newbie
Original poster
Mar 19, 2010
3
0
How to turn off FileVault with Terminal.
sudo fdesetup disable

returns a message "command not found"

any suggestions would be appreciated...
MacBook Pro 2012
Mac OS High Sierra installed, unfortunately FileVault was turned on during the install
The machine has been running for 3 days..
760 GB HD with 700GB free space...

have tried:
disconnecting Internet
reboot in Recovery
ran Disk First Aid on HD
 

DeltaMac

macrumors G4
Jul 30, 2003
10,343
2,739
Delaware
60GB used? Can you just give up and erase the drive, then reinstall macOS?
I guess my real question is: do you have a backup of your drive, so you could simply start over with a fresh install, then restore your files and apps?
 

Shadow Jolteon

macrumors regular
Feb 1, 2018
165
97
That is strange that it isn't finding fdesetup. You may want to try running this instead:
Code:
sudo /usr/bin/fdesetup disable
 

treekram

macrumors 68000
Nov 9, 2015
1,849
405
Honolulu HI
If you're doing this from the Terminal while running Recovery, you don't need "sudo". I think the same would apply from single-user mode.

If you're not in Recovery or single-user mode, in Terminal, you can type "which fdesetup" and it should tell you the path of the command. If some how "/usr/bin" isn't in the path you can try "sudo /usr/bin/fdesetup" (or whatever the full path is).
 

DeltaMac

macrumors G4
Jul 30, 2003
10,343
2,739
Delaware
I am curious if johnbclark is actually booting to Internet Recovery. Some terminal commands are not available when booted to internet recovery.

@johnbclark: Internet Recovery boots up showing a spinning globe, and not the usual Apple icon.
 
  • Like
Reactions: Shadow Jolteon

BLUEDOG314

macrumors 6502
Dec 12, 2015
352
87
Never heard of the method that was suggested above, but I have my own way that I've used before. Given model and size of drive I am going to assume this is a mechanical drive and not an SSD. Also assuming the drive is fully encrypted and not still in the process, go to recovery, then terminal and first do 'diskutil cs list' and get the UUID for the encrypted Macintosh HD volume and copy it. Then do 'diskutil cs unlockvolume PasteUUID' hit enter and put in the password. Then do 'diskutil cs decryptvolume PasteUUID' hit enter and put in password.

I of course do agree with the idea of just backing up the data, nuking the drive and restoring backup as a better and faster solution.
 

Rokwell84

macrumors newbie
Dec 11, 2019
1
0
I was in the middle of troubleshooting another issue (my MacBook Pro 2016 crashes after running a couple minutes, then gives me the flashing ? folder icon) and got too brave for my own good. I was decrypting (via System Preferences), got impatient, and put in the following:

sudo fdesetup disable

Success! Except, now I'm in this weird limbo. According to the Sys Pref window, FileVault is on, but the option to turn it off is disabled. I can't turn it off again in terminal. When I try to reinstall MacOS, it says it can't install to that disk since files are decrypting. Any ideas? Someone advised me to look for terminal commands to kill filevault and repair it, but I haven't found those.
 

Saaadddddd

macrumors newbie
Apr 12, 2020
2
0
Try running the following and see what it shows:
Code:
sudo /usr/bin/fdesetup status -extended -verbose
I typed this code and the terminal says


fdesetup: device path = /
FileVault is On.
Volume is APFS. (FileVault Enabled)
Encryption in progress: Percent completed = 13. Estimated completion in (Calculating)


Then what should I do?
 
Last edited:

Saaadddddd

macrumors newbie
Apr 12, 2020
2
0
What was the result after the wait time?
Encryption had successfully completed, so now I‘m waiting for decryption to complete. I found your reply just today but I really appreciate your kindness :)~ Have a good day!
 
Last edited:

Rod_Z

macrumors newbie
Apr 27, 2020
1
0
Hi, I have the same issue, I cannot turn off File vault as it is greyed out. I tried starting in recovery and all that. When I try with terminal I get this message:
Can anyone please help?

fdesetup: device path = /


FileVault is On.


Volume is APFS. (FileVault Enabled)


Rods-MBP:~ rodzahra$
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.