Comment 6 for bug 96976

Revision history for this message
Sam Liddicott (sam-liddicott) wrote : Re: gparted shows empty disk

I suggest using sfdisk to backup your partition as text.

Then try editing a copy of the sfdisk output in a text editor.
You will have to analyse the output of sfdisk to work out what is wrong and then adjust the partition boundries your self in the sfdisk file.
Only play with partition size (end) not partition start.
Then you will have to play-back the file into sfdisk.

As long as this is all you do you ought also to be able to playback the original sfdisk file.

Once the partition table is OK you may need to re-size your filesystems so they are not bigger than your partitions.

AFAIK most filesystem types have tools to adjust the filesystem to be the same size as the partition.

Maybe you want to make them shrink a bit first? It's up to you.

Backup data first as you may loose file system data.
It's a hairy business but that what gparted is for.... oh....