1

I had deleted my hackintosh OS from /dev/sda1 so I could expand my Ubuntu partition. Also this is just one physical hard drive. I think it would be the filesystem sda5 that would need to be expanded. However I am still pretty new to Linux in general, so it could be the sda4 extended partition instead. While playing with GParted I did notice that if allocated space was within the drop down area of the partitions, it can see that space and re-add it.

I watched some videos, but they didn't quite help me in figuring the problem out. They all had "gray space" after the data and free space on the existing partition.

enter image description here

I don't know what to do. Also my Terminal knowledge is limited. I also have no issues having to re-install Ubuntu if needed, but I can't do anything to the Windows 7 partition on sda3 as it has important files. Please advise.

  • 2
    There isn't much to do. The unallocated space is nowhere near /dev/sda4, and there are several other partitions in between. To merge them, you'd need to do a major overhaul. – mikewhatever Jan 30 '17 at 3:45
  • boot from your usb or cd 'live' and run gparted there. you can allocate that free space as you like. just don't make the / "root" partition smaller than it is because there is danger to lose important files – Pavlos Theodorou Jan 30 '17 at 7:13
0

Unfornately you cannot do this easily, because there are several partions in between the ext4 and unallocated area. This post is similar to your issue. And has the answer to your initial intent.

However, you can set that unallocated space as your home, and your current ext4 drive as root. That way you can utilize your current drive structure.

You can google several tutorials for custom ubuntu hdd partition. One such is this.

  • Please add the important contents of that link in case it changes. – George Udosen Jan 30 '17 at 6:37
  • @George Did you mean the last link ? It's a full blown article with almost 500+ line, I'm not sure how to summarize it. If you suggest, I can remove the link though. – Sirajus Salekin Jan 30 '17 at 6:44
  • I think the Ubuntu-mate one, but i can't see it here. – George Udosen Jan 30 '17 at 6:46
0

This is what I did to work around my issue. I formatted the unallocated space to an ext4 file system format and it became /dev/sda1 via live usb. I then re-installed Ubuntu to the latest distro. During the partition process during the re-install, I had sda1 be \home and sda5 be \. It looks like it is working well now. Thank you to everyone who commented and posted an answer!

  • Glad to know you were successful. Welcome to linux world :D – Sirajus Salekin Feb 3 '17 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.