| Author |
Message |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: 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
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9911 Location: Arizona USA
|
Posted: 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
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: 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
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9911 Location: Arizona USA
|
Posted: Sat 29 Aug 2009, 09:55 Post subject:
|
|
OK, thanks.
|
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: 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 )
Been a bit busy recently but with dive into this soon.
mike
|
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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 ) | Yes, that is me.
Seems to work too (in Puppy 4.3.0), just a little slower shutting down.
gyro
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: 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
mike
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: 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 ) | 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
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: 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
|
|
 |
[MOB]Trip
Joined: 07 Oct 2009 Posts: 31 Location: same shit world u live in.
|
Posted: Wed 07 Oct 2009, 05:41 Post subject:
|
|
define clean shutdown
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?
_________________

|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: 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
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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.
is what works for me, in a frugal install using files from pup-430.iso.
gyro
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: 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.
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
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Wed 07 Oct 2009, 14:24 Post subject:
|
|
ahhhhhhhhhhh my bad...that makes sense ...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
|
|
 |
|