0

I've the following partition scheme (I know this may cause vomit, nausea, etc. but we can discuss this in another question)

partition scheme

I must increase the size of the "/" partition (highlighted in the picture attached) which stores MySQL server and got empty while trying to import a big dump file.

Which steps should I follow so I could be able to increase the size of that partition? I have a ntfs partition which has 728Gb free

  • It may be easier to move the SQL server into its own partition, or another directory of an existing parition. – SomeoneSomewhereSupportsMonica May 2 '16 at 16:43
  • I should uninstall and reinstall lampp in advanced mode (I guess) and never did such before @SomeoneSomewhere – Enrique May 2 '16 at 19:23
  • I don't know that you'd need to do that. Look up a guide on how to move /home onto its own partition after install - it's the same, just whichever directory stores the SQL DBs. – SomeoneSomewhereSupportsMonica May 2 '16 at 19:27
  • I meant. When I install lampp, it gets installed in the / partition automatically. I've never tried to install it into another partition nor tried to move or separate the MySQL server from it, I think it should "explode". And also, moving MySQL or its data into another partition is something I cannot afford. Will try resizing the partitions as you answered and will tell u how it went – Enrique May 2 '16 at 19:32
1

Make a backup. Messing around with partitions can cause data loss if something goes wrong, or make your system unable to boot.

You'll need to boot off a LiveCD/USB, because you can't work on mounted partitions. Note that you won't be able to view mountpoints easily.

Select the NTFS partition, and shrink it from the left. Then expand the extended partition (sda2) to take up the freed space.

Then use the resize/move command to move each of sda[6-10] to the very right of your extended partition, probably while keeping the same size (unless you want to resize them).

Lastly, expand sda5 (your / partition) into the freed-up space. Click apply, wait a while (this will take several hours), then reboot.

  • Hi again. I downloaded Gparted live, burnt the CD and booted. Then I resized the ntfs partition and clicked Apply. Borrowed from it100gb. Took me some 5' and it finished correctly. BUT: Now I cannot resize the SDA2 partition, it does not show me the free space from the unallocated space. Do I need another step/task ? Thanks again – Enrique May 2 '16 at 20:51
  • Here is the screenshot took with my phone: i.imgur.com/NAdDffN.jpg – Enrique May 2 '16 at 20:54
  • @Enrique you need to resize the partition so that the free space is on the left. I probably could have been clearer writing that. – SomeoneSomewhereSupportsMonica May 2 '16 at 20:56
  • I was able to shrink ntfs from left (took 4hs) and could add 150gb to /sda2 as you can see in the image. Now what should I do to increase sda5? thanks storage1.static.itmages.com/i/16/0503/… – Enrique May 3 '16 at 10:34
  • @Enrique Select the rightmost of each of the partitions in sda2, and move it to the right while keeping the same size. Repeat for each partition, except sda5 – SomeoneSomewhereSupportsMonica May 3 '16 at 11:19

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.