[wiki] RFC on changes to ResizeEncryptedPartitions

Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[wiki] RFC on changes to ResizeEncryptedPartitions

Josh Bialkowski
Hello,

I recently followed the guide on this page:
https://help.ubuntu.com/community/ResizeEncryptedPartitions#Reduce_an_encrypted_partition
to shrink my root partition after a default encrypted install. I found a
couple
of minor issues so I was going to update the page but I wanted to double
check
on the accuracy of my planned edits. I would appreciate comments on the
following two items:

1. "Update fstab with new uuid"

I was planning to add an alert box / note that for a default 18.04 install
this
is not necessary as fstab doesn't contain a UUID for swap. However the old
swap volume UUID was referenced in `/etc/initramfs-tools/conf.d/resume`
which
needs to be changed. Otherwise I saw this warning during `update-initramfs
-u`:

```
W: initramfs-tools configuration sets
RESUME=UUID=2f3413ec-9386-4ffd-9ca7-f765e56f4a7d
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/dm-2
I: (UUID=6c4aa319-f370-4870-8a23-ad54aa091cdd)
I: Set the RESUME variable to override this.
```

2. "resize your crypt"

This appears to be unnecessary. I did a little googling
(e.g. https://unix.stackexchange.com/a/416356/228030)
and the best I can tell luks doesn't store information about the size of
the volume. Doing this resize only applies to "for now" and since the very
next
step is to close the crypt I'm pretty sure this is unnecessary. I skipped
it
when I was resizing my disk and it didn't *seem* to cause ill effect.
--
ubuntu-doc mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc