From 8bbdcbb2d0711134a68bd80ae541edbfb4f472ad Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Fri, 21 Feb 2025 19:19:17 +0000 Subject: Changed all files to .html and new post! --- public/articals/linux/media/03EncryptingUSB | 94 ----------------------------- 1 file changed, 94 deletions(-) delete mode 100644 public/articals/linux/media/03EncryptingUSB (limited to 'public/articals/linux/media/03EncryptingUSB') diff --git a/public/articals/linux/media/03EncryptingUSB b/public/articals/linux/media/03EncryptingUSB deleted file mode 100644 index aace93b..0000000 --- a/public/articals/linux/media/03EncryptingUSB +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - Encrypting USB with luks - - - - -
- -
-
-

Encrypting USB with luks

-

Date: 17-02-2024

-
-

What you will need 📋

-
- -

1) Install cryptsetup -

-

sudo pacman -S cryptsetup

-
- -
- -

2) Backup any information on the USB stick because this process involves formatting the USB drive.

- -
- -

3) Formatting USB.

-
- sudo fdisk /dev/sdX -
-

The X being your USB drive.

-

Press the following keys:
o
n
Press enter for the rest
w

- -
- -

4) Encryption time! -

- sudo cryptsetup luksFormat /dev/sdX1 -
-

Make your password secure please! - -


- -

5) Decrypt USB

-
- sudo cryptsetup luksOpen /dev/sdX1 USB -
-

Note: The first password is your root user password, not the encryption password. I have sadly made this mistake in the past.

- -
- -

6) Format the Encrypted Partition

-
- sudo mkfs.ext4 /dev/mapper/USB -
-

Depending on the size of the USB, this may take some time. For me, it took 3 minutes.

- -
- -

Step 7: Mount the Encrypted Partition

-
- sudo mkdir -p /mnt/USB -
- sudo mount /dev/mapper/USB /mnt/USB -
- -
-

Finished ✅

-

Your password better be good dude. Make sure to memorize it!

-
- -
-
  Back 🚪
-    
- - - -- cgit v1.2.3