.. _recovery: Recovery ******** Manually ============ #. Create a new volume of the desired size in AWS and attach to an instance. * You can also check for ``x-amz-meta-disc-size`` metadata attached to the S3 object to get the estimated size of unpacked files. * The meta tag ``snap-volume-size`` also stores the size of volume from which the snapshot was created. #. Download the snapshot from S3 to the instance. #. Partition the disk * ``printf "label: dos\ntype=83\n" | sudo sfdisk `` if the snapshot was not bootable. * ``printf "label: dos\ntype=83, bootable\n" | sudo sfdisk `` if the snapshot was bootable. * ``# partprobe `` to let know the kernel of new partition table. #. Format the disk * ``# mke2fs -t ext4 `` #. Mount the partition * ``# mount /mnt/snapshot`` #. Untar the downloaded file * ``# tar --extract --verbose --file -C /mnt/snapshot --preserve`` #. Update the fstab #. Check the fstab from ``/mnt/snapshot/etc/fstab`` #. If disk was mounted from ``Label`` * Update the label of new partition ``# e2label