I recently removed windows 10 from my pc, how can i merge the unallocated space with /dev/nvme0n1p5? There’s the boot partition between so i can’t just adjust one of them and merge with the other using the resize/move button. How can i do it?
- zazaserty ( @zazaserty@discuss.tchncs.de ) 16•1 year ago
Just move the boot to the left and merge
how can i do that?
- Papamousse ( @Frederic@beehaw.org ) 9•1 year ago
Boot on GParted ISO. Moving your boot may bork grub, so you would need to chroot and update it
- quou ( @quou@l.quou.xyz ) English4•1 year ago
you can’t easily. you fucked up putting it there
- quou ( @quou@l.quou.xyz ) English2•1 year ago
Maybe you could by creating a new boot partition and then cloning the current one into that before deleting the original one and reconfiguring grub?
- kevincox ( @kevincox@lemmy.ml ) 2•1 year ago
Most filesystems only support extending themselves with space at the end of their partition. However in this case since the unallocated space is larger than the actual partition you should be able to just copy the existing partition to the start of the disk, then extend the partition and grow the filesystem. I haven’t done this before and always take backups, but you should be able to do something like:
- Make a new boot partition.
- Copy the raw boot partition data from the old partition to the new one.
- Delete the old boot partition.
- Create a new root partition.
- Copy the root partition data to the new partition.
- Delete the old root partition.
- Use the empty space to extend the root partition.
- Extend the root file system to take up the whole partition (
resize2fs
).
Since you are never overwriting data in any step this should be fairly safe. If you are cautious you should be able to boot up the system between every step to make sure that it is still working and you haven’t lost data before overwriting the old partitions.
Some gotchas are checking how your filesystems are discovered/mounted. You may need to update your boot configuration to reference the new partition ID or make sure that you use the same labels (depending on how you are referencing the root partition).
- db2 ( @db2@sopuli.xyz ) 1•1 year ago
You could leave it unallocated and have your drive usably last for a very very long time. Just consider it a 256 gig drive.
yeah i know but i want to reclaim that unallocated space 'cause why not