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?

17 points

Just move the boot to the left and merge

permalink
report
reply
9 points

how can i do that?

permalink
report
parent
reply
12 points

Right click, resize/move.

permalink
report
parent
reply
10 points

To add on to this, don’t click the handles on the boot block, click and drag the entire boot block itself. You’ll be able to move the boot partition to the left, then you can extend your main partition.

permalink
report
parent
reply
3 points

i’ll try this as soon as i have the time to flash the live iso. Btw i think i already tried it many times but it didn’t work. I’ve even watched tutorials. It just does nothing

permalink
report
parent
reply
9 points

Boot on GParted ISO. Moving your boot may bork grub, so you would need to chroot and update it

permalink
report
parent
reply
10 points

This might be possible by booting to a live disk and using gparted etc.

Don’t attempt to do anything while you’re using the Linux partition. That’s like trying to work on a car while it’s running.

permalink
report
reply
3 points

Yeah, it’s not like gparted lets me to that by the way. If i want to make changes i need to boot into a live environment

permalink
report
parent
reply
3 points
*

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:

  1. Make a new boot partition.
  2. Copy the raw boot partition data from the old partition to the new one.
  3. Delete the old boot partition.
  4. Create a new root partition.
  5. Copy the root partition data to the new partition.
  6. Delete the old root partition.
  7. Use the empty space to extend the root partition.
  8. 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).

permalink
report
reply
2 points
*
Deleted by creator
permalink
report
reply
2 points

Nah i won’t backup anything. I lost my soul trying to rice my ubuntu, no way i’m doing that

permalink
report
parent
reply
1 point

If I may ask, why not just format it normally and mount it to a directory in your system? Why does it need to be merged ?

permalink
report
reply
1 point

If the outcome will be the same then good. How can i do that?

permalink
report
parent
reply
1 point

Just create a new partition, then in your home folder or somewhere else idk, create a folder and choose that as mount point.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.7K

    Monthly active users

  • 6.5K

    Posts

  • 179K

    Comments