Forum » Operacijski sistemi » Cryptsetup na RaspberryPi
Cryptsetup na RaspberryPi
![](https://static.slo-tech.com/stili/avatar_gray.gif)
poweroff ::
RaspberryPi imam kot iSCSI initiator priključen na iSCSI target. Na tem targetu sem naredil z fdisk novo particijo, se pravi imam napravo /dev/sdd1.
Še par tehnikalij:
OK, sedaj skušam to napravo sdd1 formatirati z integrity checkom:
sudo cryptsetup -v luksFormat --type luks2 --integrity hmac-sha256 /dev/sdd1
In dobim error:
WARNING!
========
Ampak če pa dam --integrity none...
Pa zadeva začne delati:
Vprašanje - v čem je problem?
Tudi če dam --integrity poly1305 je problem podoben:
Še par tehnikalij:
cryptsetup --version cryptsetup 2.1.0 cat /etc/debian_version 10.3
OK, sedaj skušam to napravo sdd1 formatirati z integrity checkom:
sudo cryptsetup -v luksFormat --type luks2 --integrity hmac-sha256 /dev/sdd1
In dobim error:
WARNING!
========
This will overwrite data on /dev/sdd1 irrevocably. Are you sure? (Type uppercase yes): YES Enter passphrase for /dev/sdd1: Verify passphrase: device-mapper: reload ioctl on failed: Invalid argument Cannot format integrity for device /dev/sdd1. Command failed with code -1 (wrong or missing parameters).
Ampak če pa dam --integrity none...
sudo cryptsetup -v luksFormat --type luks2 --integrity none /dev/sdd1
Pa zadeva začne delati:
WARNING! ======== This will overwrite data on /dev/sdd1 irrevocably. Are you sure? (Type uppercase yes): YES Enter passphrase for /dev/sdd1: Verify passphrase: Key slot 0 created. Wiping device to initialize integrity checksum. You can interrupt this by pressing CTRL+c (rest of not wiped device will contain invalid checksum). Progress: 0.0%, ETA 4439:07, 179 MiB written, speed 7.9 MiB/s
Vprašanje - v čem je problem?
Tudi če dam --integrity poly1305 je problem podoben:
sudo cryptsetup -v luksFormat --type luks2 --integrity poly1305 /dev/sdd1 --verbose WARNING: Device /dev/sdd1 already contains a 'crypto_LUKS' superblock signature. WARNING! ======== This will overwrite data on /dev/sdd1 irrevocably. Are you sure? (Type uppercase yes): YES Enter passphrase for /dev/sdd1: Verify passphrase: Existing 'crypto_LUKS' superblock signature on device /dev/sdd1 will be wiped. Existing 'crypto_LUKS' superblock signature on device /dev/sdd1 will be wiped. Cipher aes-xts-plain64 (key size 512 bits) is not available. Command failed with code -1 (wrong or missing parameters).
sudo poweroff
![](https://static.slo-tech.com/stili/avatar_gray.gif)
johnnyyy ::
Integrity mora biti omogočen v kernelu ...
glej pod: CONFIG_DM_INTEGRITY
zcat /proc/config.gz | grep CONFIG_DM_INTEGRITY
glej pod: CONFIG_DM_INTEGRITY
zcat /proc/config.gz | grep CONFIG_DM_INTEGRITY
![](https://static.slo-tech.com/stili/avatar_gray.gif)
poweroff ::
Ja, seveda ni... ![:(](https://static.slo-tech.com/smeski/icon_sad.gif)
Sem pa pogledal kako je s fscryptom... in seveda tudi tukaj ni omogočen v kernelu:
https://github.com/raspberrypi/linux/is...
Oštja, a bo res treba kernel ročno kompajlat??
![:(](https://static.slo-tech.com/smeski/icon_sad.gif)
Sem pa pogledal kako je s fscryptom... in seveda tudi tukaj ni omogočen v kernelu:
https://github.com/raspberrypi/linux/is...
Oštja, a bo res treba kernel ročno kompajlat??
sudo poweroff
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | a mi je crknu disk al neOddelek: Strojna oprema | 1485 (926) | filip007 |
» | Pomoč pri prevodu iz angleščineOddelek: Loža | 897 (776) | ziga7 |
» | NAS(raid 5)+diskiOddelek: Kaj kupiti | 4160 (3610) | antonija |
» | koliko particijOddelek: Pomoč in nasveti | 4943 (4448) | inbox |
» | [Linux] loop naprava in virtualni diskOddelek: Operacijski sistemi | 1568 (1371) | poweroff |