Repair XFS partition: Too small for data Topic is solved

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
cmonty
Posts: 5
Joined: 13 Jul 2013, 08:56

Repair XFS partition: Too small for data

#1 Post by cmonty »

Hello!

I have a 3TB HDD containing 2.4TB of data.
Unfortunately the HDD was not identified correctly (due to outdated controller) and the size was set to 2TB.
Now the partition is too small for the data.

How can I repair this?

THX

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Repair XFS partition: Too small for data

#2 Post by Fiona »

First of all, you have to make sure, that your disk is a GPT-Disk (GUID-partition table).
Intel MBR only supports disk up to 2.2 TB.
If you write over this limit and you your disk is Intel-MBR, it can cause loss of data.

TestDisk can handle XFS-partitions, only to qwrite it to your GUID-partition table.

If your Disk is recognized correctly, and testdisk finds your partition during a scan, you can write it to your GUID-partition table.

If your file system is damaged, you need datarecovery software like PhotoRec or commercial software.

XFS-chk or repair is only intended to repair a file system and not to recover data.
It's on your own risk;
http://docs.cray.com/books/S-2377-22/ht ... 70303.html

Fiona

cmonty
Posts: 5
Joined: 13 Jul 2013, 08:56

Re: Repair XFS partition: Too small for data

#3 Post by cmonty »

I fixed the problem by disabling HPA on the 3TB disk.

Locked