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 Mon 27 Apr 2015, 14:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
savefile2dir 1.4 - Convert savefile to savefolder
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
gyro

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

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

Edit:
Please see post below announcing savefile2dir 1.4.
This is now the preferred version.

Edit:
Please see post below announcing savefile2dir 1.3.
Version 1.1 has been withdrawn, please use either 'savefile2dir-1.3.pet' or 'savefile2dir-1.3.sfs.gz', below.

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 on an unmounted savefile, 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 appending '.bak' to it's name.
Once it is finished the target puppy is ready to be rebooted to use the savefolder.

Although savefile2dir now supports converting a mounted savefile, it is preferred that it be used to convert unmounted savefiles. Preferably from a puppy installation other than the target puppy.

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

Last edited by gyro on Fri 24 Apr 2015, 11:19; edited 8 times in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 710
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: 710
Location: Brisbane, Australia

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

Edit:
Version 1.1 has been withdrawn. Please use 'savefile2dir-1.2.sfs.gz', below.

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

Last edited by gyro on Fri 21 Nov 2014, 06:02; edited 2 times in total
Back to top
View user's profile Send private message 
rek769


Joined: 15 Jul 2010
Posts: 45

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: 710
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: 710
Location: Brisbane, Australia

PostPosted: Thu 20 Nov 2014, 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  103 Time(s) 
savefile2dir-1.2.pet
Description  A normal pet file
pet

 Download 
Filename  savefile2dir-1.2.pet 
Filesize  3.89 KB 
Downloaded  113 Time(s) 
Back to top
View user's profile Send private message 
gyro

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

PostPosted: Sat 29 Nov 2014, 10:31    Post subject: Announcing savefile2dir 1.3  

This is a small fix, now supports "/root/.XLOADED" as well as "/etc/.XLOADED".

gyro
savefile2dir-1.3.sfs.gz
Description  Just 'gunzip' it to produce sfs file
gz

 Download 
Filename  savefile2dir-1.3.sfs.gz 
Filesize  3.85 KB 
Downloaded  105 Time(s) 
savefile2dir-1.3.pet
Description  Ordinary .pet file
pet

 Download 
Filename  savefile2dir-1.3.pet 
Filesize  3.91 KB 
Downloaded  142 Time(s) 
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5047
Location: Arizona, U.S.A.

PostPosted: Sun 30 Nov 2014, 23:54    Post subject:  

Hi gyro; Don`t think Ive ever talked to you before.
I was not aware any Puppy version supported Save folders.
I suggested this many years ago to Barry and others, but little interest.

I think Barry never used it because it takes longer to do a Save folder fsck.
Where as a Save file or partition is no bigger than the actual Save space.
.
Back to top
View user's profile Send private message 
gyro

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

PostPosted: Mon 01 Dec 2014, 11:53    Post subject:  

sunburnt wrote:
I was not aware any Puppy version supported Save folders.
It's only been developed this year, http://murga-linux.com/puppy/viewtopic.php?t=93559 and http://murga-linux.com/puppy/viewtopic.php?t=95922.
The first version is currently in woof-ce and hence native in TahrPup 6.0 CE.
The newer implementation using symbolic links, is available in patching mechanisms for a number of puppies.

Edit: I think "FatDog" also has the facility.

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


Joined: 11 Oct 2009
Posts: 5989
Location: Charleston S.C. USA

PostPosted: Thu 23 Apr 2015, 02:26    Post subject:  

The save folder (directory) has to be put on a partition that is formatted with a Linux format. (ext 2, 3 ,or 4)
_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
gyro

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

PostPosted: Fri 24 Apr 2015, 10:58    Post subject: Updated to savefile2dir 1.4  

This script checks the file-system containing the source savefile.
If it's not a Linux file-system then it aborts with an error message.
If it is a Linux file-system then it creates a savefolder in the same directory.

If the created savefolder is moved, make sure the destination partition contains a Linux file-system, (ext2|ext3|ext4|reiserfs|minix|f2fs|tmpfs).

I have attached a pet and sfs of savefile2dir 1.4.
This version contains a more reliable method of determining the file-system type. (Uses "df --output=fstype FILE | tail -1")

gyro
savefile2dir-1.4.sfs.gz
Description  gunzip file to produce sfs file
gz

 Download 
Filename  savefile2dir-1.4.sfs.gz 
Filesize  3.79 KB 
Downloaded  5 Time(s) 
savefile2dir-1.4.pet
Description  normal .pet file
pet

 Download 
Filename  savefile2dir-1.4.pet 
Filesize  3.81 KB 
Downloaded  9 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 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.0717s ][ Queries: 12 (0.0045s) ][ GZIP on ]