Zakupiłem nowego laptopa i już na etapie tworzenia partycji, stworzyłem dodatkową która ma być zaszyfrowana. Wcześniej używałem truecrypta ale w związkuu z aferą chciałbym się przenieść na LUKS'a. Udało mi się stworzyć partycje luks, podczas bootowania ubuntu (a dokładnie xubuntu) ładnie pyta sie o hasło. Problem w tym że partycja montowana jest w /media/dibo/tc_home/ a chciałbym w /home/dibo/tc_home.
Partycja znajduje się w /dev/sda6 a mój plik /etc/crypttab wygląda następująco:
Wzorowałem się tym artykułem: https://help.ubuntu.com/community/Encry ... stemHowto3 i tym http://david.dw-perspective.org.uk/da/i ... with-luks/# <target name> <source device> <key file> <options>
tc_home /dev/sda6 none luks
Powinienem również dodać nową linię w /etc/fstab ale po jej dodaniu xubuntu ma jakiś "serious problem" podczas bootowania i proponuje pominięcie montowania tej partycji. Oryginalnie fstab wygląda tak (ta dodatkowa partycja w instalatorze xubuntu została zaznaczona jako ext4 ale bez żadnego punktu montowania)
A tak wygląda po dodaniu nowej lini:# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=39d5060c-72d4-4b5d-81db-5c2ae03dab9e / ext4 noatime,errors=remount-ro 0 1
# /home was on /dev/sdb5 during installation
UUID=340e64e0-dae8-4be7-b199-165c71cc4a05 /home ext4 noatime,defaults 0 2
tmpfs /tmp tmpfs noexec,defaults,noatime 0 0
tmpfs /var/tmp tmpfs noexec,defaults,noatime 0 0
Może coś nie tak z kolumną dump lub pass? Nie wiem również czy "mke2fs -j -m 0 -L /home /dev/mapper/home" sformatowało partycje z ext4# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=39d5060c-72d4-4b5d-81db-5c2ae03dab9e / ext4 noatime,errors=remount-ro 0 1
# /home was on /dev/sdb5 during installation
UUID=340e64e0-dae8-4be7-b199-165c71cc4a05 /home ext4 noatime,defaults 0 2
tmpfs /tmp tmpfs noexec,defaults,noatime 0 0
tmpfs /var/tmp tmpfs noexec,defaults,noatime 0 0
/dev/sda6 /home/tc_home ext4 noatime,defaults 1 3
Druga sprawa. Chciałbym aby szyfrowana partycja miała opcję "noatime" ponieważ wszystkie moje dyski są na SSD a to wydłuża ich żywotność