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 Wed 22 Nov 2017, 07:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
savefile2dir 1.6 - Convert savefile to savefolder
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [30 Posts]   Goto page: Previous 1, 2
Author Message
Griot


Joined: 12 Sep 2014
Posts: 131
Location: Serbia

PostPosted: Mon 22 Jun 2015, 15:49    Post subject:  

Yes I did. Smile Slacko 5.7 came before save2dir, dumba$$ me! Confused
I'm not sure what to do next, though.
I guess loading of 'ydrv_slacko_5.7.sfs' should do the trick?
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 915

PostPosted: Mon 22 Jun 2015, 15:54    Post subject:  

gyro,

Code:
FSTYP="`df --output=fstype \"$imgFile\" | tail -1`"


Another way to get the filesystem type
Code:
file "$imgFile"|awk '{print $5}'


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

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

PostPosted: Mon 22 Jun 2015, 16:10    Post subject:  

@Griot,

If the ydrv sfs file is in the frugal install directory, then rebooting should automatically load it.

I assume that you have followed these instructions:
1) Download both files.
2) Rename current 'initrd.gz' as a backup.
3) Move both downloaded files into directory containing the frugal install.
4) Reboot.

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

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

PostPosted: Mon 22 Jun 2015, 16:16    Post subject:  

@seaside,
Thanks, but I've already settled on :
Code:
stat -f -c %T "${imgFile}"
gyro
Back to top
View user's profile Send private message 
gyro

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

PostPosted: Mon 22 Jun 2015, 16:30    Post subject: update to savefile2dir 1.5 - runs on older puppies  

I have attached savefile2dir-1.5.pet.
This an update for older puppies.
savefile2dir-1.4 depends on a relatively new feature of the "df" command to find the filesystem type that the savefile is stored upon.
This version uses the "stat" command, which works in my old dpup squeeze.

If savefile2dir-1.4 works for you, then there is no value in downloading this one.

gyro
savefile2dir-1.5.pet
Description  ordinary .pet file
pet

 Download 
Filename  savefile2dir-1.5.pet 
Filesize  3.84 KB 
Downloaded  193 Time(s) 
Back to top
View user's profile Send private message 
Griot


Joined: 12 Sep 2014
Posts: 131
Location: Serbia

PostPosted: Mon 22 Jun 2015, 16:42    Post subject:  

gyro wrote:
@Griot,

If the ydrv sfs file is in the frugal install directory, then rebooting should automatically load it.

I assume that you have followed these instructions:
1) Download both files.
2) Rename current 'initrd.gz' as a backup.
3) Move both downloaded files into directory containing the frugal install.
4) Reboot.

gyro


Successfully resolved! Thank you very much! Very Happy
Back to top
View user's profile Send private message 
corvus


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Tue 30 Jun 2015, 17:10    Post subject: savefile2dir v.1.4 & v.1.5
Subject description: Precise doesn't recognize save folder
 

Hi to all I have the same problem of Griot:
Griot wrote:

EDIT: Nope, it doesn't recognize newly created savedir.
Rebooted twice after creating savedir (created from mounted savefile, look for term-out above). Jumped off to RAM, renamed savefile, no luck.
Then I deleted savedir (in RAM mode), tried the same procedure from the beginning and this time savefile iz renamed to .bak and savedir is created but Slacko doesn't recognize it.

Any usefull commands/logs to look for?
Thanks.


On precise 5.7.1 Frugal installation, after the creation of save folder it doesn't recognize newly created savedir. Sad
My question is exists any "save folder" facility for precise like for slacko

Any help would be appreciated. Smile

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
Griot


Joined: 12 Sep 2014
Posts: 131
Location: Serbia

PostPosted: Tue 30 Jun 2015, 17:43    Post subject:  

Hi, corvus.

Here, read this post carefully and follow mavrothal's instructions.
http://www.murga-linux.com/puppy/viewtopic.php?p=803258#803258
Keep an eye on kernel versions - modern (with PAE ability) and retro
(non PAE).
You can post your question there eventually.
Cheers!
Back to top
View user's profile Send private message 
corvus


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Wed 01 Jul 2015, 17:49    Post subject: Precise doesn't recognize save folder
Subject description: Now it does
 

Great Griot,

thanks for the tip now everything works fine Very Happy
although I had some trouble with /dev/null I hope not to have anymore.

Regards Smile

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
corvus


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Tue 07 Jul 2015, 05:47    Post subject:  Savefile2dir 1.5 with precise 5.7.1
Subject description: Personal experience
 

Hello guys. This is my experience using savefile2dir v.1.5 with precise 5.7.1 frugal installed on an ext4 partition:
/dev/null it's corrupt Confused I had to replace it with that present in the tahrpup installation, luckily I had there.
If I try to transform a savefile, already existing, the system does not turn off but restarts.
I followed the advice of radky in the following post:

http://murga-linux.com/puppy/viewtopic.php?p=850880#850880

I created a save folder from scratch and right from beginning has presented the problem of /dev/null, solved as before, regarding shutdown at beginning seemed to go all right but arrived at a certain point the issue has come back. Sad
I lost days to figure out if it was due to some incompatible package but the feeling is that the defect occurs above a certain size of savefolder but I'm not sure because sometimes the problem occurred almost immediately.
Unfortunately the resolution of the issue is outside my sphere of knowledge!
What a pity! it would have been very useful to be able to use a savefolder instead of the savefile. Crying or Very sad
However a BIG THANKS to everyone who participated in this project. Smile

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
gyro

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

PostPosted: Mon 13 Jul 2015, 07:29    Post subject:  

I have attached savefile2dir-1.6.pet.
This an update for older puppies, that tries to deal with any "/dev/null" problem.
Unlike Tahrpup 6 and other newer puppies, some older puppies seem to copy all of "/dev" to the savefile, including "/dev/null".
It could be that the "cp" command has difficulty with "/dev/null", so this version uses "tar" to do the copying.

Note: On a freshly created savefile, "tar" is likely to produce many warning messages about time stamps being in the future. These can be ignored.
It also ignores any files that are sockets, but this is not a problem.

gyro
savefile2dir-1.6.pet
Description  ordinary .pet file
pet

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

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

PostPosted: Mon 13 Jul 2015, 07:43    Post subject:  

@corvus,
Sorry things haven't worked for you.
Unfortunately, I have not seen either of your problems using savefolder and savefile2dir on a number of puppies. But I admit I've never tried it on 'precise'.
gyro
Back to top
View user's profile Send private message 
corvus


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Wed 15 Jul 2015, 14:25    Post subject: precise savefolder  

Hi gyro,
Having solved the issue of /dev/null is already a step forward.
I'm sure that the day in which who uses precise, as mè, can get rid of the claustrophobic savefile will be a great day.
Thanks for your time and commitment to this project. Smile

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
gyro

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

PostPosted: Thu 16 Jul 2015, 12:24    Post subject:  

@corvus,
It's difficult to see how the shutdown problem could be related directly to "savefile2dir", it does not change any thing to do with shutdown. It only converts the contents of a savefile into a directory.

It's most likely that somehow you ended up with an "rc.shutdown" that does not support savefolder. This is more likely to do with the back porting of the savefolder facility to precise.
Or, the "rc.shutdown" from the back port has been clobbered by one from somewhere else.
Was there an old "rc.shutdown" in the savefile?

Note: "rc.shutdown" is one of the puppy files that needs to be modified to support savefolder.

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


Joined: 12 Jun 2015
Posts: 126
Location: In the peninsula shaped like a boot.

PostPosted: Fri 17 Jul 2015, 09:43    Post subject:  

Hi gyro,

gyro wrote:
Was there an old "rc.shutdown" in the savefile?

I worked around your suggestion. I copied the rc.shutdown file of tahrpup (which exploits savefolder) in precise, just an experiment, but unfortunately it did not work. Crying or Very sad
The strange thing is that the first shutdown works fine the subsequent fail.

gyro wrote:
Note: "rc.shutdown" is one of the puppy files that needs to be modified to support savefolder.

Unfortunately it's outside my sphere of knowledge! Sad
My regards and thanks. Smile

corvus

_________________
Hoc unum scio, me nihil scire. Socrate
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [30 Posts]   Goto page: Previous 1, 2
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.0549s ][ Queries: 14 (0.0055s) ][ GZIP on ]