<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 5:59 PM, o1bigtenor <span dir="ltr"><<a href="mailto:o1bigtenor@gmail.com" target="_blank">o1bigtenor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Jun 15, 2016 at 9:43 AM, Matt Price via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br>
> Final question! In order to enable suspend to disk, I ended up shrinking my<br>
> root partition (I also added an M.2 SSD, so the whole thing was a bit<br>
> complex). In the end I got it to work, but I made some kind of an error and<br>
> currently my on-disk “crypt” is a little larger than the partition and file<br>
> system that I am using for root, so I have some wasted space on the disk:<br>
><br>
> ➜  ~ sudo fdisk /dev/sda<br>
><br>
> Command (m for help): p<br>
> Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors<br>
> Units: sectors of 1 * 512 = 512 bytes<br>
> Sector size (logical/physical): 512 bytes / 512 bytes<br>
> I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
> Disklabel type: gpt<br>
> Disk identifier: 9B4C2E92-6C7D-4C69-B67B-1823E4DB9BA6<br>
><br>
> Device         Start       End   Sectors   Size Type<br>
> /dev/sda1       2048   1026047   1024000   500M EFI System<br>
> /dev/sda2    1026048 106907647 105881600  50.5G Linux filesystem<br>
> /dev/sda3  106907648 483340287 376432640 179.5G Linux LVM<br>
> /dev/sda4  483340288 500117503  16777216     8G Linux swap<br>
><br>
> ➜  ~ sudo cryptsetup status cryptsetup<br>
> /dev/mapper/cryptsetup is active and is in use.<br>
>   type:    LUKS1<br>
>   cipher:  aes-xts-plain64<br>
>   keysize: 256 bits<br>
>   device:  /dev/sda2<br>
>   offset:  4096 sectors<br>
>   size:    105877504 sectors<br>
>   mode:    read/write<br>
><br>
> Anyone out there have advice abot how to safely and reliably expand the<br>
> partition and the file system so that they both end precisely where the<br>
> crypt does?<br>
><br>
> Thanks again guys! as always, it’s much appreciated.<br>
><br>
<br>
</div></div>No ideas on the other two problems but on this one I would recommend<br>
using something like:<br>
<br>
boot your system using a system rescue disc<br></blockquote><div>Yes! I use the Ubuntu livecd just because it's easy to get <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
adjust your partition(s)  (carefully please) using gparted<br></blockquote><div>is that adequate? Can I be sure that the crypt and the partition match exactly? I feel like it's somewhat difficult to measure the size & extent of a crypt in units that gparted also understands <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
close<br>
<br>
reboot as regular<br>
<br>
Should be real easy (assuming that the empty space is right beside<br>
where you want it.<br>
Recommend a backup before but then you already know that - - yes?<br></blockquote><div>yes... though I don't always follow recommendations. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Let us know what you use<br></blockquote><div> </div></div><br></div></div>