Welcome to the Linux Foundation Forum!

Correct way to close a LUKS partition?

Options
WarrenUK
WarrenUK Posts: 72

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

  • luisviveropena
    luisviveropena Posts: 1,163
    edited September 2020
    Options

    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.

Categories

Upcoming Training