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 Sun 21 Dec 2014, 14:49
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 Posts_count  
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: 11181
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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