Re: Urgent XFS Recovery
2011/7/4 yazicivo <email@example.com>:
> I have an XFS partition, which is
I have never used XFS, but it could be helpfull!
If you use Lilo, then look for mbr copy.
If you are not using Lilo, testdisk could be the appropriated tool.
If nothing help, then you might use a hex editor as shawn mentioned.
I am assuming that you are playing on a copy of your disk, are you?
> 1) Mistakenly quick formatted as FAT16.
> 2) At first, I couldn't see in "fdisk -l" that it is set to FAT16, instead
> of Linux. Hence tried to fix it with xfs_recover. xfs_recover returned 0,
> and mount operation succeeded; but mounted fs size appeared as 20GB (despite
> it is 350GB) and almost every the file is missing.
> 3) Later set the type of /dev/sda1 (the only partition in /dev/sda) to
> Linux, re-run xfs_recover, but nothing changed.
> I open the system with Knoppix, and below are the details of the current
> status. I need urgent help to recover the files. I will be really, really
> appreciated for any help!
You have testdisk on Knoppix, and as somebody said the change could
had happened on partitions table only.
> # fdisk -l
> Disk /dev/sda: 320.1 GB, 320072933376 bytes
> 255 heads, 63 sectors/track, 38913 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x447c435f
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 38913 312568641 83 Linux
> # mount | grep /dev/sda1
> /dev/sda1 on /media/sda1 type xfs (rw,relatime,attr2,noquota)
> # df -h | grep /dev/sda1
> /dev/sda1 19G 4,2G 15G 23% /media/sda1