Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 06:34
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to stop "SAVING TO FILE" at shutdown?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
nancy reagan

Joined: 22 Jan 2009
Posts: 513

PostPosted: Mon 18 Jan 2010, 08:54    Post_subject:  How to stop "SAVING TO FILE" at shutdown?
Sub_title: Choicepup 412 USB install
 

"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
Back to top
View user's profile Send_private_message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Mon 18 Jan 2010, 09:58    Post_subject:  

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.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send_private_message 
nancy reagan

Joined: 22 Jan 2009
Posts: 513

PostPosted: Tue 19 Jan 2010, 15:34    Post_subject: Thanks but  

Thanks but very hard searching through google.

"Search the forum" impossible to search in quotes.

Yet ..
Back to top
View user's profile Send_private_message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 19 Jan 2010, 15:52    Post_subject:  

Nancy its may be in the etc/rc.shutdown. I modified it for a live/kiosk cd i made to not prompt or save at shutdown. I took out a swathe of code fron line 50 onwards.

I dont know how to achieve this after an initial save though.
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Tue 19 Jan 2010, 17:40    Post_subject:  

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)

Code:
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw


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:
#/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw


OR, get a dialog, asking you to save or not, at each shutdown.

Code:
#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
;;


Then save the file.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
nancy reagan

Joined: 22 Jan 2009
Posts: 513

PostPosted: Wed 20 Jan 2010, 16:36    Post_subject: ?
Sub_title: thanks sidders and scott
 

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.


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)

Code:
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw


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:
#/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw


OR, get a dialog, asking you to save or not, at each shutdown.

Code:
#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
;;


Then save the file.
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Thu 21 Jan 2010, 10:45    Post_subject: Re: ?
Sub_title: thanks sidders and scott
 

nancy reagan wrote:
Q1: Does it mean that I have to a. remove line at approx 825, or b. just rewrite?


Answer 1: It should be encased in an 'if' command, that checks the dialog result.

So... This is the first line that concerns us.

Code:
#the above are in unionfs at /


This is the last line that concerns us (a few lines below):

Code:
;;


Everything between these lines can be replaced with the following:

Code:
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 that you now have:

Code:
#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
;;


This encases the snapmergepuppy command (which calls the save file) in a dialog.
So now, it is only executed if the user chooses 'yes'

Quote:
Q2: How to copy and paste into terminal ?


SHIFT+INSERT pastes into the terminal... Still not sure how to copy!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Edited_time_total
Back to top
View user's profile Send_private_message 
walter90


Joined: 25 Aug 2009
Posts: 278
Location: Pennsylvania, USA

PostPosted: Tue 09 Mar 2010, 17:00    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
Sylvander

Joined: 15 Dec 2008
Posts: 3463
Location: West Lothian, Scotland, UK

PostPosted: Fri 12 Mar 2010, 06:42    Post_subject:  

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. Very Happy

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?
Back to top
View user's profile Send_private_message 
adXok

Joined: 12 Mar 2010
Posts: 70

PostPosted: Sun 14 Mar 2010, 12:17    Post_subject: Simmilar question?
Sub_title: Saving Sessions at will to a custom location
 

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?
Back to top
View user's profile Send_private_message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Sun 14 Mar 2010, 12:42    Post_subject:  

Quote:
Q2: Howto copy and paste into terminal ?

two ways
1) shift+Ins(ert)
2) highlight text somewhere and then click the middle mouse button in the terminal

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send_private_message Visit_website 
walter90


Joined: 25 Aug 2009
Posts: 278
Location: Pennsylvania, USA

PostPosted: Sun 14 Mar 2010, 16:23    Post_subject:  

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. Very Happy

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?


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.

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.
Back to top
View user's profile Send_private_message 
Sylvander

Joined: 15 Dec 2008
Posts: 3463
Location: West Lothian, Scotland, UK

PostPosted: Mon 15 Mar 2010, 03:13    Post_subject:  

@walter90
Job done and functioning well. Very Happy

Used "System->Puppy event manager" in the manner you described.
Back to top
View user's profile Send_private_message 
adXok

Joined: 12 Mar 2010
Posts: 70

PostPosted: Mon 15 Mar 2010, 13:32    Post_subject:  

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?

Code:

#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
Back to top
View user's profile Send_private_message 
walter90


Joined: 25 Aug 2009
Posts: 278
Location: Pennsylvania, USA

PostPosted: Mon 15 Mar 2010, 14:16    Post_subject:  

Sylvander wrote:
@walter90
Job done and functioning well. Very Happy

Used "System->Puppy event manager" in the manner you described.


You're welcome! Very Happy
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1140s ][ Queries: 12 (0.0193s) ][ GZIP on ]