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 Thu 18 Dec 2014, 07:34
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Savefile updates every couple of seconds [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 05:58    Post_subject:  Savefile updates every couple of seconds [SOLVED]
Sub_title: My hard drive won't shut up
 

Hi

I'm running Precise 5.5, booted from usb, running on a reasonable desktop PC.
Nice Very Happy

.. but my hard drive won't shut up. Looking in ROX at the directory where my savefile is on the hard drive and hitting refresh again and again I see the savefile is being updated at least every 2 seconds.

Htop shows plenty of spare memory.

So in Puppy Event Manager I put the save interval to 0 (never save). No change. Rebooted. No change. Put the save interval to 9999. No change. Rebooted. No change.

Any ideas? Thanks!

Edited_time_total
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 07:31    Post_subject:  

It's slowed down a bit, now. Still at lest evey 6 seconds. Thought I'd try ffconvert's screen capture (ooo my first video Razz ) to show you I'm not a fibber

http://youtu.be/vnJiINHQ2WU

_________________
ZX81 > ZX Spectrum > Atari ST > Win 98 > Win 2K > Red Hat > SuSE > Ubuntu > Fatdog + Puppy Precise
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9353
Location: Stratford, Ontario

PostPosted: Mon 27 May 2013, 07:35    Post_subject:  

Go to the folder /etc/rc.d and open the file PUPSTATE. What is the value of the PUPMODE variable?
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 07:42    Post_subject:  

Hi rcrsn51

PUPMODE=12


( PMEDIA='cd' but I'm using USB - I don't know if this matters)

_________________
ZX81 > ZX Spectrum > Atari ST > Win 98 > Win 2K > Red Hat > SuSE > Ubuntu > Fatdog + Puppy Precise
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 07:44    Post_subject:  

... yeah it seems it should be usb not cd - I'll try that
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9353
Location: Stratford, Ontario

PostPosted: Mon 27 May 2013, 07:47    Post_subject:  

Because you are in PUPMODE=12, your savefile is mounted, so it is constantly in use. A regular flash drive install uses PUPMODE=13 where the save file resides in a separate layer and is only written to periodically.
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 07:51    Post_subject:  

Actually I won't (referring to my last post) because I don't know what I'm doing. I'm going out now and will look into it later. Got some learning to do with this one.

Still, if anyone can point me in the right direction, great!

Edited_time_total
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9353
Location: Stratford, Ontario

PostPosted: Mon 27 May 2013, 08:00    Post_subject:  

Open the file syslinux.cfg on your flash drive and change the argument to "pmedia=ataflash".
Back to top
View user's profile Send_private_message 
Sylvander

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

PostPosted: Mon 27 May 2013, 08:57    Post_subject:  

1. I just finished [a couple of minutes back, successfully] doing the following plus some other stuff to Precise-5.6.
I'm booting using a CD-RW with the pupsave on an internal HDD.
a. Begin with this lot.
[Do Items 4->(if your pupsave is on your internal HDD), then 1, then 2, then 3]
I like holding the pupsave on an internal HDD [it's faster than a Flash Drive], and using item 4 [in the page linked above] to have it treated as though on a Flash Drive.

b. Having completed the above, proceed to HERE to see the small code change to add to the code shown HERE.
This makes "Don't Save..." the default, when asked at shut-down whether you wish "to save or not to save".

2. The beauty of the above is that:
Session changes are only saved back to the pupsave IF and WHEN you choose.
a. During the session:
There is only a save IF/WHEN you choose to do it manually by clicking the "Save..." icon.

b. At shutdown/reboot:
You are asked whether you want "to save or not to save", and the default [click OK to accept] is "Don't save...".

Edited_time_total
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 14:57    Post_subject: Sorted  

Thanks guys.

rcrsn51, I can see that this would work but ... but .... it's lying Shocked !

I've got the time and I want to learn so I've gone for Sylvander's suggestions.

I've done: "a. Begin with this lot." items 4. (remaster with pupmode=13 in init) and 1. (Puppy Event Manager save interval=0)

... but I had this problem:

re: kleung21's post http://www.murga-linux.com/puppy/viewtopic.php?p=82239#82239 - Forcing pupmode 13 by remastering


When trying to mount initrd with 'mount ...' I got errors but got it to work with zcat instead:


mkdir /root/minit
cd /root/minit
zcat /mnt/{my usb stick where Puppy is booted from}/initrd.gz | cpio -i -d
leafpad initrc
#### In leafpad, I inserted:
#### PUPMODE=13
#### before the line:
#### case $PUPMODE in
sync
find .|cpio -o -H newc | gzip -9 > /mnt/{my usb stick where Puppy is booted from}/initrd.gz
sync
cd /root
sync

(Then I deleted the /root/minit directory)

Note: init was not in /root/minit/sbin/ - it's in /root/minit/

Thanks Bruce B for showing the zcat method.



I was about to ask why I don't have a save icon on the desktop but it's appeared as if by magic Smile (now that I'm in pupmode 13)

This solves my hyperactive hard drive.

The other stuff is exactly what I was wanting to do next - you read my mind Smile

Brilliant, thanks!
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Mon 27 May 2013, 16:05    Post_subject:  

All done. Awesome. Thanks again.

This will be perfect for the netbook I'm getting next week that I just want to be a word processor. I'll save my work as and when and probably rarely save the session once I get everything how I want it. This was exactly what I wanted a few days ago when I'd never even heard of Puppy Linux.

Running from RAM rocks! It's always exasperated me that no matter the incredible leaps in hardware technology the software manages to keep it pushed to the limits. Great if you're a gamer, but to do simple stuff, why have a machine that struggles? Puppy addresses this brilliantly.

Very pleased Very Happy
Back to top
View user's profile Send_private_message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2517
Location: Heart of Texas

PostPosted: Tue 28 May 2013, 13:59    Post_subject:  

Now play with the suspend to RAM function with lid closed, and if you get into the habit of closing lid between uses, battery life can last about a week. On my 64bit notebook its about 7% per day loss of battery with lid down on fully MAXed out RAM on my older 32bit and a older version of puppy, packed it up on and had it in storage for a little over a month so I was surprised when lifting lid and puppy was is running in RAM.
Back to top
View user's profile Send_private_message 
Sky Aisling


Joined: 27 Jun 2009
Posts: 966
Location: Port Townsend, WA. USA

PostPosted: Tue 28 May 2013, 23:41    Post_subject: Savefile updates every couple of seconds [SOLVED]
Sub_title: Suspend to RAM
 

Ted Dog writes:

Quote:
Now play with the suspend to RAM function with lid closed,


Where is the suspend to RAM function?

Thank you
Back to top
View user's profile Send_private_message 
Fingers


Joined: 25 May 2013
Posts: 14
Location: London, UK

PostPosted: Wed 29 May 2013, 05:07    Post_subject:  

Cheers Ted. First I must wait for my netbook to arrive!
_________________
ZX81 > ZX Spectrum > Atari ST > Win 98 > Win 2K > Red Hat > SuSE > Ubuntu > Fatdog + Puppy Precise
Back to top
View user's profile Send_private_message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2517
Location: Heart of Texas

PostPosted: Wed 29 May 2013, 14:59    Post_subject: Re: Savefile updates every couple of seconds [SOLVED]
Sub_title: Suspend to RAM
 

Sky Aisling wrote:
Ted Dog writes:

Quote:
Now play with the suspend to RAM function with lid closed,


Where is the suspend to RAM function?

Thank you


Close lid, trick is how to turn suspend to RAM off... ACPI settings. Sometimes I like to download overnight and with lights off.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
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.0787s ][ Queries: 12 (0.0090s) ][ GZIP on ]