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 21 Aug 2014, 14:05
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Clean shutdown for full installs
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Fri 28 Aug 2009, 17:40    Post subject:  Clean shutdown for full installs  

Want a clean shutdown with a full install and not getting it?

try adding this line just before the last umount in /etc/rc.d/rc.shutdown:

Code:
killall `fuser -v -m / 2>&1 | grep F | grep -v rc.shutdown | grep -v reboot | grep -v grep | grep -v poweroff | awk '{print $4}'`


all one line. Tested with puppy 2.12 and 4.12.
Probably could be incorporated with the frugal cleanup section (which is next on my agenda..a few dirty bibs there too)

Using ext3 masks unclean shutdowns as it cleans up when it is mounted but another distro running fsck will show the dirty flag and IFS on windows won't mount because of it.

mike
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11014
Location: Arizona USA

PostPosted: Fri 28 Aug 2009, 22:09    Post subject:  

4.3 beta 1 multisession DVD is not shutting off the power after saving. Do you think this would fix that?
_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Sat 29 Aug 2009, 06:03    Post subject:  

Quote:
4.3 beta 1 multisession DVD is not shutting off the power after saving. Do you think this would fix that?

no sounds like an acpi problem...may try acpi=force boot parameter...the cut of date may have been changed....

This simply tries to make sure partitions are unmounted/remounted read only before poweroff...if they are not it would poweroff regardless.

mike
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11014
Location: Arizona USA

PostPosted: Sat 29 Aug 2009, 09:55    Post subject:  

OK, thanks.
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Mon 05 Oct 2009, 23:26    Post subject: Re: Clean shutdown for full installs  

mikeb wrote:
Probably could be incorporated with the frugal cleanup section (which is next on my agenda..a few dirty bibs there too)

Mikeb,

I'm really looking forward to your fix to rc.shutdown so that frugal installs do a clean shutdown.

I've tried adding your code to my rc.shutdown (puppy 4.1.2 frugal) but I still get pup_save.3fs not cleanly umounted.

I've also tried to fix rc.shutdown myself, but with no sucess.

gyro
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Tue 06 Oct 2009, 08:25    Post subject:  

There is a section that checks it is frugal and that is where processes should be killed. Also there is the mounting of the pup_save and mounting of where the pup_save is so a mount within a mount to deal with.

Someone recently was changing the boot parameter to pmedia=usbflash to make a hard drive frugal install behave as a usb flash stick and that seemed to help...might be worth experimenting with.(with backups made of course Smile )

Been a bit busy recently but with dive into this soon.

mike
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Tue 06 Oct 2009, 11:01    Post subject:  

mikeb wrote:
Someone recently was changing the boot parameter to pmedia=usbflash to make a hard drive frugal install behave as a usb flash stick and that seemed to help...might be worth experimenting with.(with backups made of course Smile )
Yes, that is me.
Seems to work too (in Puppy 4.3.0), just a little slower shutting down.

gyro
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Tue 06 Oct 2009, 12:22    Post subject:  

Ah ha...I tried to find the thread.
Does doing that actually give a clean shutdown?.....i lose track on this forum sometimes Very Happy

mike
Back to top
View user's profile Send private message 
aarf

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

PostPosted: Tue 06 Oct 2009, 13:20    Post subject:  

gyro wrote:
mikeb wrote:
Someone recently was changing the boot parameter to pmedia=usbflash to make a hard drive frugal install behave as a usb flash stick and that seemed to help...might be worth experimenting with.(with backups made of course Smile )
Yes, that is me.
Seems to work too (in Puppy 4.3.0), just a little slower shutting down.

gyro

tried to use pmedia=usbflash on my SSD frugal install of 430. failed to boot . sfs not found.

_________________

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 poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Tue 06 Oct 2009, 13:23    Post subject:  

Quote:
tried to use pmedia=usbflash on my SSD frugal install of 430. failed to boot . sfs not found.


hmm perhaps it's a bit of a fluke that this works for gyro.
What is really needed is forcing of pupmode to 13

mike
Back to top
View user's profile Send private message 
[MOB]Trip

Joined: 07 Oct 2009
Posts: 31
Location: same shit world u live in.

PostPosted: Wed 07 Oct 2009, 05:41    Post subject:  

define clean shutdown Embarassed
im on dingo 4.0 full install...i shutdown...it sigterm kills all blah blah..then "requesting system power off" Power down..i hear the hd kick off...but pc dont shut off...i hold power button..solved... so this would prevent me from usen meh big toe on the power button? Twisted Evil

_________________


Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Wed 07 Oct 2009, 09:29    Post subject:  

Quote:
define clean shutdown

that sounds like you need 'acpi=force' as a boot parameter to save yer big toe.

This is about when puppy shuts down it does not unmount drives properly so leaves the dirty flag set so on a restart the file system has to be checked/cleaned up....it's doesn't usually mean any corruption but can be inconvenient.

mike
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Wed 07 Oct 2009, 10:24    Post subject:  

mikeb wrote:
hmm perhaps it's a bit of a fluke that this works for gyro.

Sorry I didn't read your post closely enough.
Code:
pmedia=ataflash
is what works for me, in a frugal install using files from pup-430.iso.

gyro
Back to top
View user's profile Send private message 
aarf

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

PostPosted: Wed 07 Oct 2009, 11:45    Post subject:  

gyro wrote:
mikeb wrote:
hmm perhaps it's a bit of a fluke that this works for gyro.

Sorry I didn't read your post closely enough.
Code:
pmedia=ataflash
is what works for me, in a frugal install using files from pup-430.iso.

gyro

pmedia=ataflash put into menu.lst.
boots.
will monitor it for any improvement in shutdown.

_________________

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 poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 8150

PostPosted: Wed 07 Oct 2009, 14:24    Post subject:  

Quote:
pmedia=ataflash


ahhhhhhhhhhh Embarassed my bad...that makes sense Very Happy ...meant for cf flash drives I presume.

I will give this a tryout too....been a busy bunny recently.
I find this mode interesting as working files are still in ram so should provide for a speedup and it also means temporary files created during a session are not needlessly saved....the only proviso is a decent amount of ram though in my head this method effectively increases virtual filespace...ie pup_save + tmpfs.

regards

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0776s ][ Queries: 11 (0.0040s) ][ GZIP on ]