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 31 Oct 2014, 10:29
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Factory Reset
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [33 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
Announcer


Joined: 03 Jan 2012
Posts: 156

PostPosted: Wed 14 Aug 2013, 22:49    Post subject:  

The usb stick comes with an empty savefile, and the Factory Reset script.
Last edited by Announcer on Fri 23 Aug 2013, 05:56; edited 1 time in total
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Wed 14 Aug 2013, 23:13    Post subject:  

This would be an interesting way to add a "service pack" to a puppy - apply the contents of a new FR.sfs file, click factory reset, and the new puppy is fresh and ready to go...
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8394

PostPosted: Thu 15 Aug 2013, 06:46    Post subject:  

Hmmm.. the delete the save at boot and start over seems less hairy to me.... recent puppies pretty much set themselves up.

Actually my original 'persue the sfs approach' suggestion still stands.
In my case i could rename the first boot save so its loaded every time underneath the rw layer... Bad save...delete it and the first save takes over. The save is not mounted so easy to do.
But since the save is created every shutdown it does not 'break' overtime and choosing to not save avoids any messed up sessions so keeping a factory reset would be a little over cautious.

In other words look at the system you are dealing with...adding another pack to a playing card tower system may not be the best way to go. Ask yourself WHY you are making a recovery system and look at ways of making it less fragile.

The aim was not to hyjack but to provide hopefully beneficial discussion

regards

mike
Back to top
View user's profile Send private message 
sunburnt


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

PostPosted: Thu 15 Aug 2013, 12:41    Post subject:  

Test gzipping a 512 MB Save file took several minutes to do.
And it took about a half a minute to ungzip it. WAY too long.
I don`t remember it being that long, but it`d been awhile.

"Wipe and restore" has some merit it seems.

Not to hijack your thread Announcer, but a Save dir. is still a better idea.
But... Your "wipe and restore" setup still applies to it as well...
.
Back to top
View user's profile Send private message 
Announcer


Joined: 03 Jan 2012
Posts: 156

PostPosted: Thu 15 Aug 2013, 17:27    Post subject:  

greengeek wrote:
This would be an interesting way to add a "service pack" to a puppy - apply the contents of a new FR.sfs file, click factory reset, and the new puppy is fresh and ready to go...

But would that improve the upgrade experience?

mikeb wrote:
Actually my original 'persue the sfs approach' suggestion still stands...

The aim was not to hyjack but to provide hopefully beneficial discussion

Have fun. The other 99.99% of us will continue to use savefiles while you save to your sfs. But it's a free country. (Used to be, anyway.)

sunburnt wrote:
"Wipe and restore" has some merit it seems.

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


Joined: 23 Nov 2006
Posts: 8394

PostPosted: Thu 15 Aug 2013, 18:57    Post subject:  

Quote:
Have fun. The other 99.99% of us will continue to use savefiles while you save to your sfs.


I will thanks since is solid and reliable and I don't have to think of ways of fixing it. Works on Slax too. Being in a minority does not necessarily mean suffering in some way Very Happy

Thanks for the friendly banter

mike

ps I promise not to mention my save folder option......
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3387
Location: Oregon

PostPosted: Thu 15 Aug 2013, 22:17    Post subject:  

In my case, I use a utility called HotBackup.
After the backup of the pupsave file, I rename those backups adding "first,Second,Third,etc in the appropriate place.
And since HotBackup includes the backup date as part of the name, I know which is which.
After, I use a utility I wrote that restores the backup to the original directory.
On a reboot, I then have two pupsave files to choose from and just choose the restored backup and delete the other pupsave.
Of course, one could also just add a ".2fs, 3fs, or 4fs extension renaming the backup and use it unaltered with the backup date as part of the filename.
It would be easy to see just when the backup being used had been made.
Back to top
View user's profile Send private message 
sunburnt


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

PostPosted: Thu 15 Aug 2013, 23:33    Post subject:  

8-bit; But doesn`t it take a few minutes to make each backup?

mikeb; You have a "save folder option", instead of a "Save file". You cretin! That`s my idea!
It doesn`t take long to realize a folder`s better than an image file, more reliable. Wink
But as image files go, a Squash file being R-O can`t be corrupted like a R-W ext3 file.
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3387
Location: Oregon

PostPosted: Fri 16 Aug 2013, 03:55    Post subject:  

If one created an SFS file from their pupsave file and mounted it after booting with "pfix=ram" any changes to existing files would not be done.
Puppy loads the linux kernel, the pupsave file then gets loaded as per instructions in the initrd.gz file. And then the Puppy SFS file is loaded.
This order of loading to me means that if a file exists, it is not overwritten by a later load of the same file.

Of course with a rewrite of the initrd.gz file, one could modify the way puppy loads so that a converted to SFS pupsave file loaded first and then the main Puppy SFS file loaded.

One thing that bothers me about a Factory reset file or folder is that in recovering from a corrupted pupsave load, the files causing the corruption would still be there as part of the user data and saved on shutdown or reboot with the result of the pupsave still being corrupted.
Back to top
View user's profile Send private message 
sunburnt


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

PostPosted: Fri 16 Aug 2013, 04:30    Post subject:  

8-bit; You can "append to a Squash file. So... You can write to it.
The folks who have used this have a button or control over "save" or "don`t save".
Where as my frugal live Save file is always available ( corruptible ).
And a USB boot, auto. saves at shutdown, and has timed saves too.

From my work on LanPuppy I found the Save file must load first.

If the Save file is wiped clean and restored to a "first boot condition", what corruption would there be left?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8394

PostPosted: Fri 16 Aug 2013, 06:42    Post subject:  

@Announcer
Actually your proposed system willl probably work fine assuming someone techie makes the initial files. I was questioning that instead of using your obvious abilities to provide a fix for a common (check the forum) problem of save file corruption perhaps you should divert your attention towards looking at better ways of saving on puppy...one idea does involve sfs since an archive is very robust ( who has ever has to replace the pup_xxx.sfs file?) but there are others. Dive into the core of puppy...remove the spaghetti and you never know what you might come up with. This forum is about the exchange of ideas.

@sunburnt...
Quote:
You have a "save folder option", instead of a "Save file". You cretin! That`s my idea!

Hmm name calling lol.. funky bunny is the expression you are looking for.
Well actually slax gave me the idea as it does more or less that. By using a save folder you get the save partition idea but in a neater way. Advantage is you have oodles of room without those precarious 2GB save files I see in use. I use it for all our regular systems apart from on the netbook as it has plenty of ram and I can turn off the hard drive once booted using sfs. (with tidiness and sfs for apps saves run in at 30-60mb uncompressed) As for copyright I did this 3 years ago ...ha! Ooo and for fun have an pupsave like file used like a full install...ie no union...think of emulators...so low ram etc but can run from ntfs/fat. I left multisession alone as thats quite neat a it is. Oh yes I scrapped the usbflash mode 13... seemed silly to me and sfs suits it well.

On a general note remember puppy loads sfs files backwards normally (yeah sorted that too Very Happy) so any additional sfs are 'underneath' the main one ...a pain in the neck at times so that's why I changed it... but it may affect any proposed 'recovery' system using the standard sfs loaders.

don't let the bedbugs bite

Mike
Back to top
View user's profile Send private message 
sunburnt


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

PostPosted: Fri 16 Aug 2013, 16:09    Post subject:  

mikeb; Back atcha funky bunny. Laughing

announcer; Suggestion, perhaps your app. could bring the dir. idea to Puppy.
Have an option in it to setup a Save dir. instead of a Save file.
And an option to transfer the contents of an existing Save file to a new Save dir.
A check if there`s a Linux partition to use would be needed of course.
Then your "Factory Restore" could do it`s work on either type of Save setup.

Wacha think? Am I being to optimistic, or have I got your interest?
Many I`ve talked to think the dir. idea would be an advancement for Puppy.
.
Back to top
View user's profile Send private message 
Announcer


Joined: 03 Jan 2012
Posts: 156

PostPosted: Wed 21 Aug 2013, 08:16    Post subject:  

I've updated the first post with a slightly revised version of the script, which now has a "Cancel" option at start and a few failsafe checks to make sure everything's ok before it does anything.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Wed 21 Aug 2013, 14:28    Post subject:  

Is this only intended for usb stick based puppies? Is there a reason it could not be used for a puppy installed frugally on HDD?
Back to top
View user's profile Send private message 
Announcer


Joined: 03 Jan 2012
Posts: 156

PostPosted: Wed 21 Aug 2013, 16:46    Post subject:  

It might work fine with frugal HDD installs. But for my purposes, it's for usb sticks. (I haven't tested it with frugal HDD installs.)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [33 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0813s ][ Queries: 12 (0.0051s) ][ GZIP on ]