Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Aug 2014, 03:54
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to repair a corrupted encrypted pupsave file
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
rdog

Joined: 18 Oct 2010
Posts: 19
Location: Quesnel, BC, Canada

PostPosted: Wed 13 Feb 2013, 14:37    Post subject:  How to repair a corrupted encrypted pupsave file  

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
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11017
Location: Arizona USA

PostPosted: Wed 13 Feb 2013, 21:20    Post subject:  

Apparently it is the filesystem, not the encrypted file it contains, that is somehow corrupted. Is that correct?
Back to top
View user's profile Send private message 
rdog

Joined: 18 Oct 2010
Posts: 19
Location: Quesnel, BC, Canada

PostPosted: Thu 14 Feb 2013, 19:51    Post subject:  

Flash wrote:
Apparently it is the filesystem, not the encrypted file it contains, that is somehow corrupted. Is that correct?


The pupsave file contains a filesystem that is compressed using squashfs and then layered using aufs with other filesystems which are also compressed and saved in files using squashfs.

So because the pupsave file is "a file" and "a filesystem" there are at least 2 filesystems that may be corrupted and require repair.

The filesystem within the pupsave file is what often requires repair when personal files become damaged or the pupsave file can no longer be accessed. The instructions in my first post are about repairing this filesystem which is contained within the pupsave file.

For example the filesystem in the pupsave file is of type ext2 in this case, where as the filesystem of where the pupsave file is saved is fat32 (on a usb key) but could also be ext4 on my hard drive etc..

Take Care,
Rdog
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0432s ][ Queries: 12 (0.0034s) ][ GZIP on ]