0

I installed a couple of Ubuntu versions previously only to be deleted or unused leaving the allocated space they used haunted.Using a tool like GParted how can I merge all those pieces into my original HDD space which was 500GB.Below is the picture of how it looks.Help needed very badly. GParted snapshot

  • "Haunted"? This word does not make sense in this context. – psusi Nov 21 '12 at 19:15
  • 1
    @psusi, I dunno, I kind of like it. The space was once free, but now it is inhabited by the spirits of bygone operating systems... The operating systems died a cruel and needless death, and the user must atone for his sins to cleanse the disk. ^_^ – thirtythreeforty Nov 27 '12 at 4:46
1

First, delete all the old partitions that you don't want, using gparted. Then resize the remaining partition to take up that extra space. It's pretty point and click; just be sure and do it from a live CD.


Unneeded; kept for posterity

When you're done, the partition will indeed be bigger, but Ubuntu's ext4 filesystem won't know it. To fix this, do

resize2fs /dev/sdaX

replacing sdaX with the proper name of your partition. Then reboot and you should be done!


To make room for ChromeOS, don't resize Ubuntu to take up all of the space; leave an unallocated block for ChromeOS. I'm not familiar with ChromeOS's install procedure, but it will probably offer to use the unallocated space.

  • 2
    I don't think resize2fs call is needed, gparted does that for you – Sergey Nov 21 '12 at 18:40
  • I think you're right. Although calling it won't hurt. – thirtythreeforty Nov 21 '12 at 18:42
  • Well i am clearly not able to delete old partitions.By old partitions do you mean by the number they follow ? 1 being the oldest ?? – therealnube Nov 21 '12 at 18:43
  • You won't be able to delete them if they are mounted. Make sure you unmount everything on sda before you start. And by oldest, I mean "the ones you don't want." If you boot into the Ubuntu you want to keep and run mount, it will tell you what partitions are mounted. – thirtythreeforty Nov 21 '12 at 18:44
  • it says i have to manually unmount it – therealnube Nov 21 '12 at 18:45

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.