Multiple save files for frugal (solved)
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
Multiple save files for frugal (solved)
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.
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, 11:18, edited 1 time in total.
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
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
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
Hi
Here is a snippet from this page: BootParametersPuppy
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
.
Oh yes it is ! (depending on what Puppy we are talking about)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.
Here is a snippet from this page: BootParametersPuppy
It would be helpful if there was a list of Puppies that support this parameter/argument,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).
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
.
Thanks for the information.Oh yes it is !
Unfortunately it doesn't work on LazY Puppy, and so it might not work also on Lucid.
RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
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.
Thanks for the Links.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
OK, this wouldn't be pretty, but think about this -- would it work? Yeah, very clunky, but disk space is cheap these days...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.
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.
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
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
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, 23:47, edited 1 time in total.
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
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.
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.
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
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.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.
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...
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
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.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.
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?
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
Create 2 save files, and you will be prompted for a savefile.mini-jaguar wrote: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.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.
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?
Select "0" for load no savefile...
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
Use your boot disk, and load it:mini-jaguar wrote:If you create only one save file, the menu will not show up, so there's no way to pick the 0 option.
Unless you mean create one save file and copy then rename it, which is an interesting idea. I could try that...
"puppy pfix=ram"
This will boot to RAM. Exit and create a second save file. Or boot a different system, and copy your file to a new name (for example, if you have Windows and your safe files are on the Windows partition, you can use that to copy the file). Or while you're booted to RAM, navigate to your save folder and copy the file (just change the second part of the name)
As I mentioned, I have 2+ save files, in the same subfolder. I have a "secure" file that I use only for accessing banking accounts. I have a general one that I use for everyday use. I have a "test" save file that I use when I'm apt to break things...
And when I want to back up my savefile, I boot one of the others and copy the main one to a new name, then reboot.
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
If you are keen to change the initrd script, there is a way to boot a selected save file automatically after a given time. After adding some lines in the script, you create a text file named boot-save with contentRetroTechGuy wrote: My system does default boot to Puppy 5.28, if left alone -- but then requires user intervention to choose a file.
Code: Select all
time=n
default=n
You can find the code here.
I don't think that playdayz changed the init script between 525 and 528 in a way that this code doesn't work, but no guaranty.
HTH
Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.
Raspberry Pi without Puppy? No, thanks.