How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
frenchiveruti
Posts: 5
Joined: Wed Aug 26, 2020 10:39 pm

How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by frenchiveruti »

Hello all, I have a puppy currently with two savefolders, one's mine and the other for my dad, to avoid messing up my dad's workflow and so I can make stuff on mine.
Now, I want to know how do I let the BOOT to boot directly into an specific savefolder.
Is there a way?

To be clear, the idea is to have two different boot-menu entries like
puppy frenchiveruti -> boots and loads my savefolder
puppy dad -> boots and loads my dad's savefolder.


Thanks.
User avatar
PipzDex
Posts: 178
Joined: Sun Jul 12, 2020 11:16 pm
Location: Mexico
Has thanked: 56 times
Been thanked: 70 times

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by PipzDex »


Hello frenchiveruti
about what you want exactly is not possible because of these factors ...
  • Grub4dos is installed on MS-Dos, it is independent of the puppy installation
  • the function is to recognize all the S.O. installed and create a visual menu in MS-Dos

The savefolder could be considered as a username in other Linux distributions, therefore, here and in any other S.O. It is not possible to start this way, it would be something like starting a car and then turning the key ... something like that

In the case of puppy, the search for savefolders is performed by the init file that is inside init.gz and if there are more than two savefolders, it makes a menu where it asks which one you want to continue loading puppy with (check my screen)...
IMG_20200922_145748.jpg
IMG_20200922_145748.jpg (58.48 KiB) Viewed 804 times

In my case, every time I start a new installation of any puppy what I do is essentially this:
Start puppy / save session with savefolder / reboot system ===> start again / I enter the puppy installation folder and create a new empty folder and copy the name of savefolder and add this to the name "-empty" looking like this: Example "precisesave-empty" without any type of extension ...
When the system restarts it will detect two savefolders and will be forced to ask which one to start with, regardless of whether one of them is completely empty and thus also have the possibility to start or create a new session

This would be the way to have what you are looking for, perhaps there is another method activating the users function in puppy but I do not know the process and with the original system this is what can be done without making any kind of adjustment to said program and system. .

I hope this information is useful to you and if you find a way to obtain what you are looking for exactly, do not hesitate to share us how you did it

Cheers! :thumbup2:

Pentium (R) 2.20GHz I RAM: 8.0 GB I F96-CE_5 I Kernel 6.6.8-64oz-ao I Glibc: 2.31 I 1600x900 Px

My Puppy Stuff and more

williams2
Posts: 1028
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 293 times

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by williams2 »

The psave parameter is supposed to do that:

psave=:dad.3fs

psave=:frenchiveruti.3fs

The colon character (:) is necessary.

This should be faster because it does not need to search the partitions:

psave=sda1:/dad.3fs

psave=sda1:/frenchiveruti.3fs

which is assuming that the save files are on sda1 at the root (top) of the file system and not in a folder.
Last edited by williams2 on Thu Sep 24, 2020 7:46 pm, edited 1 time in total.
User avatar
PipzDex
Posts: 178
Joined: Sun Jul 12, 2020 11:16 pm
Location: Mexico
Has thanked: 56 times
Been thanked: 70 times

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by PipzDex »

williams2 wrote: Tue Sep 22, 2020 11:02 pm The psave parameter is supposed to do that:

psave=:dad.3fs

psave=:frenchiveruti.5fs

The colon character (:) is necessary.

This should be faster because it does not need to search the partitions:

psave=sda1:/dad.3fs

psave=sda1:/frenchiveruti.3fs

which is assuming that the save files are on sda1 at the root (top) of the file system and not in a folder.

Hi williams2

thnks for your apport

I really didn't know about this interesting fact and I have one question...

this works with savefolder too or only with savefile?

will it work this way?

psave=sda1: /focalpup_9.0.0/ focalpupsave-dad or

psave=:focalpup_9.0.0/ focalpupsave-dad

I appreciate your comment

Cheers! :thumbup2:







Pentium (R) 2.20GHz I RAM: 8.0 GB I F96-CE_5 I Kernel 6.6.8-64oz-ao I Glibc: 2.31 I 1600x900 Px

My Puppy Stuff and more

User avatar
bigpup
Moderator
Posts: 6468
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 778 times
Been thanked: 1337 times

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by bigpup »

You are asking questions with us having no specific information.

What Puppy specific version?
If it is focalpup_9.0.0.
And it is a frugal install in a directory named focalpup_9.0.0
The save is a folder named focalpupsave-dad and it is also in the directory focalpup_9.0.0

This should work:

psave=:/focalpup_9.0.0/ focalpupsave-dad

But do you know where to but it in the menu.lst entry?

It would be best for good advice if you posted what is in your menu.lst

Open the menu.lst file in a text editor.
Copy and paste the contents into a post, so we can see what your actual entries are and can give good advice, on where to put psave=

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

frenchiveruti
Posts: 5
Joined: Wed Aug 26, 2020 10:39 pm

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by frenchiveruti »

sometimes the specific questions are not asked because we lack the knowledge to make the correct questions.
Indeed, the solution was the psave parameter for boot.
Just using the path to the save folders makes the boot to distinguish between them
Thanks all!
williams2
Posts: 1028
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 293 times

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by williams2 »

this works with savefolder too or only with savefile?
Yes, it should work with a save folder.

The information is from the README.txt file in the Fossapup iso.
So, "psave=sdb4:/lxpupsc/mysave" says that the savefolder is on the sdb4 partition
in the "/lxpupsc" directory, named "mysave".
FossaPup64 9.5 viewtopic.php?f=40&t=88
Attachments
fossaREADME.txt.gz
FossaPup README
(4.63 KiB) Downloaded 30 times
User avatar
PipzDex
Posts: 178
Joined: Sun Jul 12, 2020 11:16 pm
Location: Mexico
Has thanked: 56 times
Been thanked: 70 times

Re: How to edit menu.lst made by Grub4DOS to specify a savefolder to boot from?

Post by PipzDex »

williams2 wrote: Wed Sep 23, 2020 6:17 am
this works with savefolder too or only with savefile?
Yes, it should work with a save folder.

The information is from the README.txt file in the Fossapup iso.
So, "psave=sdb4:/lxpupsc/mysave" says that the savefolder is on the sdb4 partition
in the "/lxpupsc" directory, named "mysave".
FossaPup64 9.5 viewtopic.php?f=40&t=88
hello williams2/bigpup
it really works !!
I did as is inside the readme in focalpup and I just had to duplicate the input so that one went directly to the savefolder and another to ask which session to load
this is my entry in menu.lst
title Puppy focalpup dad (sda1 / focalpup_9.0.0)
find --set-root uuid () 641945f7-a018-4b64-89b4-9b153931b2e6
kernel /focalpup_9.0.0/vmlinuz pdrv = 641945f7-a018-4b64-89b4-9b153931b2e6 psubdir = / focalpup_9.0.0 pmedia = atahd (pupsfs = 641945f7-a018-4b64-89b4-9b64-89b4-9b153931b2e6 psubdir = / focalpup_9.0.0 pmedia = atahd (pupsfs = 641945f7-a018-4b64-89b4-9b1p1539save = sfopup6 pmedia = atahd) dad) pfix = fsck, nocopy
initrd /focalpup_9.0.0/initrd.gz
title Puppy focalpup 9.0.0 (sda1 / focalpup_9.0.0)
find --set-root uuid () 641945f7-a018-4b64-89b4-9b153931b2e6
kernel /focalpup_9.0.0/vmlinuz pdrv = 641945f7-a018-4b64-89b4-9b153931b2e6 psubdir = / focalpup_9.0.0 pmedia = atahd pfix = fsck, nocopy
initrd /focalpup_9.0.0/initrd.gz
bigpup
this is how this works, check the first entry, highlight it in parentheses

and woof, I learned something new this day ...

Pentium (R) 2.20GHz I RAM: 8.0 GB I F96-CE_5 I Kernel 6.6.8-64oz-ao I Glibc: 2.31 I 1600x900 Px

My Puppy Stuff and more

Post Reply

Return to “Users”