Hard drive partition size wrong. How do I resize without loss of data?

Posted by BreezyChick89 on Super User See other posts from Super User or by BreezyChick89
Published on 2012-06-23T12:05:04Z Indexed on 2012/06/23 15:18 UTC
Read the original article Hit count: 173

Filed under:
|
|
|
|

$ fsck

fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
The filesystem size (according to the superblock) is 610471680 blocks
The physical size of the device is 536870911 blocks
Either the superblock or the partition table is likely to be corrupt!

It should be 1 partition but it now shows 2.2tb partitioned and .3tb unpartitioned

enter image description here

How do I make the first partition correctly be 2.5tb without destroying whatever is in either partition? I did not raid or anything. My devices have been getting repeatedly corrupt by thunderstorms.

Looks like people recommend doing something like in other places.

sudo resize2fs /dev/sdc1 610471680

© Super User or respective owner

Related posts about linux

Related posts about ubuntu