xfs - Can't have a partition outside the disk
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:
Quote:
Quote:
|
There are several possibilities.
You can attempt automatic repair with TestDisk. Or do it manually with fdisk. Other options include GParted and Boot-Repair. |
There is also a partition repair that hasn't been updated in a long time but may still work.
Ranish. I'd make a dd copy of the drive before I started any repair. |
Quote:
It's fairly straightforward to make an empty file of size 63488*512 and use dmsetup to create a virtual drive appending that file to the end of /dev/sdd2. That virtual drive could then be checked, mounted, and even shrunk to fit in the available space on the physical disk. The problem here with that is that xfs probably won't let you mount the drive without first running xfsrepair, that repair operation has the potential to cause unrecoverable data loss, and an xfs filesystem cannot be shrunk in place. Should you want to try it anyway: Code:
truncate --size=$((63488*512)) /var/tmp/padfile To unwind: Code:
dmsetup remove padded |
All times are GMT -5. The time now is 12:26 AM. |