본문 바로가기
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files

Encrypt a volume on a drive from CLI

1. check disk/volume list
diskutil list
01.png

The disk I want to encrypt is the last one, called Untitled 1 which is disk2s2.

2. convert the disk to the CoreStorage format with the following command:
sudo diskutil corestorage convert disk2s2
02.png

Note: The important information above is the LV UUID, or logical volume universally unique identifier.
Core Storage LV UUID: 768DEBA7-030C-4B1A-95F7-4008F3069BF6

3. Encrypt the disk
sudo diskutil corestorage encryptvolume 768DEBA7-030C-4B1A-95F7-4008F3069BF6 -passphrase my_secret_password
03.png

4. umount and mount then enter your pass phrase to unlock the volume
04.png


####################
# unlock from CLI
####################

1. insert USB into Mac
: Do not enter your password to decrypt in pop-up window

Note: diskutil list
05.png

Note: diskutil corestorage list
06.png

2. unlock volume

diskutil coreStorage unlockVolume 768DEBA7-030C-4B1A-95F7-4008F3069BF6


3. now you can read/write the volume


####################################

# decrypt the disk

# (need to unlock first if locked)

####################################

diskutil coreStorage unlockVolume 768DEBA7-030C-4B1A-95F7-4008F3069BF6
diskutil cs decryptvolume 768DEBA7-030C-4B1A-95F7-4008F3069BF6 -passphrase my_secret_password


############################
# change volume passphrase
############################

diskutil cs changeVolumePassphrase 768DEBA7-030C-4B1A-95F7-4008F3069BF6 -oldpassphrase my_secret_password -newpassphrase my_new_passwd


Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5