User Tools

Site Tools


docs:tips_n_tricks:luks.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docs:tips_n_tricks:luks.html [17.12.2015 03:15 CET] – [LUKS, cryptdisk an resizefs] peterdocs:tips_n_tricks:luks.html [21.08.2022 19:06 CEST] (current) – [Resize an encrypted LV managed by cryptsetup] peter
Line 2: Line 2:
 ===== Resize an encrypted LV managed by cryptsetup ===== ===== Resize an encrypted LV managed by cryptsetup =====
  
-While it is quite straight(([[http://www.google.com/?q=LVM+LUKS+resize2fs]])) forward to resize any stack of LUKS, ext2,3,4, LVM, MSDOS or GPT partitions, it becomes strange if you're using Ubuntus package //cryptsetup// ((Consisting of ''/etc/crypttab'' and ''cryptdisks_''(''start''|''stop'') ))+While it is seems to be quiet obvious for most people 
 +(([[https://help.ubuntu.com/community/ResizeEncryptedPartitions|Help Ubuntu]], 
 +[[http://www.linuxquestions.org/questions/linux-general-1/resize-lvm-insize-luks-4175543023/|Linuxquestions]], 
 +[[http://serverfault.com/questions/394902/resizing-a-luks-encrypted-volume|Serverfault]], 
 +[[https://debianforum.de/forum/viewtopic.php?f=27&t=148210|debianforum]], 
 +[[https://wiki.archlinux.org/index.php/Resizing_LVM-on-LUKS|Archlinux Forum]], 
 +[[https://forum.ubuntuusers.de/topic/luks-partition-vergroessern.-ohne-lvm/|Ubuntuusers]], 
 +[[http://www.google.com/?q=LVM+LUKS+resize2fs|All the Rest]] 
 +)) 
 +how to resize any stack of LUKS, ext2,3,4, LVM, MSDOS or GPT partitions, it becomes strange if you're using Ubuntus package //cryptsetup// ((Meaning, if you are using ''/etc/crypttab'' and ''cryptdisks_''(''start''|''stop''for automatic handling of mounts))
  
   ~ # lvresize -L 22.5G /dev/vg_sys/lv_home   ~ # lvresize -L 22.5G /dev/vg_sys/lv_home
Line 26: Line 35:
 {{entry>Linux}} {{entry>Linux}}
 {{entry>LVM}} {{entry>LVM}}
 +{{entry>LUKS}}
 {{entry>cryptsetup}} {{entry>cryptsetup}}
 {{entry>resize2fs}} {{entry>resize2fs}}
-{{tag>Linux LVM cryptsetup resize2fs}}+{{tag>Linux LVM LUKS cryptsetup resize2fs}} 
 +===== Prepare for low memory systems ===== 
 + 
 +Get current memory need: 
 + 
 +  cryptsetup luksDump /dev/<device> | fgrep Memory 
 + 
 +Set new memory need: 
 + 
 +  cryptsetup luksConvertKey --key-file /path/to/keyfile --pbkdf-memory=10240 /dev/<device> 
 + 
 +__References__: 
 + 
 +  * https://unix.stackexchange.com/a/687497 
 +===== Gnome Keyring ===== 
 +//Not exactly LUKS related, but shows up in the context// 
 +==== Reset LUKS password accidently stored "forever" ==== 
 +  gnome-keyring-daemon -r 
 +Reference: 
 +  * https://askubuntu.com/questions/1059797/ubuntu-16-04-encrypted-usb-disk-key-not-showing-up-in-seahorse 
 +==== Change default answer to LUKS password question (e.g.) in Thunar ==== 
 + 
 +Reference article seems to be out of date. 
 + 
 +Reference 
 +  * https://askubuntu.com/questions/509906/is-it-possible-to-make-forget-password-immediately-the-default-when-opening-lu 
 +  * https://bugzilla.gnome.org/show_bug.cgi?id=587909 (from https://superuser.com/questions/1625494/how-to-default-nemo-to-forget-luks-password) 
 + 
 +==== List all available secrets ==== 
 +//Um .. aeh ... really 8-O// 
 + 
 +  apt install libsecret-1-dev 
 +  git clone https://gitlab.com/GrantMoyer/lssecret.git 
 +  cd lssecret 
 +  make 
 +  DESTDIR=/usr/local/lssecret make install 
 +  ln -s ../lssecret/bin/lssecret /usr/local/bin 
 +  lssecret -s 
 +   
 +References: 
 + 
 +  * https://gitlab.gnome.org/GNOME/libsecret/-/issues/29 
 +  * https://gitlab.com/GrantMoyer/lssecret 
docs/tips_n_tricks/luks.html.1450318538.txt.gz · Last modified: 17.12.2015 03:15 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki