| Author |
Message |
jpeps
Joined: 31 May 2008 Posts: 2421
|
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: 2853 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: 1184 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: 395
|
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: 1184 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
|
|
 |
duh
Joined: 10 Dec 2006 Posts: 17
|
Posted: Wed 27 Feb 2013, 06:41 Post subject:
|
|
|
|
Back to top
|
|
 |
|