Welcome to the Linux Foundation Forum!

Correct way to close a LUKS partition?

WarrenUKWarrenUK Posts: 66
edited September 2020 in LFS201 Class Forum

Hi.

I was going over LUKS again prior to my exam and I closed it following the course notes. When I went to format the USB stick with fdisk, after pressing 'w' to write the changes it asked me for a password for LUKS but there was no terminal to type it in. I had to CTRL-C to close out of fdisk.

It said something along the lines of 'password entry required for 'Please enter passphrase....'

I am zeroing the USB stick now so hopefully that will work.

Comments

  • luisviveropenaluisviveropena Posts: 746
    edited September 2020

    Hi @WarrenUK ,

    You can use "crypsetup luksClose ", where is the string you used to name the device when opening it with "cryptsetup luksOpen ".

    You can check the man page for crypsesetup(8) for more details.

    Regards,
    Luis.

Sign In or Register to comment.