How to stop "SAVING TO FILE" at shutdown?
-
- Posts: 544
- Joined: Thu 22 Jan 2009, 14:20
How to stop "SAVING TO FILE" at shutdown?
"SAVING TO FILE" while I don't want to
Installed Choicepup 412 in superfloppy mode to usb.
First time yes I wanted to save to file because of new programs.
However every next closure it "saves to file" without asking y/n.
How can I stop this unwanted saving ?
Thanks in advance
Installed Choicepup 412 in superfloppy mode to usb.
First time yes I wanted to save to file because of new programs.
However every next closure it "saves to file" without asking y/n.
How can I stop this unwanted saving ?
Thanks in advance
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
This is the way puppy is designed.
But I know that the question has been raised before and advice been given.
Try to find those posts with the puppysearch link in my sig.
But I know that the question has been raised before and advice been given.
Try to find those posts with the puppysearch link in my sig.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
-
- Posts: 544
- Joined: Thu 22 Jan 2009, 14:20
Thanks but
Thanks but very hard searching through google.
"Search the forum" impossible to search in quotes.
Yet ..
"Search the forum" impossible to search in quotes.
Yet ..
Open the terminal, type 'geany /etc/rc.d/rc.shutdown' (without the quotes)
then find this line, it should be around line 825 (use search - Ctrl+F)
The line above is the one the launches snapmergepuppy, comment it out, with a # at the start of the line. So it looks like this:
OR, get a dialog, asking you to save or not, at each shutdown.
Then save the file.
then find this line, it should be around line 825 (use search - Ctrl+F)
Code: Select all
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
Code: Select all
#/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
Code: Select all
#the above are in unionfs at /.
dialog --yesno "Save this session?" 0 0 >/dev/console
if [ $? -eq 0 ]; then
echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
fi
;;
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
-
- Posts: 544
- Joined: Thu 22 Jan 2009, 14:20
?
Thanks for the tips sidders and scott. Even if my stick now is totally ruined and doing first a few jobs on livecd first, I choose to go for Scott's tip.
However being a non tweaker, some new questions arise beforehand ..
I go for the option after "OR", so that on shutdown I have an option.
Q1: Does it mean that I have to a. remove line at approx 825, or b. just rewrite ?
Q2: Howto copy and paste into terminal ?
Thanks again.
However being a non tweaker, some new questions arise beforehand ..
I go for the option after "OR", so that on shutdown I have an option.
Q1: Does it mean that I have to a. remove line at approx 825, or b. just rewrite ?
Q2: Howto copy and paste into terminal ?
Thanks again.
sc0ttman wrote:Open the terminal, type 'geany /etc/rc.d/rc.shutdown' (without the quotes)
then find this line, it should be around line 825 (use search - Ctrl+F)
The line above is the one the launches snapmergepuppy, comment it out, with a # at the start of the line. So it looks like this:Code: Select all
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
OR, get a dialog, asking you to save or not, at each shutdown.Code: Select all
#/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
Then save the file.Code: Select all
#the above are in unionfs at /. dialog --yesno "Save this session?" 0 0 >/dev/console if [ $? -eq 0 ]; then echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console /usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw fi ;;
Re: ?
Answer 1: It should be encased in an 'if' command, that checks the dialog result.nancy reagan wrote:Q1: Does it mean that I have to a. remove line at approx 825, or b. just rewrite?
So... This is the first line that concerns us.
Code: Select all
#the above are in unionfs at /
Code: Select all
;;
Code: Select all
dialog --yesno "Save this session?" 0 0 >/dev/console
if [ $? -eq 0 ]; then
echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
fi
Code: Select all
#the above are in unionfs at /.
dialog --yesno "Save this session?" 0 0 >/dev/console
if [ $? -eq 0 ]; then
echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
fi
;;
So now, it is only executed if the user chooses 'yes'
SHIFT+INSERT pastes into the terminal... Still not sure how to copy!Q2: How to copy and paste into terminal ?
Last edited by sc0ttman on Tue 24 May 2011, 17:10, edited 1 time in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
I copied this code exactly and it does work, but from time to time even if I select the save option it does not save. At other times it has terminated the save despite my savefile having more than enough room left. I'd say this happens about 5% of the time.
I am using this code on Puppy 4.2.1, 4.1.2 and 4.30. It seems that 4.30 has no issues with this.
I am using this code on Puppy 4.2.1, 4.1.2 and 4.30. It seems that 4.30 has no issues with this.
I have a couple of Puppies...
That load the main files off a "live" optical disk...
And each has a pupsave file on a FAT32 partition, on their own separate USB Flash Drive.
Used the instructions above by scOttman...
To provide the choice at shut-down...
To save or not save the session.
Which is working well.
But what about DURING the session?
When changes to the session are COPIED back to the pupsave?
Is it possible to have the choice to allow or prevent this?
That load the main files off a "live" optical disk...
And each has a pupsave file on a FAT32 partition, on their own separate USB Flash Drive.
Used the instructions above by scOttman...
To provide the choice at shut-down...
To save or not save the session.
Which is working well.

But what about DURING the session?
When changes to the session are COPIED back to the pupsave?
Is it possible to have the choice to allow or prevent this?
Simmilar question?
Hi, I am new user of Puppy and my Puppy works like this:
1. Booting form a CD (Puppy 4.3.1 burned image)
2. I had no ext3 or ext2 partitions on my HD so I just plugged a USB flash drive and Saved my session there
3. Every time Puppy boots up it loads form that USB (location sdc1) (if plugged, if not loads defaults in RAM)
4. Now I have made a ext3 partition called (sdb9)
What I want is this:
At reboot or shutdown Puppy to ask me whether to save (or not) the current session to what location (sdb9 with ext3 filesystem) or USB (if plugged and found) so next time to load from that location?
More improtant?
Is it possible at boottime Puppy to ask where to seek for session load-files?
1. Booting form a CD (Puppy 4.3.1 burned image)
2. I had no ext3 or ext2 partitions on my HD so I just plugged a USB flash drive and Saved my session there
3. Every time Puppy boots up it loads form that USB (location sdc1) (if plugged, if not loads defaults in RAM)
4. Now I have made a ext3 partition called (sdb9)
What I want is this:
At reboot or shutdown Puppy to ask me whether to save (or not) the current session to what location (sdb9 with ext3 filesystem) or USB (if plugged and found) so next time to load from that location?
More improtant?
Is it possible at boottime Puppy to ask where to seek for session load-files?
Yes. Go to start>desktop>Desktop drive icons manager. When you open that, look for a button on the bottom that says "show full manager" or something like that. When you click that, you will see a tab at top that says "saves" or something roughly like that. You will see, after you select that tab, a box with "30" in it. Change that to "0" if you want no saves at all.Sylvander wrote:I have a couple of Puppies...
That load the main files off a "live" optical disk...
And each has a pupsave file on a FAT32 partition, on their own separate USB Flash Drive.
Used the instructions above by scOttman...
To provide the choice at shut-down...
To save or not save the session.
Which is working well.![]()
But what about DURING the session?
When changes to the session are COPIED back to the pupsave?
Is it possible to have the choice to allow or prevent this?
You will need to reboot after you change the number so the change can be saved. If you save it from the desktop and stay in session it will keep saving every 30 minutes until you reboot.
But can I make Puppy shutdown ask me everytime if I want to save the sassion to a particular location like the first time it did and I accidentaly save it to the USB?
I just want to save the sessions to (sdbX). How to do that?
I just want to save the sessions to (sdbX). How to do that?
Code: Select all
#save session...
case $PUPMODE in
3) #PDEV1.
echo "Saving session to $PDEV1..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
;;
32) #first shutdown, save back to PDEV1. v3.97: xPDEV
DEV1MNT="`mount | grep "/dev/$xPDEV" | tr -s " " | cut -f 3 -d " "`"
if [ "$DEV1MNT" = "" ];then
mkdir -p /mnt/$xPDEV
mount -t $xDEVFS /dev/$xPDEV /mnt/$xPDEV
if [ ! $? -eq 0 ];then
echo "ERROR: unable to mount /dev/$xPDEV, cannot save." >/dev/console
exit
fi
- linuxsansdisquedur
- Posts: 248
- Joined: Tue 13 Jan 2009, 21:17
- Location: South of France

you delete savepup and copy an already saved one in home and shutdown when the copy is just done.
Next boot you will find this savepup instead of the last session one

(i use pizzapup in frugaal -puppy2.14 puplet-

le max avec le min
Could you tell more exactly how one do this?linuxsansdisquedur wrote:A simple way to don't save file at shutdown or re-use other savepup without running in ram :
you delete savepup and copy an already saved one in home and shutdown when the copy is just done.
Next boot you will find this savepup instead of the last session one![]()
(i use pizzapup in frugaal -puppy2.14 puplet-)
Would not that only work if you do this within the 30 minutes before it has saved automatically or if you have set it to not save ever?
And Can one really delete a savefile that is booted? Don't you have to unmount the savefile in some way?
You suggest that one copy the savefile one want from a secured place over to the subdir of the deleted one.
But that one get run over by the shutdown version. So that is not working as I get it.
Sure I know almost nothing but something in your way of describing it fail to make me sure it works. Could it be that the older 2.14 version allowed it while the more recent puppy 431 would not?
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
- linuxsansdisquedur
- Posts: 248
- Joined: Tue 13 Jan 2009, 21:17
- Location: South of France
sorry for late answer (in holidays
)
dunno if it work with puppy4
(gotta try in my 2 testing pupplet... and i tell u
) but yes i just copy my pupsave and when i want it back i copy it on the pupsave and reboot just when that done ! and it work !
(it make the same thing when you boot with other puppy or live cd and change the pupsave with your backup!)

dunno if it work with puppy4


(it make the same thing when you boot with other puppy or live cd and change the pupsave with your backup!)
le max avec le min
I am still wondering about this one. I know too little to decide on it.linuxsansdisquedur wrote:sorry for late answer (in holidays)
dunno if it work with puppy4(gotta try in my 2 testing pupplet... and i tell u
) but yes i just copy my pupsave and when i want it back i copy it on the pupsave and reboot just when that done ! and it work !
(it make the same thing when you boot with other puppy or live cd and change the pupsave with your backup!)
I did a few test but how does one protect from this happening at same time it automatically does a pupsave?
If one look at Htop then it shows if a pupsave is being done or???
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though