Page 1 of 1

How to Identify Which Save Folder You Booted From?

Posted: Sun May 26, 2024 2:16 pm
by JusGellin

How can you identify which saved backup you are in?
Perhaps you booted into one of the backup saves and had to walk away.
Now that you come back you want to know "now which saved file did I boot up into"?

Thanks


Re: How to Identify Which Save Folder You Booted From?

Posted: Sun May 26, 2024 2:35 pm
by bigpup

menu ->System ->Pup-Sysinfo ->Sys-Files ->PupState

At the top will give info about what save is loaded.

Example:

• PUPMODE=12
• PDEV1='sdb3'
• DEV1FS='ext4'
• PUPSFS='sdb3,ext4,/bookwormpup641006/puppy_dpupbw64_10.0.6.sfs'
• PUPSAVE='sdb3,ext4,/bookwormpup641006/dpupbw64save-test3'
• PMEDIA='usbhd'


Re: How to Identify Which Save Folder You Booted From?

Posted: Sun May 26, 2024 2:52 pm
by JusGellin

That is so cool!!
There's so much good stuff here :thumbup2:

Thanks


Re: How to Identify Which Save Folder You Booted From?

Posted: Sun May 26, 2024 3:15 pm
by JusGellin

That helps me to know where I'm at.

But I don't understand from what I did.
I wanted to make a change so I made a backup save.

The change I made was to correct an error that comes up when I booted (it was a nonexited device).
The fix was to change a file that contained this that was at /mnt/dev_save/puppy/dpupbw64initmodules.txt which I think is one of the sfs files.
When it saved it I then did a save to save folder and rebooted. This corrected it.

I wanted to see if I could go back and get that error again to see if the backup save folder worked.
Then, I rebooted again and selected that backup save folder.
I rebooted and it still worked. It didn't go back to the error like I thought it would

How would I go to the condition the backup save folder has?

Thanks


Re: How to Identify Which Save Folder You Booted From?

Posted: Sun May 26, 2024 3:33 pm
by Marv
JusGellin wrote: Sun May 26, 2024 2:16 pm

How can you identify which saved backup you are in?
Perhaps you booted into one of the backup saves and had to walk away.
Now that you come back you want to know "now which saved file did I boot up into"?

Thanks

Here is a little script I used some time ago when I still used savefiles extensively. Simple but it told me where I was in my kennel. copy/ paste it into a file (mine was in /root/my-applications/bin and called whereami) and make the file executable. I symlinked it on the desktop.

Code: Select all

#!/bin/sh 
SAVEID=`cat /etc/rc.d/PUPSTATE | grep PUPSAVE=`
/usr/lib/gtkdialog/box_splash -placement top -align center -timeout 5 -text "$SAVEID"

Re: How to Identify Which Save Folder You Booted From?

Posted: Sun May 26, 2024 3:44 pm
by JusGellin

I really like useful scripts like that. Plus, these help me see where they need to be placed in Puppy Linux to work.
Thanks