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 Thu 20 Nov 2014, 22:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
savefile2dir 1.2 - Convert savefile to savefolder
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
gyro

Joined: 28 Oct 2008
Posts: 513
Location: Brisbane, Australia

PostPosted: Sat 15 Nov 2014, 10:24    Post subject:  savefile2dir 1.2 - Convert savefile to savefolder
Subject description: Now supports converting a mounted savefile
 

Edit:
Please see post below announcing savefile2dir 1.2.

The following refers mostly to savefile2dir 1.1:
The attached pet installs a console script 'savefile2dir'.
This script converts a savefile into a savefolder.
It is useful when you have a puppy that supports the savefolder facility, but you already have a savefile containing lots of stuff you don't want to just throw away.

When the script is executed it does the following:
1) Checks that the savefile meets the criteria for a savefolder.
2) Does an fsck of the savefile, to ensure it's integrity.
3) Mounts the savefile.
4) Creates the directory for the savefolder.
5) Copies the contents of the savefile into the savefolder.
6) Renames the savefile by prepending an 'X' to it's name.
Once it is finished the target puppy is ready to be rebooted to use the savefolder.

Running 'savefile2dir':
'savefile2dir' only converts unmounted savefiles. If it is installed in a normal frugal install, and then run, it will not convert the mounted savefile of the current running puppy.
So, install it and run it in a different puppy from the target puppy.
Or install and run it in pupmode=5, (i.e. 'pfix=ram', or first boot).

Note1: 'savefile2dir' does not add the savefolder facility to the target puppy.
Note2: 'savefile2dir' does not require the savefolder facility to be present in the puppy on which it is executed.

gyro
savefile2dir-1.1.pet
Description  savefile2dir install pet
pet

 Download 
Filename  savefile2dir-1.1.pet 
Filesize  4.06 KB 
Downloaded  21 Time(s) 

Last edited by gyro on Today, at 06:02; edited 3 times in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 513
Location: Brisbane, Australia

PostPosted: Sat 15 Nov 2014, 10:35    Post subject: running 'savefile2dir' in pupmode=5  

1) Download 'savefile2dir-1.1.pet' and move it to the root of the partition containing the target savefile.
2) Boot a puppy in pupmode=5, ('pfix=ram'). This can be the target puppy. Don't bother changing anything in the first setup screen.
3) Mount the partition containing the savefile.
4) Click on 'savefile2dir-1.1.pet' to install it.
5) Open a console and enter a command like the following:
Code:
savefile2dir /mnt/sda3/tahr/tahrsave.3fs
6) Unmount the partition containing the new savefolder.
7) Reboot, but choose not to "save". Your previously saved data is not part of this session.
The next normal boot of the target puppy should find the savefolder and all the data previously saved in the old savefile.

gyro

Last edited by gyro on Sun 16 Nov 2014, 05:39; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 513
Location: Brisbane, Australia

PostPosted: Sun 16 Nov 2014, 05:31    Post subject: savefile2dir - sfs file  

I've attached 'savefile2dir-1.1.sfs here because I find it very useful to use a command like:
Code:
unsquashfs -f -d ./ydrv-tahr-sfs/ /mnt/home/savefile2dir-1.1.sfs
to merge it's files into another pet or sfs directory. The content is the same as the pet.

gyro
savefile2dir-1.1.sfs.gz
Description  Just "gunzip" it and you'll have an ordinary sfs file.
gz

 Download 
Filename  savefile2dir-1.1.sfs.gz 
Filesize  4.11 KB 
Downloaded  9 Time(s) 
Back to top
View user's profile Send private message 
rek769

Joined: 15 Jul 2010
Posts: 38

PostPosted: Sun 16 Nov 2014, 10:58    Post subject: Could this be used...  

...to deploy an identical encrypted savefile onto several machines and then change the password of each savefile to something unique?

If possible, how could it be done?

Thanks
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 513
Location: Brisbane, Australia

PostPosted: Sun 16 Nov 2014, 11:32    Post subject: Re: Could this be used...  

rek769 wrote:
...to deploy an identical encrypted savefile onto several machines and then change the password of each savefile to something unique?

If possible, how could it be done?

Thanks
No idea.
It's certain that this utility has nothing to contribute to such a scenario.
gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 513
Location: Brisbane, Australia

PostPosted: Today, at 05:56    Post subject: Announcing savefile2dir 1.2
Subject description: now supporting mounted savefile
 

This represents a significant rewrite of the code.

Main change is that it now supports converting a currently mounted savefile. So you can use it without booting 'pfix=ram'. But of course it cannot do an 'fsck' of the savefile, or rename it.
If the savefile is not currently mounted, it is checked by 'fsck' before it is mounted. The savefile also gets renamed by appending ".bak", so it will not be found by the next normal boot of the target puppy.

Both '/etc/.XLOADED' and '/etc/rc.d/BOOTCONFIG' are modified to improve the smoothness of the next normal boot.

Just like the previous version, it does not require 'savefolder' to be implemented in the host puppy. It should run on just about any puppy.

I have attached both a .pet and a .sfs.

gyro
savefile2dir-1.2.sfs.gz
Description  Just 'gunzip' it to get the .sfs file
gz

 Download 
Filename  savefile2dir-1.2.sfs.gz 
Filesize  3.83 KB 
Downloaded  2 Time(s) 
savefile2dir-1.2.pet
Description  A normal pet file
pet

 Download 
Filename  savefile2dir-1.2.pet 
Filesize  3.89 KB 
Downloaded  4 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.0602s ][ Queries: 12 (0.0079s) ][ GZIP on ]