| Author |
Message |
jpeps
Joined: 31 May 2008 Posts: 2449
|
Posted: Sat 03 Nov 2012, 19:47 Post subject:
Remove automatic pupsave for frugal installs |
|
For anyone who is having having trouble locating this information, I'll post it. I've never liked automatic saving, and for frugal installs gaining control involves tricking the system into believing you're running a flash drive (i.e, switch to pupmode 13), altering rc.shutdown so that it asks whether you want to save, and setting the events manager save time to "0" (don't save).
1. set the Utilities/PupShutdownManger/Manage System Events/Save Session dialogue to "0" (no save).
2. change in menu.lst: change pmedia=atahd to ataflash.
3. change in /etc/rc.shutdown
13) #PDEV1 and PUPSFS and PUPSAVE
#/initrd/pup_rw has tmpfs, pup_ro1 has ${DISTRO_FILE_PREFIX}save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
#the above are in unionfs at /.
dialog --yesno "Save 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
;;
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Sat 03 Nov 2012, 22:36 Post subject:
|
|
Yes, this should be sticky.
I have at least two or three times explained exactly this to someone on the forum. Can't find the thread.
RSH
I've found one of these threads: ---> Here is the last thread of this
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
Last edited by RSH on Fri 16 Nov 2012, 15:31; edited 1 time in total
|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2885 Location: West Lothian, Scotland, UK
|
Posted: Sun 04 Nov 2012, 03:34 Post subject:
|
|
1. Here's an explanation of how I do it [items 1 to 4 in the linked list].
And...
2. How to prevent the resulting spurious warning as a pupsave installation of Puppy boots, that the previous shut-down was improper.
And...
3. This, to make the default=no->[don't save] in the shutdown dialog.
|
|
Back to top
|
|
 |
greengeek
Joined: 20 Jul 2010 Posts: 1217 Location: New Zealand
|
Posted: Sun 04 Nov 2012, 12:25 Post subject:
|
|
Thanks all, nice summary. Just adding this to my list so I can find it again.
|
|
Back to top
|
|
 |
bill
Joined: 28 May 2008 Posts: 401
|
Posted: Sat 01 Dec 2012, 10:44 Post subject:
removing automatic pupsave file found Subject description: unknown original poster and where on this site ? |
|
If you make the 3 edits below, these 3 changes happen:
1. Session changes can still be saved at any time by clicking on the "Save" bullseye icon.
2. Session changes will not automatically save at shutdown.
3. At startup, you will get a warning message which says "X seems to have exited uncleanly the last time you ran puppy..." but no harm is done, just the changes you did not deliberately save are lost.
- - Click on "Ignore" and you will be in Puppy as it was at shutdown.
The lines to edit:
1. Open the console and type "geany /etc/rc.d/rc.shutdown" without quotes.
- - This opens the shutdown code for editing
2. Type cntrl f to search for "/usr/sbin/snapmergepuppy" without quotes.
- - /usr/sbin/snapmergepuppy is in my unaltered installation 3 times,
- - at line 817, line 847, and line 853.
3. Comment out each line that has it by typing #myrem in front of that line. The # sign alone comments it out, but use #myrem so you can find it later if you need to. Smile
So for each line (3 of'em) that originally said
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
you now have
#myrem /usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
4. Save the file.
5. Added Feb 22 (should have been in this post from the start):
"Go to "Menu->System->Puppy Event Manager->save session->save Interval",
and set the value to zero [actually 0] minutes, and OK that."
|
|
Back to top
|
|
 |
greengeek
Joined: 20 Jul 2010 Posts: 1217 Location: New Zealand
|
Posted: Wed 13 Feb 2013, 13:31 Post subject:
|
|
Also, here is an interesting historical post that may offer some extra ideas/links if the above doesn't cover whats needed:
http://www.murga-linux.com/puppy/viewtopic.php?t=39717
|
|
Back to top
|
|
 |
mcewanw
Joined: 16 Aug 2007 Posts: 1526 Location: New Zealand
|
Posted: Tue 21 May 2013, 22:22 Post subject:
call me lazy |
|
I decided today that I didn't want automatic pupsaving, so I searched the forum and found this thread amongst others.
Anyway, I didn't really want to mess up any system scripts or use any PUPMODE tricks and so on. As an admittedly simplistic and crude alternative I simply stuck the following line in my /etc/rc.d/rc.local to disable pupsaving altogether (unless re-enabled as shown later):
| Code: |
[ -e /usr/sbin/snapmergepuppy ] && mv /usr/sbin/snapmergepuppy /usr/sbin/snapmergepuppyBKUP
|
Then, when I want things to autosave normally again, I simply rename snapmergepuppyBKUP back to snapmergepuppy (or use a simple script to toggle between the two). Seems to work so posting this in case anyone else finds it useful.
Prevent saving to pupsave (pupsave_no script, which I have a shortcut to on my desktop):
| Code: |
#!/bin/sh
[ -e /usr/sbin/snapmergepuppy ] && mv /usr/sbin/snapmergepuppy /usr/sbin/snapmergepuppyBKUP
|
Allow saving to pupsave (pupsave_yes script, which I have a shortcut to on my desktop):
| Code: |
#!/bin/sh
[ -e /usr/sbin/snapmergepuppyBKUP ] && mv /usr/sbin/snapmergepuppyBKUP /usr/sbin/snapmergepuppy
|
EDIT: As well as the above method of preventing unwanted pupsaving I also install my .wine directory and .mozilla directory to /mnt/home and use relative symlinks back to /root to these. I am then able to use a very small pupsave (32M), which is simpler to backup, faster to boot with and much faster to shutdown. This is with Slacko 533 frugal installation on FAT32 formatted usb stick.
_________________ Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
|
|
Back to top
|
|
 |
backi
Joined: 27 Feb 2011 Posts: 385 Location: GERMANY
|
Posted: Thu 30 May 2013, 13:56 Post subject:
|
|
Hi
For Puppy Precise And Raring !
Found another solution not to save to USB Flash without ruining PPmanager „ for Puppy Precise and UPUPS raring .
1.Download somewhere the script „nosaveshutdown „ make it executable .
2. Goto Puppy Event Manager > Save Session > Save interval (0=never )
Save to flash....Restart
Install petget20120418.pet from
Save to flash ..restart
Now you can install pets debs or downloads from PPmanager ..if you like to keep them
either use „save2flash „ during session wihout shutting down ,
or saving session at shutdown ..just shutdown asusual.
In case you dont want to save Changes /session ...just execute the script above „nosaveshutdown“ . Nothing will be saved to Flash .This works for me on Precise Puppy 5.6 . , Rarung .
Install petget20120418.pet from
http://shino.pos.to/linux/puppy/
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9910 Location: Arizona USA
|
Posted: Thu 30 May 2013, 16:04 Post subject:
|
|
Download somewhere? That's a big help You can't give us a URL?
|
|
Back to top
|
|
 |
backi
Joined: 27 Feb 2011 Posts: 385 Location: GERMANY
|
Posted: Fri 31 May 2013, 05:01 Post subject:
|
|
Hi Flash !
Here is the script for " no save at shutdown " .
#!/bin/sh
# skips rc.shutdown and powers off computer without saving the session.
Xdialog --title "script $0" --yesno "\n\nAre you sure to power-off computer WITHOUT saving?\n\n" 0 0
[ $? -eq 0 ] && rm /initrd/pup_ro1/etc/.XLOADED && rm /etc/.XLOADED
exec /bin/busybox poweroff
Copy this text to geany or leafpad ----save it as for example in root as " Shut down without saving "--------- right click on this saved file ----goto Properties-----tick .....Exec.....refresh .
Now you can execute this script by clicking on it .. You could decorate with a nice icon too.
After you have done the steps i described before .
Last edited by backi on Sat 01 Jun 2013, 03:10; edited 1 time in total
|
|
Back to top
|
|
 |
nancy reagan
Joined: 22 Jan 2009 Posts: 440
|
Posted: Fri 31 May 2013, 07:21 Post subject:
Shinobar's pup saveconfig ? |
|
I use Shinobar's "pup saveconfig"-pet for ages in lupu. Not sure about precise and raring though.
http://murga-linux.com/puppy/viewtopic.php?t=60678
|
|
Back to top
|
|
 |
backi
Joined: 27 Feb 2011 Posts: 385 Location: GERMANY
|
Posted: Sat 01 Jun 2013, 03:14 Post subject:
|
|
Hi !
The script i mentioned above just shuts down without asking wether to save or not to save .
Faster ....
|
|
Back to top
|
|
 |
|