Hot answers tagged

2

As @Lucas mentioned, LUKS would be preferable to eCryptfs for this, but yes, you can rather easily resize an ext4 image file. You can use truncate -s xxx file to change the size of the file, then losetup -c /dev/loopX to refresh the loop driver's idea of its size ( or unmount and remount it ), then resize2fs to grow it. To shrink, it must be unmounted and ...


1

Since you're talking about Ubuntu, I'm going to assume you use that. To fix, do the following: first, ensure you're working on the installed system, not the live system. A live image usually has its own root filesystem that makes reinstalling grub harder than it could be. Assuming you mount your installed root filesystem on /mnt, you can do this by ...



Only top voted, non community-wiki answers of a minimum length are eligible