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 01 Sep 2014, 09:44
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Multiple save files for frugal (solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
mini-jaguar

Joined: 13 Nov 2008
Posts: 462

PostPosted: Sun 09 Dec 2012, 15:47    Post subject:  Multiple save files for frugal (solved)
Subject description: Would like Grub commands for loading
 

It seems to me that it would be possible to have several save files, then simply load different ones by putting appropriate arguments in each grub entry for each save file.

I am having a hard time finding info on this though, in particular as to what arguments I would need to put in the grub.

Last edited by mini-jaguar on Tue 01 Jan 2013, 07:18; edited 1 time in total
Back to top
View user's profile Send private message 
sunburnt


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

PostPosted: Mon 10 Dec 2012, 20:59    Post subject:  

Hi mini-jaguar; Grub has nothing to do with loading the save file.
It`s mounted in the boot script "init" ( I believe...).
You can`t see it in the running Puppy, you must extract initrd.gz to find it.
Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1470
Location: UK

PostPosted: Tue 11 Dec 2012, 07:26    Post subject:  

Hello mini-jaguar

What Puppy versions are we talking about ?

And are we talking about several savefiles for the same Puppy version in a single subdirectory ?

Just trying to get a clearer picture of what you are trying to do.

CatDude
.

_________________

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


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 11 Dec 2012, 08:10    Post subject:  

Hi.

As far as I know, it's not possible to put information on which save file to use at boot up into a grub boot menu entry.

If you running your puppy using a save file, open the directory wherein the save file is stored and create an empty file.

Example:

Let's assume your save file is named MyPuppysave-XXX.2fs then name the empty file to MyPuppysave-NoSave.2fs.

On next boot you can choose then which save file to use (puppy thinks then there are two of them). This action is executed far behind grub or grub4dos.

To create a new one, boot puppy into RAM and don't use a save file. At shutdown just create a new one ---> do it this way for each new save file you want to create and use.

That's my knowledge on save files.

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1470
Location: UK

PostPosted: Tue 11 Dec 2012, 09:25    Post subject:  

Hi

RSH wrote:
As far as I know, it's not possible to put information on which save file to use at boot up into a grub boot menu entry.

Oh yes it is ! (depending on what Puppy we are talking about)

Here is a snippet from this page: BootParametersPuppy

Quote:
Psave
Psave allows a user to specify which PupSave files to use. This allows the pupsave selection menu to be skipped (shows if more than one savefile is found).


It would be helpful if there was a list of Puppies that support this parameter/argument,
but i am yet to find such a beast.

It would also be a good idea if ALL Puppies supported it. (IMHO)

Just for informational purposes,
here are a few links:


CatDude
.

_________________

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


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 11 Dec 2012, 10:07    Post subject:  

Quote:
Oh yes it is !

Thanks for the information.

Unfortunately it doesn't work on LazY Puppy, and so it might not work also on Lucid.

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 11 Dec 2012, 10:14    Post subject:  

I think I will try this How to get Grub to pick a pupsave file... in 4.3.1?SOLVED, to get this into LazY Puppy.

Thanks for the Links.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

PostPosted: Tue 11 Dec 2012, 22:43    Post subject:  

RSH wrote:
Hi.

As far as I know, it's not possible to put information on which save file to use at boot up into a grub boot menu entry.


OK, this wouldn't be pretty, but think about this -- would it work? Yeah, very clunky, but disk space is cheap these days...

In your menu.lst (note the bold v1,2,3):

title Puppy Linux 528 frugal v1
rootnoverify (hd0,0)
kernel /puppy528v1/vmlinuz pmedia=atahd psubdir=puppy528v1 pfix=noram,fsck
initrd /puppy528v1/initrd.gz

title Puppy Linux 528 frugal v2
rootnoverify (hd0,0)
kernel /puppy528v2/vmlinuz pmedia=atahd psubdir=puppy528v2 pfix=noram,fsck
initrd /puppy528v2/initrd.gz

title Puppy Linux 528 frugal v3
rootnoverify (hd0,0)
kernel /puppy528v3/vmlinuz pmedia=atahd psubdir=puppy528v3 pfix=noram,fsck
initrd /puppy528v3/initrd.gz

So each subfolder would have a duplicate of everything, but would have only 1 save file. I suppose it might be possible to share some of the files, but without actually testing this or the alternative...I couldn't say.

_________________
Add swapfile
Back to top
View user's profile Send private message 
sunburnt


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

PostPosted: Wed 12 Dec 2012, 01:58    Post subject:  

Boot codes are sporadic in different Puppies.

But the boot arguments are not used by grub...
They`re exported to Barry`s boot scripts.
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1290
Location: UK

PostPosted: Wed 12 Dec 2012, 08:58    Post subject:  

mini-jaguar has not come back in 3 days so not sure whether he is pleased with the responses or not. They do seem to be conflicting!

There are 2 possibilities here.

One has been identified by CatDude but relies on a Puppy that recognises the pupsave boot parameter. This probably does not apply to many puppies.

I would also like to say to Sunburn that, while technically correct, to say boot arguments are not used by grub may be confusing to a user.

The boot arguments will be added to the menu.lst file and this is a part of the grub operation. I know they are just passed through but you are adjusting the grub configuration file.

Now to the second possibility. Haven't tried it for a long time but I thought that if, during boot up, Puppy found 2 save files with DIFFERENT names it is supposed to list them and you identify which one to use. This used to work for any Puppy. As I say, I haven't tried it recently but in the mean time nothing I have read has suggested that this option has fallen by the wayside. It is all part of the init coding of course. The problem is creating the save files in the first place. The first one is easy enough but the next time you boot Puppy will use it and not offer the chance to create a second save file. What I would do is:

Run Puppy the first time and create savefile1. When given the option add some characters to make its name unique.

Before running Puppy again rename the savefile1.2fs to savefile1.xxx so it does not get recognised

Run Puppy a second time and create savefile2. Add some different characters this time to make its name different from savefile1.

Before running Puppy again rename savefile1.xxx back to savefile1.2fs

Now when you boot Puppy in future you should get a menu showing savefile1 and savefile2 and you select the one you want.

Edited to correct the extension of the save file

Last edited by ICPUG on Wed 12 Dec 2012, 19:47; edited 1 time in total
Back to top
View user's profile Send private message 
mini-jaguar

Joined: 13 Nov 2008
Posts: 462

PostPosted: Wed 12 Dec 2012, 10:48    Post subject:  

Yes, I am pleased with the responses, however, I will not have much time soon to test the modded initrd.gz file.

Or it can be done simply with the modded menu.lst and saving under different names?

In any case I probably won't try this very soon.
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1290
Location: UK

PostPosted: Wed 12 Dec 2012, 19:59    Post subject:  

If you create a couple of save files under different names you shouldn't have to mod anything, not even menu.lst. Puppy should see two save files there and give you a menu to choose.

If RSH mods the initrd.gz of Lazy Puppy like he says then you would have to specify the psave boot parameter in the menu.lst.

RetroTechGuy's non-pretty method should work too.

Thanks for letting us know you're reading, mini-jaguar.
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

PostPosted: Wed 12 Dec 2012, 20:17    Post subject:  

ICPUG wrote:
If you create a couple of save files under different names you shouldn't have to mod anything, not even menu.lst. Puppy should see two save files there and give you a menu to choose.

If RSH mods the initrd.gz of Lazy Puppy like he says then you would have to specify the psave boot parameter in the menu.lst.

RetroTechGuy's non-pretty method should work too.

Thanks for letting us know you're reading, mini-jaguar.


I actually run multiple save files (a general one, a testing one, a secure one only for banking, etc.), but it doesn't default boot one, if left.

My system does default boot to Puppy 5.28, if left alone -- but then requires user intervention to choose a file. I may try the not-pretty for my system...

_________________
Add swapfile
Back to top
View user's profile Send private message 
mini-jaguar

Joined: 13 Nov 2008
Posts: 462

PostPosted: Sat 29 Dec 2012, 14:03    Post subject:  

ICPUG wrote:
If you create a couple of save files under different names you shouldn't have to mod anything, not even menu.lst. Puppy should see two save files there and give you a menu to choose.
This is the simplest solution, even though you go through two screens: the one from the menu.lst then the one which asks which file you want to load, provided there is more than one.

Just one more question, once there is already one pupsave file, is there any other way to boot Puppy without loading the save file, other than putting a menu entry for that purpose?
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

PostPosted: Sat 29 Dec 2012, 14:18    Post subject:  

mini-jaguar wrote:
ICPUG wrote:
If you create a couple of save files under different names you shouldn't have to mod anything, not even menu.lst. Puppy should see two save files there and give you a menu to choose.
This is the simplest solution, even though you go through two screens: the one from the menu.lst then the one which asks which file you want to load, provided there is more than one.

Just one more question, once there is already one pupsave file, is there any other way to boot Puppy without loading the save file, other than putting a menu entry for that purpose?


Create 2 save files, and you will be prompted for a savefile.

Select "0" for load no savefile...

_________________
Add swapfile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0870s ][ Queries: 12 (0.0042s) ][ GZIP on ]