How to Identify Which Save Folder You Booted From?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
JusGellin
Posts: 295
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 37 times
Been thanked: 26 times

How to Identify Which Save Folder You Booted From?

Post 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

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

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

Post 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'

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

JusGellin
Posts: 295
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 37 times
Been thanked: 26 times

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

Post by JusGellin »

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

Thanks

JusGellin
Posts: 295
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 37 times
Been thanked: 26 times

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

Post 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

User avatar
Marv
Posts: 390
Joined: Fri Dec 20, 2019 3:09 am
Has thanked: 182 times
Been thanked: 104 times

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

Post 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"

My pups: LxPupSc64 and Voidpup64 with LXDE ydrv & synaptics touchpad drivers, both using savefiles. Ydrv based Jammypup64 (JWM), Bookworm64, Fossapup23 & FossapupFire (LXDE/PCManFM). No savefiles, no fdrvs there. :thumbup:

JusGellin
Posts: 295
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 37 times
Been thanked: 26 times

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

Post 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

Post Reply

Return to “Users”