You are not logged in.

#1 2020-07-11 02:55:18

Qwerty-Space
Member
Registered: 2020-03-13
Posts: 17

[Solved] Stuck enlarging an encrypted volume with dm-crypt and LUKS

Hello

I recently moved from Windows to Arch, after playing around with Manjaro for a year or so on my laptop.  And in doing so had to transfer 1.2TB of data to a new partition on the same drive. 
I encrypted the new partition using this guide on the Arch wiki:  https://wiki.archlinux.org/index.php/Dm … cryptsetup

I formatted with btrfs due to some of the features it provides.
And now I need to expand that partition so that I have access to the whole drive.  One problem...  Every guide mentions resizing LVM, but I didn't use LVM, so I am a bit stuck, and confuse.
I used gparted to expand the partition, and I read that LUKS just fills the entire partition if it can, but lsblk -f  reports that there's <300 GB left, which can't be right. 

What should I do?

Last edited by Qwerty-Space (2020-07-13 18:06:54)

Offline

#2 2020-07-11 02:58:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Stuck enlarging an encrypted volume with dm-crypt and LUKS

Don't you just use `btrfs resize`? That's supposed to be one of the advantages of btrfs...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-07-11 16:01:12

Qwerty-Space
Member
Registered: 2020-03-13
Posts: 17

Re: [Solved] Stuck enlarging an encrypted volume with dm-crypt and LUKS

jasonwryan wrote:

Don't you just use `btrfs resize`? That's supposed to be one of the advantages of btrfs...

btrfs fileystem usage isn't showing the entire drive

Last edited by Qwerty-Space (2020-07-11 16:04:46)

Offline

#4 2020-07-11 16:07:43

Qwerty-Space
Member
Registered: 2020-03-13
Posts: 17

Re: [Solved] Stuck enlarging an encrypted volume with dm-crypt and LUKS

Ah, doing btrfs filesystem resize max /mnt/data, and then btrfs filesystem usage is now showing the rest of the drive as unallocated

So I think it's working now!  Thank you

[samurai ~] lsblk -f
NAME      FSTYPE FSVER LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINT              
sdd                                                                                
└─sdd3    crypto 2           959804bb-6692-4e42-90d0-352d7fc2e0d8                  
  └─data  btrfs        Storage
                             4e95f1bb-7c15-4179-a283-35717bd2faa5      1.5T    44% /mnt/data

Last edited by Qwerty-Space (2020-07-11 16:10:25)

Offline

#5 2020-07-11 19:20:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Stuck enlarging an encrypted volume with dm-crypt and LUKS

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2020-07-13 18:06:35

Qwerty-Space
Member
Registered: 2020-03-13
Posts: 17

Re: [Solved] Stuck enlarging an encrypted volume with dm-crypt and LUKS

jasonwryan wrote:

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

Ah yes, thanks

Offline

Board footer

Powered by FluxBB