How to increase the size of a partition that sits before an encrypted one?

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have the following (lsblk output):
And I want to increase the size of the boot partition (sdb2) but I'm not able to put unallocated space before the LVM partition (sb3), is there a way to do this? I found ways to increase the size of the LVM partition itself but nothing regarding putting that unallocated space before the partition so that it can be used to increase the size of another.
lvm luks
add a comment |Â
up vote
1
down vote
favorite
I have the following (lsblk output):
And I want to increase the size of the boot partition (sdb2) but I'm not able to put unallocated space before the LVM partition (sb3), is there a way to do this? I found ways to increase the size of the LVM partition itself but nothing regarding putting that unallocated space before the partition so that it can be used to increase the size of another.
lvm luks
What's the difference between/boot/efiand/boot? I'm curious because on my (NixOS) system I have the ESP mounted at/boot. So maybe it would be possible to "merge" sdb1 and sdb2.
â Emmanuel Rosa
Apr 20 at 22:04
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have the following (lsblk output):
And I want to increase the size of the boot partition (sdb2) but I'm not able to put unallocated space before the LVM partition (sb3), is there a way to do this? I found ways to increase the size of the LVM partition itself but nothing regarding putting that unallocated space before the partition so that it can be used to increase the size of another.
lvm luks
I have the following (lsblk output):
And I want to increase the size of the boot partition (sdb2) but I'm not able to put unallocated space before the LVM partition (sb3), is there a way to do this? I found ways to increase the size of the LVM partition itself but nothing regarding putting that unallocated space before the partition so that it can be used to increase the size of another.
lvm luks
asked Apr 20 at 21:34
Aspiring Dev
1082
1082
What's the difference between/boot/efiand/boot? I'm curious because on my (NixOS) system I have the ESP mounted at/boot. So maybe it would be possible to "merge" sdb1 and sdb2.
â Emmanuel Rosa
Apr 20 at 22:04
add a comment |Â
What's the difference between/boot/efiand/boot? I'm curious because on my (NixOS) system I have the ESP mounted at/boot. So maybe it would be possible to "merge" sdb1 and sdb2.
â Emmanuel Rosa
Apr 20 at 22:04
What's the difference between
/boot/efi and /boot? I'm curious because on my (NixOS) system I have the ESP mounted at /boot. So maybe it would be possible to "merge" sdb1 and sdb2.â Emmanuel Rosa
Apr 20 at 22:04
What's the difference between
/boot/efi and /boot? I'm curious because on my (NixOS) system I have the ESP mounted at /boot. So maybe it would be possible to "merge" sdb1 and sdb2.â Emmanuel Rosa
Apr 20 at 22:04
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Nope you can't move unallocated space around because the partition table reflects the location of sectors on the disk. Each sector has an ID from 1 to a lot and they are allocated in continuous blocks to partitions. Once allocated you can't easily move them around.
Is you sdb4 in use or not? If not one thing you can do is to create a new partition /boot partition from sdb4 and move the files here. It will require updating the boot loader, probably grub2, but it's reasonably easy to do.
However 238MB should be enough for /boot - if you're getting out of space warnings you may want to delete old, unused kernel packages. It is usually enough to keep only the running one and the one before in case you need to roll back.
How to delete them depends on your distribution, you apparently use Fedora, so here I found a link that should help:
https://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Nope you can't move unallocated space around because the partition table reflects the location of sectors on the disk. Each sector has an ID from 1 to a lot and they are allocated in continuous blocks to partitions. Once allocated you can't easily move them around.
Is you sdb4 in use or not? If not one thing you can do is to create a new partition /boot partition from sdb4 and move the files here. It will require updating the boot loader, probably grub2, but it's reasonably easy to do.
However 238MB should be enough for /boot - if you're getting out of space warnings you may want to delete old, unused kernel packages. It is usually enough to keep only the running one and the one before in case you need to roll back.
How to delete them depends on your distribution, you apparently use Fedora, so here I found a link that should help:
https://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
add a comment |Â
up vote
0
down vote
accepted
Nope you can't move unallocated space around because the partition table reflects the location of sectors on the disk. Each sector has an ID from 1 to a lot and they are allocated in continuous blocks to partitions. Once allocated you can't easily move them around.
Is you sdb4 in use or not? If not one thing you can do is to create a new partition /boot partition from sdb4 and move the files here. It will require updating the boot loader, probably grub2, but it's reasonably easy to do.
However 238MB should be enough for /boot - if you're getting out of space warnings you may want to delete old, unused kernel packages. It is usually enough to keep only the running one and the one before in case you need to roll back.
How to delete them depends on your distribution, you apparently use Fedora, so here I found a link that should help:
https://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Nope you can't move unallocated space around because the partition table reflects the location of sectors on the disk. Each sector has an ID from 1 to a lot and they are allocated in continuous blocks to partitions. Once allocated you can't easily move them around.
Is you sdb4 in use or not? If not one thing you can do is to create a new partition /boot partition from sdb4 and move the files here. It will require updating the boot loader, probably grub2, but it's reasonably easy to do.
However 238MB should be enough for /boot - if you're getting out of space warnings you may want to delete old, unused kernel packages. It is usually enough to keep only the running one and the one before in case you need to roll back.
How to delete them depends on your distribution, you apparently use Fedora, so here I found a link that should help:
https://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/
Nope you can't move unallocated space around because the partition table reflects the location of sectors on the disk. Each sector has an ID from 1 to a lot and they are allocated in continuous blocks to partitions. Once allocated you can't easily move them around.
Is you sdb4 in use or not? If not one thing you can do is to create a new partition /boot partition from sdb4 and move the files here. It will require updating the boot loader, probably grub2, but it's reasonably easy to do.
However 238MB should be enough for /boot - if you're getting out of space warnings you may want to delete old, unused kernel packages. It is usually enough to keep only the running one and the one before in case you need to roll back.
How to delete them depends on your distribution, you apparently use Fedora, so here I found a link that should help:
https://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/
edited Apr 21 at 0:23
answered Apr 20 at 23:12
MLu
1,141819
1,141819
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
add a comment |Â
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
With three kernels it was too close for comfort. I deleted one now but it was around 180MiB. I updated it so that only two kernels are allowed to be installed at the same time but still would've liked to just increase the size of the partition. Anyways, the next best option is do what you suggested and just change the partition. Might do that in the future or just wait till I have to reinstall my main OS and increase the size of it there. Thanks!
â Aspiring Dev
Apr 22 at 3:38
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f439029%2fhow-to-increase-the-size-of-a-partition-that-sits-before-an-encrypted-one%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What's the difference between
/boot/efiand/boot? I'm curious because on my (NixOS) system I have the ESP mounted at/boot. So maybe it would be possible to "merge" sdb1 and sdb2.â Emmanuel Rosa
Apr 20 at 22:04