If I resize a Linux partition using GParted will my data be safe?

7,393

Solution 1

As always, backup your data before. But, I have used GParted many, many times. When used correctly, and with care, you should not lose any data at all.

Solution 2

As @David_Collantes said, make sure do backups beforehand, just in case. That said, I've never lost data using it, but I would also recommend that you not try and shrink too close to the amount of data on the partition - leave at least 10% free if you can. This will help the filesystem deal with fragmentation and also allow for the reserved 'system space' to not be immediately in use.

Solution 3

Watch out that GParted doesn't change the start of the block while you are resizing the end!

I'm not sure why this happens but it might be the "round to sector" option. Double check before you hit OK.

I've had this happen twice now and it's seared painfully in my mind - it turns a 2 second operation into hours of data shifting and increases the risk of further problems. It'd be a serious pain to move back.

Solution 4

Never attempt to modify partitions without a proper backup, unless you're doing it to try to recover from a disaster that already happened where there is no backup. But then you'd do a copy of the entire disk first anyway ^^

To add some weight to this, I've lost data on partition resize with various utilities including GParted. It happens, even if it's supposedly rarely (yes I've had backups).

Share:
7,393

Related videos on Youtube

Tim Wardle
Author by

Tim Wardle

I am a web application developer from the UK. My main focus at the moment is LAMP development for use in the enterprise. I am skilled with PHP, MySQL, Apache, Linux (Ubuntu), Zend Framework, XHTML, CSS and JavaScript although I have used many other technologies too. I am fanatical about elegant design and web standards.

Updated on September 17, 2022

Comments

  • Tim Wardle
    Tim Wardle over 1 year

    I would like to shrink the size of a partition containing an Ubuntu distribution and files. Is it safe to assume that I will not lose or corrupt any of the files as long as I don't make the partition smaller than the amount of data that is currently on it? I am planning to use GParted from the Ubuntu LiveCD.

  • David Z
    David Z about 15 years
    Same here, I've used GParted... well, several times (10-20 probably) and I've always found it to be exceptionally reliable. (FWIW, I'm always careful not to try things like shrinking a partition to less than the size of the data on it)
  • Steve T
    Steve T about 15 years
    I agree I've only had success when using GParted, but you should always have a backup of any data you prefer not to lose.
  • romandas
    romandas over 14 years
    +1, though it's 'lose', not 'loose'. See ericpinder.com/html/lose.html
  • matpie
    matpie over 14 years
    Read the information on the link you provided; thank you. Corrected.
  • djangofan
    djangofan almost 14 years
    You can back up the whole machine using CloneZilla before you attempt it.