We use cookies to ensure you get the best experience on our website.
Szyfrowanie Dysku
root@chris:~# cryptsetup -q -y -v luksFormat /dev/sda
Hasło dla /dev/sda:
Weryfikacja hasła:
Existing 'crypto_LUKS' superblock signature on device /dev/sda will be wiped.
Existing 'crypto_LUKS' superblock signature on device /dev/sda will be wiped.
Klucz numer 0 utworzony.
Polecenie się powiodło.
root@chris:~#
Sprawdzanie czy Dysk jest zaszyfrowany
root@chris:~# cryptsetup luksDump /dev/sda
LUKS header information
Version: 2
Epoch: 3
Metadata area: 16384 [bytes]
Keyslots area: 16744448 [bytes]
UUID: ca93f2a4-fdef-4775-b682-29ab0edb16e8
Label: (no label)
Subsystem: (no subsystem)
Flags: (no flags)
Data segments:
0: crypt
offset: 16777216 [bytes]
length: (whole device)
cipher: aes-xts-plain64
sector: 512 [bytes]
Keyslots:
0: luks2
Key: XXXXXXXX bits
Priority: normal
Cipher: XXXXXXXX
Cipher key: XXXXXXXX bits
PBKDF: XXXXXXXX
Time cost: 4
Memory: 99354
Threads: 4
Salt: fe 68 bd c7 5b 7d d1 af 4d d2 46 dd e3 0c 94 2e
69 da f3 fc e1 35 66 93 be e2 e0 11 98 ba 94 3a
AF stripes: 4000
AF hash: XXXXXXXX
Area offset:32768 [bytes]
Area length:258048 [bytes]
Digest ID: 0
Tokens:
Digests:
0: pbkdf2
Hash: sha256
Iterations: 11821
Salt: 18 28 25 ee e0 4b 9a 7e 19 15 26 7d 67 69 96 41
98 50 49 a5 8f 5b 2f 99 c9 7f 99 3d e0 a6 1b e6
Digest: 7b 61 17 e2 e0 50 4d 94 14 a9 80 ec 05 dd ed 6e
a3 29 af f5 b5 69 d1 43 02 31 96 73 57 cc d5 b2
root@chris:~#
Deszyfracja Dysku
root@chris:~# cryptsetup --verbose luksOpen /dev/sda drivedata
Hasło dla /dev/sda:
Klucz numer 0 odblokowany.
Polecenie się powiodło.
root@chris:~#
Tworzenie VOLUMENA
root@chris:~# mkfs.ext4 /dev/mapper/drivedata
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 183139550 4k blocks and 45785088 inodes
Filesystem UUID: 3eda776e-798d-40db-95bf-2fd09bafddfd
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks):
done
Writing superblocks and filesystem accounting information: done
root@chris:~#
root@chris:~#
Cześć Podróżniku!
Ta strona ma nie być typowym poradnikiem w IT, Głównym jej cel to zapisanie krótkich notatek, które mogą się przydać w codziennym życiu podczas korzystania/konfiguracji różnych urządzeń np. Ustawienia DHCP na Routerze Cisco, Ustawieniu Karty sieciowej na Linuxie itp.
Wszelkie prawa zastrzeżone
Dodaj komentarz