How to repair a corrupted encrypted pupsave file
Posted: Wed 13 Feb 2013, 18:37
These are my notes that I thought I would share. This still works with Precise 5.4.3.
## Access encrypted save file
## Note: you need to have a free loop device, you can't use them all up with
## mounted SFS files and expect this to work.
## Find a free loop device
#losetup-FULL -f
/dev/loop2
## Connect the loop device to the pupsave file
#losetup-FULL -e aes /dev/loop2 /mnt/sda1/downloads/lupusave_crypta-rob_2.2fs
Password:
## repair ext2 system on pupsave file ... before mounting...
# e2fsck /dev/loop2
## If you wish to mount and look at the files...
# mkdir /tmp/encrypt
# mount -t ext2 /dev/loop2 /tmp/encrypt
## unmount the mounted save file
#umount /tmp/encrypt
## unmount (release?) loop device
#losetup-FULL -d /dev/loop2
## Note: when I booted to ram without a pupsave file this process for fixing
## a save file did not work. Some issue with the LOOP devices. So you need to boot
## to a puppy with a save file and then run the repair on the save file that is not
## being currently used.
I hope this helps,
Rdog
## Access encrypted save file
## Note: you need to have a free loop device, you can't use them all up with
## mounted SFS files and expect this to work.
## Find a free loop device
#losetup-FULL -f
/dev/loop2
## Connect the loop device to the pupsave file
#losetup-FULL -e aes /dev/loop2 /mnt/sda1/downloads/lupusave_crypta-rob_2.2fs
Password:
## repair ext2 system on pupsave file ... before mounting...
# e2fsck /dev/loop2
## If you wish to mount and look at the files...
# mkdir /tmp/encrypt
# mount -t ext2 /dev/loop2 /tmp/encrypt
## unmount the mounted save file
#umount /tmp/encrypt
## unmount (release?) loop device
#losetup-FULL -d /dev/loop2
## Note: when I booted to ram without a pupsave file this process for fixing
## a save file did not work. Some issue with the LOOP devices. So you need to boot
## to a puppy with a save file and then run the repair on the save file that is not
## being currently used.
I hope this helps,
Rdog