premetto che uso gia delle partizioni crittate che carico tramite il comando
Code: Select all
# cryptsetup create partizione /dev/sdaX
# mount /dev/mapper/partizione /mnt/part_cryptè possibile farlo?
grazie
Marzio
Moderator: ago

Code: Select all
# cryptsetup create partizione /dev/sdaX
# mount /dev/mapper/partizione /mnt/part_crypt


siccome questa wiki è per crittare l'intero sistema ( boot compresa) non inserire un file initrd non permetterebbe il caricamento iniziale del sistema di decrittazione e quindi l'avvio del sistema stesso. (se dico boiate correggetemi pureVolevo provare anche io a fare una partizione crittata solo che ho trovato questo wiki ma mi sono fermato perché non capisco cosa c'entri un file initrd e poi non sono sicuro che sia realmente un wiki "funzionante" (non so perché ho questa impressione).
Code: Select all
rc-update add truecrypt bootCode: Select all
## /home with passphrase
#target=crypt-home
#source='/dev/hda5'
Code: Select all
## /home with regular keyfile
#target=crypt-home
#source='/dev/hda5'
#key='/full/path/to/homekey'Code: Select all
## /home with gpg protected key
#target=crypt-home
#source='/dev/hda5'
#key='/full/path/to/homekey:gpg'Code: Select all
## /home with regular keyfile on removable media(such as usb-stick)
#target=crypt-home
#source='/dev/hda5'
#key='/full/path/to/homekey'
#remdev='/dev/sda1'Code: Select all
##/home with gpg protected key on removable media(such as usb-stick)
#target=crypt-home
#source='/dev/hda5'
#key='/full/path/to/homekey:gpg'
#remdev='/dev/sda1'Code: Select all
##/tmp with regular keyfile
#target=crypt-tmp
#source='/dev/hda6'
#key='/full/path/to/tmpkey'
#pre_mount='/sbin/mkreiserfs -f -f ${dev}'
#post_mount='chown root:root ${mount_point}; chmod 1777 ${mount_point}'Code: Select all
## Loopback file example
#mount='crypt-loop-home'
#source='/dev/loop0'
#loop_file='/mnt/crypt/home'Ciao Marzio,marziods wrote:vorrei trovare un modo semplice per avviare la home crittata:
premetto che uso gia delle partizioni crittate che carico tramite il comandoora vorrei che /dev/mapper/partizione diventi la mia /home quindi necessito che all'avvio venga montata con fstab.Code: Select all
# cryptsetup create partizione /dev/sdaX # mount /dev/mapper/partizione /mnt/part_crypt
è possibile farlo?
grazie
Marzio
Code: Select all
File systems --->
<*> Second extended fs support
<*> Reiserfs support
Device Drivers --->
Block devices --->
<*> Loopback device support
< > Cryptoloop Support
(4096) Default RAM disk size (kbytes)
Multiple devices driver support (RAID and LVM) --->
<*> Device mapper support
<*> Crypt target support
General Setup --->
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
Cryptographic API --->
<*> SHA 224 and SHA256 digest algorithm
<*> AES cipher algorithms (x86_64)Code: Select all
emerge cryptsetup multipath-toolsCode: Select all
rc-update add dmcrypt bootCode: Select all
shred -v -n 2 /dev/sda3Code: Select all
cryptsetup -y -s 256 luksFormat /dev/sda3Quindi nel comando qui sopra è sottintesa la seguente opzione:man cryptsetup wrote:Default mode is configurable during compilation, you can see compiled-in default using cryptsetup --help. If not changed, the default is for plain dm-crypt and LUKS mappings "aes-cbc-essiv:sha256".
Code: Select all
--cipher aes-cbc-essiv:sha256Code: Select all
cryptsetup luksOpen /dev/sda3 homeCode: Select all
mkfs.ext4 /dev/mapper/home
mount /dev/mapper/home /homeCode: Select all
/dev/mapper/home /home ext4 noatime 0 1Code: Select all
## /home with passphrase
target=home
source='/dev/sda3'