Make Puppy recover automatically from improper shutdowns

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
pri
Posts: 342
Joined: Fri 09 Oct 2009, 18:31
Location: Bandung Indonesia
Contact:

#61 Post by pri »

:mrgreen: :mrgreen:

sory.. i am come back again ........

is the script just for ext2 ? because when using ext3 its not work, and stoped in prompt.

:roll:
Learning by Doing

User avatar
SilverPuppy
Posts: 143
Joined: Fri 29 May 2009, 02:21

EXT3 is fine

#62 Post by SilverPuppy »

Well, I haven't used this on anything BUT EXT3 recently, and it works fine. Just be sure you've got the partition set properly in the e2fsck line, and are using the correct scripts.

Even if the e2fsck line is messed up, it should still generally work. I'm not sure where you made a wrong turn.

User avatar
Colonel Panic
Posts: 2171
Joined: Sat 16 Sep 2006, 11:09

#63 Post by Colonel Panic »

Thanks for this Silverpuppy. I've downloaded these scripts and plan to install them on a computer at my local community centre which has EcoPup and Puppy 4.21 installed on it.
Gigabyte M68MT-52P motherboard, AMD Athlon II X4 630, 5.8 GB of DDR3 RAM and a 250 GB Hitachi hard drive running Ubuntu 16.04.6, MX-19.2, Peppermint 10, PCLinuxOS 20.02, LXLE 18.04.3, Pardus 19.2, exGENT 200119, Bionic Pup 8.0 and Xenial CE 7.5 XL.

User avatar
SilverPuppy
Posts: 143
Joined: Fri 29 May 2009, 02:21

Great stuff!

#64 Post by SilverPuppy »

Just be certain to insert my pieces into the 4.21 files so you don't end up with weird behavior because something isn't right.

Search for my username "SilverPuppy" to find the pieces I've added.

jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

#65 Post by jockjunior »

Thanks for files Silverpuppy. Just what I needed for 4.3.1

much obliged

Jock :D

shariebeth
Posts: 242
Joined: Tue 26 Jan 2010, 19:37
Location: Florida

#66 Post by shariebeth »

I tried this and obviously did something wrong.
I can't get back in to put the original files back. It is hanging at the "This script will run X windows for you..." and then goes to the xorgwizard part which keeps telling me to type some variation of xorg, xwin, or restart xorgwizard which won't work either.

At this point, I'm not so concerned about what I did wrong, as how to get back to fix it. :(
4.3.1 full install
Well, if you can't boot, then your first course of action is to boot from a LiveCD and run fsck on the partition that Puppy lives on (probably sda2 in your case, but do verify this)
What does this mean and how do I do that?

Edit: I have found many other threads dealing with this problem, unfortunately none of the other solutions are working, or I don't understand how exactly to follow the instructions (too many people toss commands and "run this or that" at you without remembering a lot of us are newbies). I guess I will venture over to one of those and continue this since it's not on topic in this thread.

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#67 Post by rjbrewer »

It might help to boot the live cd.
Mount your puppy partition.
Copy /etc/rcd from the live cd to the same place on the mounted
partition. Say yes to merge,overwrite. Remove cd, reboot
(do not save).

If that doesn't work, boot the live cd and use the universal
installer to make the full install again; this time use the
"upgrade" option. No need to do the grub install again.

A tip:
Don't experiment with your main install. Put another copy of
that installation on another partition.

Edit:
Copying the rcd from live cd to full install caused a change
of "pupmode" from 2 to 5.
It was necessary to change it back to PUPMODE 2 IN /etc/rcd
PUPSTATE.
Last edited by rjbrewer on Thu 04 Mar 2010, 17:04, edited 1 time in total.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

shariebeth
Posts: 242
Joined: Tue 26 Jan 2010, 19:37
Location: Florida

#68 Post by shariebeth »

rjbrewer wrote:It might help to boot the live cd.
Mount your puppy partition.
Copy /etc/rcd from the live cd to the same place on the mounted
partition. Say yes to merge,overwrite. Remove cd, reboot
(do not save).

If that doesn't work, boot the live cd and use the universal
installer to make the full install again; this time use the
"upgrade" option. No need to do the grub install again.

A tip:
Don't experiment with your main install. Put another copy of
that installation on another partition.
Neither worked :(
(and yeah, this is a second computer which is why I am taking "risks" tinkering with it. I had no idea it would be so painful to lose everything else I (and everyone who helped me) had worked so hard to get working :? )
I have been posting specifics here: http://www.murga-linux.com/puppy/viewtopic.php?t=51990

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#69 Post by rjbrewer »

I see from another post that your tmp file is empty?
(it's a pain having to hunt around trying to keep up with you
on different posts)
If still empty try copying tmp from live cd to full install.
Check my edit to my previous post.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

shariebeth
Posts: 242
Joined: Tue 26 Jan 2010, 19:37
Location: Florida

#70 Post by shariebeth »

rjbrewer wrote: Edit:
Copying the rcd from live cd to full install caused a change
of "pupmode" from 2 to 5.
It was necessary to change it back to PUPMODE 2 IN /etc/rcd
PUPSTATE.
It seems to have kept the 2 for me:
PUPMODE=2
ATADRIVES='sda '
PUP_HOME='/'
(it's a pain having to hunt around trying to keep up with you on different posts)
Sorry :( (I was trying not to derail this thread)
If still empty try copying tmp from live cd to full install.
omgosh omgosh omgosh it worked!!!!! Thank you thank you thank you!

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#71 Post by rjbrewer »

Another lucky guess for me. :)

My best friend, Susan, lives in Vero Beach.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
SilverPuppy
Posts: 143
Joined: Fri 29 May 2009, 02:21

Wow

#72 Post by SilverPuppy »

That is definitely NOT an approach I'd have thought to take, but I'm glad it's now working.

AFAIK, the /tmp folder SHOULD be empty at poweroff, but maybe I'm mistaken.

Just glad it's working.

User avatar
Anniekin
Posts: 246
Joined: Wed 25 Feb 2009, 00:15

#73 Post by Anniekin »

subscribed

User avatar
oldroy
Posts: 20
Joined: Tue 03 Feb 2009, 22:55
Location: Alberta, Canada

Permissions

#74 Post by oldroy »

166 mhz pentium, 64 meg memory, Puppy 4.3.1 full install, ext3 filesystem

SilverPuppy thank you for the zip files. I downloaded them and extracted the ext3 filesystem stuff then replaced the existing rc.sysinit and rc.shutdown files, then chmod 755 rc.sysinit and chmod 755 rc.shutdown.

Rebooted and hung at no permission etc.

Rebooted from live cd and brought up xwin

Highlighted rc.sysinit then left clicked (Left handed mouse!) rc.sysinit and changed permissions to "make executable" . Repeated for rc.shutdown.

Rebooted, worked but some things were still missing.

Left clicked on r.c.sysinit, change permission, "give owner read/write"

Rebooted from the hd and everything works normally again.

Shut the power off then booted from the HD. File checker came on and cleaned up. Impressive. Everything works normally.

One possible improvement: My Debian "Lenny" box runs the test script every 30th time the system is started. I think it may be possible to add that feature to full install Puppy.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#75 Post by BarryK »

Handling of improper shutdown for full hd installations is now officially supported. This will apply to future puppies built from Woof.

I have announced this here:

http://bkhome.org/blog/?viewDetailed=01434

I plan to build Quirky Puppy 010 in a couple of days, so any of you guys who are interested can give it a try out. I'll announce Quirky 010 on my blog when it is available.
[url]https://bkhome.org/news/[/url]

User avatar
pri
Posts: 342
Joined: Fri 09 Oct 2009, 18:31
Location: Bandung Indonesia
Contact:

#76 Post by pri »

BarryK wrote:Handling of improper shutdown for full hd installations is now officially supported. This will apply to future puppies built from Woof.

I have announced this here:

http://bkhome.org/blog/?viewDetailed=01434

I plan to build Quirky Puppy 010 in a couple of days, so any of you guys who are interested can give it a try out. I'll announce Quirky 010 on my blog when it is available.
i am looking for update for woof, but cant find how to update ? what file is updated ? :roll: :lol: :oops:
Learning by Doing

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#77 Post by 01micko »

pri wrote:
BarryK wrote:Handling of improper shutdown for full hd installations is now officially supported. This will apply to future puppies built from Woof.

I have announced this here:

http://bkhome.org/blog/?viewDetailed=01434

I plan to build Quirky Puppy 010 in a couple of days, so any of you guys who are interested can give it a try out. I'll announce Quirky 010 on my blog when it is available.
i am looking for update for woof, but cant find how to update ? what file is updated ? :roll: :lol: :oops:
pri

Do you have bones? If so, navigate to your "woof" directory and type "bones download'. It is explained on bkhome.org/bones

Cheers :)
Puppy Linux Blog - contact me for access

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#78 Post by BarryK »

Quirky 010 is out, so you can grab a complete distro to test the new improper shutdown handling if you wish:

http://bkhome.org/blog/?viewDetailed=01443
[url]https://bkhome.org/news/[/url]

dr_tight_jocks
Posts: 1
Joined: Mon 29 Mar 2010, 04:04

Laptop stops at command prompt after GRUB on reboot

#79 Post by dr_tight_jocks »

G'day SilverPuppy,

I love your efforts to this end. I'm a Unix/Linux newbie, with many years of Windows experience at both hardware and software level from my MS-DOS days to the present. I'm setting up an old Toshiba Tecra 8200 PIII laptop with 512Mb RAM & 20Gb Hdd for my elderly father-in-law to surf the net to look up past events and friends/family and possibly use webmail.

Here is what I have done so far...
  • --1. I have downloaded and completed a full hdd install of the latest Puppy 4.3.1 Seamonkey.iso install as the the only OS on the system on one partition (sda1) alongside a second Linux swap-file partition (sda2).
    --2. I have replaced my rc.sysinit & rc_shutdown files with yours and set the permissions of each file with the "chmod 755" command.
    --3. I have removed the laptop main battery and simulated a power failure where upon the system boots up to the GRUB selection screen then
    • -a. it detects the improper shutdown and reboots.
      -b. brings up GRUB menu again then checks the disk.
      -c. the system then sits at a command prompt displaying the following...
Starting up...
Making the file system usable...
Performing filesystem check after improper shutdown...puppy:inode2 ref count is 15, should be 17. FIXED.
puppy: *****REBOOT LINUX*****
puppy:14925/114804 files (0.1% non-contiguos), 323578/4590565 blocks done
Updating... done
Loading kernel modules... done
Loading swap partition /dev/sda2... done
waiting for modules to complete loading... pcmcia usb done
Setting up services (network, printing, etc)... [backgrounded]
Recognising media devices... optical done
#
    • -d. I type in "reboot" and hit enter with the screen clearing to display...
puppy is shutting down
mounted directly, session alread saved
Terminated
#
    • -e. I then manual power off via the laptop power switch.
      -f. Wait 30 seconds and manual power on via the laptop power switch.
      -g The system powers up to the GRUB menu then moves on as per normal to stop and display a XORG warning asking to "Ignore" a incomplete shutdown or to go to a "Command line".
      -h. I choose "Ignore" and it boots up correctly.
I had to edit my GRUB menu.lst file to add pfix=force to allow the laptop to automatically shutdown the power after a "Shutdown" of the X GUI. This works fine prior to installing your files and after it. They are the only changes I have made since the full Hdd install of Puppy 4.3.1.
So, my question is is this a known problem and can you suggest a possible work around?

I look forward to any pertinent advice.

The Doctor

Newuser
Posts: 18
Joined: Wed 31 Mar 2010, 06:48

#80 Post by Newuser »

Hi there I am new to puppy and I need some serious help in the 36 hrs puppy has crashed when using firefox,seamonkey, the pc has froze and being new I have not know how to recover from this so yes I did the reset button on my case and everytime puppy has not loaded past the # sign I tried dl the files and tried to make puppy execute it but I crashed again. I am not going to do any updating of puppy until I can get this crashing and being able to reboot down to a art form. So could someone point me in the right direction of installing these file correctly and any other file which is zipped many thanks.

Pc has crashed 5 times had to reinstall everytime

Post Reply