User Tools

Site Tools


linux:scribble

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
linux:scribble [2014/11/21 12:24] – Add git styblalinux:scribble [2015/11/26 04:40] – how to resize loop-AES partition stybla
Line 223: Line 223:
 multilibs from time to time), so that might be the issue behind error above. But libvirt  multilibs from time to time), so that might be the issue behind error above. But libvirt 
 is long gone, replaced and forgotten now. is long gone, replaced and forgotten now.
 +
 +===== loop-AES =====
 +
 +==== Resize encrypted LVM backed partition =====
 +
 +<code>
 +root@foo:# umount /encrypted
 +
 +root@foo:# lvextend -L +1T /dev/mapper/encrypted
 +
 +root@foo:# losetup -F /dev/loop3
 +Password: 
 +
 +root@foo:# fsck -f /dev/loop3
 +fsck from util-linux 2.22.1
 +e2fsck 1.42.6 (21-Sep-2012)
 +Pass 1: Checking inodes, blocks, and sizes
 +Pass 2: Checking directory structure                                           
 +Pass 3: Checking directory connectivity                                        
 +Pass 4: Checking reference counts                                              
 +Pass 5: Checking group summary information                                     
 +/dev/loop3: 1065215/59539456 files (1.9% non-contiguous), 218308597/238138368 blocks
 +
 +root@foo:# resize2fs /dev/loop3 
 +resize2fs 1.42.6 (21-Sep-2012)
 +Resizing the filesystem on /dev/loop3 to 506573824 (4k) blocks.
 +The filesystem on /dev/loop3 is now 506573824 blocks long.
 +
 +root@foo:# mount /encrypted
 +</code>
 +
 +Funny thing is, it seems much harder to resize encrypted partition via cryptsetup/dm-crypt.
  
 ===== OpenOffice/LibreOffice ===== ===== OpenOffice/LibreOffice =====
linux/scribble.txt · Last modified: 2022/07/06 17:27 by stybla