I was recently hit by the AWS issues in Ireland, lost a volume, and need to attempt a recovery..
I've attached the problem volume to /dev/sdf -
I'm completely new to this, not entirely sure what's going on, but this doesn't look promising>>
> sudo fsck /dev/sdf fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) fsck.ext4: Superblock invalid, trying backup blocks... fsck.ext4: Bad magic number in super-block while trying to open /dev/sdf The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193
When running fdisk -l /dev/sdf... I recieve>>
sudo fdisk -l /dev/sdf Disk /dev/sdf: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 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: 0x00000000 Disk /dev/sdf doesn't contain a valid partition table
further information After running:
> sudo mke2fs -n /dev/sdf Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Can someone provide help, not much experience with running fsck.
Thanks in advance!
EDIT >> Found the answer:
> sudo mount -t xfs -o /dev/sdf /mnt/test-ebs XFS: Filesystem sdk has duplicate UUID - can't mount
> sudo mount -t xfs -o nouuid /dev/sdf /mnt/test-ebs mount: Structure needs cleaning
> sudo xfs_repair -L /dev/sdf .. . connected inode 9625284, moving to lost+found disconnected inode 9625285, moving to lost+found disconnected inode 9625286, moving to lost+found disconnected inode 9625287, moving to lost+found disconnected inode 17957583, moving to lost+found disconnected dir inode 17977810, moving to lost+found disconnected dir inode 17977835, moving to lost+found Phase 7 - verify and correct link counts... resetting inode 368465 nlinks from 2 to 4 resetting inode 17977810 nlinks from 0 to 2 ..
Then I ran this again sudo mount -t xfs -o nouuid /dev/sdf /mnt/test-ebs
All Working now!
Cheers