Score:0

How do I add Unallocated partion to main Partition

cr flag

This is the current situation This is the current situation

What should I do ?

ar flag
Does this answer your question? [How to resize partitions?](https://askubuntu.com/questions/126153/how-to-resize-partitions)
oldfred avatar
cn flag
You cannot run gparted from working system. You need to use Ubuntu's live installer which has gparted or gparted ISO. Another alternative, your choice, is a separate /home or data partition(s). To move /home uses rsync- Be sure to use parameters to preserve ownership & permissions https://help.ubuntu.com/community/Partitioning/Home/Moving Data partition can be on same drive, otherwise like this: https://askubuntu.com/questions/1013677/storing-data-on-second-hdd-mounting & https://askubuntu.com/questions/1058756/installing-all-applications-on-a-ssd-disk-and-putting-all-files-on-hdd-disk
vidarlo avatar
om flag
@oldfred for extending it's often possible to do it from a running system. It may be conceptually easier to do it from a live cd, but most modern filesystems support online extensions.
PonJar avatar
in flag
@vidarlo interesting comment but I think you are wrong here since the filesystem is clearly ext4. Perhaps you could explain how to do it in an answer. I’d be interested to know how to do it.
vidarlo avatar
om flag
@PonJar The suggested duplicate answers it quite well imho. For online resizing, see `man resize2fs`, which notes that online resizing has been supported since 2.6-kernels for ext3/4 filesystems. I wouldn't be surprised if it was as simple as telling gparted to expand the partition, though I've never really used gparted.
PonJar avatar
in flag
@vidarlo to quote from the manual you mention, “ The resize2fs program does not manipulate the size of partitions.” Whilst you can change the size of the filesystem with resize2fs it doesn’t make the partition any larger. So in this scenario it’s of no use on its own. All 4 answers in the suggestion confirm that if the partition is mounted you cannot change the size of the partition. They go on to say if you run GParted in a live environment it can change the size of the partition and resize the filesystem to match. The key symbol means GParted cannot change its size when mounted
vidarlo avatar
om flag
I've done it using parted in the past. I've never tried gparted for this purpose though... I will test in a VM tomorrow:)
vidarlo avatar
om flag
@PonJar see https://askubuntu.com/q/24027/653515 which claims this is possible.
PonJar avatar
in flag
@vidarlo Thanks, that’s really interesting and something I will try in a VM when I get a chance. I’m surprised GParted cannot do it if it’s possible on the command line. This is on the assumption that GParted is a front end to the creation of a sequence of commands to produce the intended result
vidarlo avatar
om flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/126938/discussion-between-vidarlo-and-ponjar).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.