Make Puppy recover automatically from improper shutdowns
- SilverPuppy
- Posts: 143
- Joined: Fri 29 May 2009, 02:21
EXT3 is fine
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.
Even if the e2fsck line is messed up, it should still generally work. I'm not sure where you made a wrong turn.
- Colonel Panic
- Posts: 2171
- Joined: Sat 16 Sep 2006, 11:09
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.
- SilverPuppy
- Posts: 143
- Joined: Fri 29 May 2009, 02:21
Great stuff!
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.
Search for my username "SilverPuppy" to find the pieces I've added.
-
- Posts: 150
- Joined: Tue 29 Jan 2008, 21:11
- Location: Lancashire,U.K.
- Contact:
-
- Posts: 242
- Joined: Tue 26 Jan 2010, 19:37
- Location: Florida
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
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.
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
What does this mean and how do I do that?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)
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.
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.
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
-
- Posts: 242
- Joined: Tue 26 Jan 2010, 19:37
- Location: Florida
Neither workedrjbrewer 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.
(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
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.
(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
-
- Posts: 242
- Joined: Tue 26 Jan 2010, 19:37
- Location: Florida
It seems to have kept the 2 for me: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.
PUPMODE=2
ATADRIVES='sda '
PUP_HOME='/'
Sorry (I was trying not to derail this thread)(it's a pain having to hunt around trying to keep up with you on different posts)
omgosh omgosh omgosh it worked!!!!! Thank you thank you thank you!If still empty try copying tmp from live cd to full install.
- SilverPuppy
- Posts: 143
- Joined: Fri 29 May 2009, 02:21
Wow
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.
AFAIK, the /tmp folder SHOULD be empty at poweroff, but maybe I'm mistaken.
Just glad it's working.
Permissions
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.
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.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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 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]
i am looking for update for woof, but cant find how to update ? what file is updated ?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.
Learning by Doing
pripri wrote:i am looking for update for woof, but cant find how to update ? what file is updated ?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.
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
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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
http://bkhome.org/blog/?viewDetailed=01443
[url]https://bkhome.org/news/[/url]
-
- Posts: 1
- Joined: Mon 29 Mar 2010, 04:04
Laptop stops at command prompt after GRUB on reboot
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...
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
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...
- -a. it detects the improper shutdown and reboots.
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.
- -e. I then manual power off via the laptop power switch.
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
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
Pc has crashed 5 times had to reinstall everytime