Article 5RA92 xfs - Can't have a partition outside the disk

xfs - Can't have a partition outside the disk

by
virilo
from LinuxQuestions.org on (#5RA92)
My hard drive crashed and a restoration company was able to copy everything to another new drive.

I think they used dd or similar.

It had two xfs partitions. But, now I can only mount the first one.

If I try to view the partitions with gparted it says:

Quote:
Can't have a partition outside the disk
It seems that the new disk was a little smaller than the original (different models):

Quote:
fdisk -l -u=sectors

Disk /dev/sdd: 9,1 TiB, 10000797794304 bytes, 19532808192 sectors
Disk model: Elements 25A3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt

Device Start End Sectors Size Type
/dev/sdd1 2048 9766436863 9766434816 4,6T Linux filesystem
/dev/sdd2 9766436864 19532871679 9766434816 4,6T Linux filesystem
But the numbers doesn't match!:

Quote:
19532808192-9766434816-9766434816-2048 = -63488
How can I update the partition table and xfs file system to fit the current hard drive?latest?d=yIl2AUoC8zA latest?i=1hVZHH7tbT4:Vv5N18tFyHs:F7zBnMy latest?i=1hVZHH7tbT4:Vv5N18tFyHs:V_sGLiP latest?d=qj6IDK7rITs latest?i=1hVZHH7tbT4:Vv5N18tFyHs:gIN9vFw1hVZHH7tbT4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments