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 Wed 22 Oct 2014, 04:17
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Make Puppy recover automatically from improper shutdowns
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 4 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
SilverPuppy


Joined: 28 May 2009
Posts: 143

PostPosted: Tue 02 Feb 2010, 22:39    Post_subject: Why not full installation, people?  

I do understand the portable environment benefits of Puppy, but that said, why wouldn't you just do a full install on a small partition in this situation? Then you can use my files and have recovery fully automated, and everything wonderful!

Not only can it automatically fix the problems idiots introduce by dumping computers in a heap instead of turning them off nicely, but you also experience the following benefits running full vs. frugal:

1. The SFS system uses RAM, as everything else does. Running off a LiveCD I've observed as much as 17MB of additional RAM usage compared to a full install.

2. The SFS decompression takes up a significant amount of CPU time on low-powered computers. Running full installations removes this load as well.

I would recommend using EXT3 when you do, as the journaling makes it easier for fsck to fix things, but that's just a fringe benefit. Very Happy
Back to top
View user's profile Send_private_message 
sindi

Joined: 16 Aug 2009
Posts: 395

PostPosted: Wed 03 Feb 2010, 01:37    Post_subject: Fixed inode count problem Puppy 4.31 frugal
Sub_title: bad hard drive caused errors
 

I kept running e2fsck on pupsave.2fs and new errors kept developing. Copied the files from one 2 GB hard disk without UDMA support to a slightly newer one with UDMA support which runs twice as fast. No more errors. Normally frugal install can recover from improper shutdown. I had too many unfixable crashes with full install that e2fsck could not fix.

Only the pupsave.2fs file ever got the bad inodes so I ignored it and started fresh. DOS works okay on that drive. Puppy works on a 400MB drive without UDMA.

With 256MB RAM, I don't worry about losing 17MB of it. Puppy does run faster from memory than from hard disk on older computers (at 300MHz it was up to 5 sec between click and program appearing on screen). The full install appears not to load into RAM.
Back to top
View user's profile Send_private_message 
DarinB

Joined: 30 Dec 2009
Posts: 24

PostPosted: Wed 03 Feb 2010, 09:15    Post_subject:  

I am using a full install. of 431 please explain how to use your files. i had a couple of bad shut downs but after typing reboot it came back, i am a newbie to this and don't know if i am using ext 2 or ext 3 and if that matters. Since this is an old p3 256mb ram lap top with a dead motherboard bat and pc bat i use the power cord that sometime falls off. BUT with pup this thing is really fast and i love it.
Back to top
View user's profile Send_private_message 
nassausky

Joined: 07 Jun 2008
Posts: 26

PostPosted: Wed 03 Feb 2010, 22:31    Post_subject:  

This thread has been very interesting. Thanks for the interesting scripts you pieced together. I actually had a problem this sunday. I was running terminal in a secure session and decided to reboot puppy 4.31 by using the 'reboot' command. Waited a while and never regained ssh control of the puppy linux box remotely. Showed up at the client and it was stuck at the root prompt #. The USB Keyboard wasn't working. Wound up reinstalling Puppy 4.31. It happened again this afternoon. I thought it was a rare situation until I typed 'reboot' again and it seems that it doesn't cleanly reboot the computer. Anyhow my question is if I plug in a PS/2 keyboard and I have access to the root prompt. Can I just install the 4.31 files into the /etc/rc.d folder and change their permissions and run it after whatever damage was done to the file system or is it too late already and should I reinstall puppy again for the 2nd time.
Back to top
View user's profile Send_private_message 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Thu 04 Feb 2010, 03:12    Post_subject:  

SilverPuppy :
the script is work on 4.3.1, but there is a new problem. i must set up mouse every boot.

_________________
Learning by Doing
Back to top
View user's profile Send_private_message Visit_website YIM 
nassausky

Joined: 07 Jun 2008
Posts: 26

PostPosted: Thu 04 Feb 2010, 22:47    Post_subject:  

So far one test run of the script on a virtualbox machine with Puppy 4.31 the script didn't restart the GUI. It was able to sense the irregular shutdown and rebooted a 2nd time and ran a file check but then it returned to the root prompt#
Back to top
View user's profile Send_private_message 
tmay

Joined: 05 Feb 2010
Posts: 3

PostPosted: Fri 05 Feb 2010, 22:22    Post_subject:  

Hello all this is my first post on this site. I have found your topic to be very interresting and have attempted to follow along. but have been unsuccessful. I have a old gateway 700c that i have been fixing for my daughter and would really like to get this to work. any help would be appreciated. I have backed my original files and have even altered them to match yours silverpuppy. but am unable to boot off hard drive. I am using puppy 4.3.1. thanks in advance
Back to top
View user's profile Send_private_message 
nassausky

Joined: 07 Jun 2008
Posts: 26

PostPosted: Sat 06 Feb 2010, 08:59    Post_subject:  

Just a note again for newcomers... This is for a Full Install not a Frugal Install and the scripts have to be chmod 755 to get them to execute. It seems on my test runs it's sporatic and works some of the time. Has anyone tested it a few times?
Back to top
View user's profile Send_private_message 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Sat 06 Feb 2010, 10:20    Post_subject:  

i tested, but have problem always ask seting mouse every boot.
_________________
Learning by Doing
Back to top
View user's profile Send_private_message Visit_website YIM 
SilverPuppy


Joined: 28 May 2009
Posts: 143

PostPosted: Mon 08 Feb 2010, 09:39    Post_subject: Sounds like a classic case of.....  

OOPS! Very Happy

I think your mouse problem is that you picked the wrong rc set. If you put the 4.1 set with 4.3, there's no telling what will happen. At the least, it will act more like 4.1.

As for working intermittently, I have never had problems with that. Properly configured, this works every time. I have dumped test machines several times, and they always recovered to a happy X.

That said, my test machines were all real.....I have no idea what will happen in a virtual machine. Use at your own risk there.

Tmay who can't boot: did you load grub properly? Did it boot before you changed the files out? Did you use the correct set of files? You'll have to be MUCH more specific about the behavior you're getting if we're to be able to help.

Nassausky, I have noticed that if you type reboot in a terminal on Puppy, it will throw a fit. I've only ever tried it in a local RXVT, but I'd imagine that it might do the same thing when you're logged in with telnet-ish (I presume that's what you did, sorry, I'm still rather addicted to doze....) ....I'd presume that you can just dump the files in and boot it for repair, but do note that you'll have to do 2 things: verify that the partition matches in the e2fsck line, and create a file called /tmp/RUNNING (can be empty) so that it realizes that it was improperly shut down.

Hope that helps....believe it or not, I'm actually somewhat new to Linux, but I understand the way it thinks pretty well because of my childhood DOS and BASIC life. Laughing
Back to top
View user's profile Send_private_message 
SilverPuppy


Joined: 28 May 2009
Posts: 143

PostPosted: Mon 08 Feb 2010, 09:41    Post_subject: Please review.....  

DarinB wrote:
I am using a full install. of 431 please explain how to use your files. i had a couple of bad shut downs but after typing reboot it came back, i am a newbie to this and don't know if i am using ext 2 or ext 3 and if that matters. Since this is an old p3 256mb ram lap top with a dead motherboard bat and pc bat i use the power cord that sometime falls off. BUT with pup this thing is really fast and i love it.


EXT2 or EXT3 doesn't strictly matter, but in your situation I suggest EXT3 because the journaling makes it a bit more forgiving, albeit it does give you slightly less usable space and slightly worse write performance.

If you start at the top and read down, I think you'll understand deployment pretty well.
Back to top
View user's profile Send_private_message 
SilverPuppy


Joined: 28 May 2009
Posts: 143

PostPosted: Mon 08 Feb 2010, 09:48    Post_subject: RAM it?  

sindi wrote:
With 256MB RAM, I don't worry about losing 17MB of it. Puppy does run faster from memory than from hard disk on older computers (at 300MHz it was up to 5 sec between click and program appearing on screen). The full install appears not to load into RAM.


You're right, it doesn't. I prefer that behavior. I don't see the sense either of storing the entire OS and the core apps in RAM all the time, or of constantly compressing and decompressing stuff to make that possible. It does slow things down, and very noticeably on old original Pentium machines that are a bit more CPU-cycle starved.

But to each their own. That's Linux for you! Very Happy
Back to top
View user's profile Send_private_message 
nav2k4

Joined: 12 Feb 2010
Posts: 1

PostPosted: Fri 12 Feb 2010, 18:29    Post_subject: Power Failure
Sub_title: X does not start after power failure
 

Hey guys,

I am trying to use puppy 4.3.1 as a terminal services (RDP) client. I am using the PCTSC scripts to accomplish this.

The problem is that when ever a user resets the computer or there is a power failure it loops trying to start X. I have tried the methods suggested in this thread and various other threads on this forums but it still seems to be broken.

Here is a list of files that I have edited:

rc.sysinit
Code:

busybox mount -t proc none /proc ;STATUS=$((STATUS+$?))
if [ -f /RUNNING ];then
echo -n "(Checking Filesystem..)" >/dev/console
 e2fsck -p -f /dev/sda1 &
 wait
fi
if [ ! -d /initrd ];then #w468
 busybox mount -o remount,rw /
 echo 'PUPMODE=2' > /etc/rc.d/PUPSTATE
fi
. /etc/rc.d/PUPSTATE #variables created at bootup by init script in initrd.

#v409 mount/umount scripts no longer write to /etc/mtab, as gparted failed to create a
#ext3 partition -- dunno why. Instead, now have /etc/mtab a symlink to /proc/mounts...
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
#-------------------------------------------------------------------------------------------------
##############SHUTDOWN RECOVERY Add to /etc/rc.d/rc.sysinit################
#If we were not shutdown cleanly, try and recover
if [ -f /RUNNING ];then
 echo -n "(Cleaning up after Unclean SHUTDOWN)" >/dev/console
 rm -f /var/log/X*
 rm -f /RUNNING
 rm -rf /tmp/*
 rm -f /var/lock/LCK*
 rm -f /var/run/*.pid
 rm -rf /root/tmp 2>/dev/null
 rm -rf /root/.thumbnails/* 2>/dev/null
 rm -f /etc/.XLOADED
fi

###################Detect Bad Shut######################
#create a file in tmp that should be deleted on a clean shutdown
if [ ! -f /RUNNING ];then
 echo 'this file is deleted during a clean shutdown' > /RUNNING
fi
#-------------------------------------------------------------------------------------------------

#redirect all output to a log file (must do after remount rw)...
[ ! "$LOGLEVEL" ] && exec 1>/tmp/bootsysinit.log 2>&1



rc.shutdown

Code:

echo "${DISTRO_NAME} is now shutting down..." > /dev/console
#------------------------------------------------------------
rm -f /RUNNING
echo "Puppy is deleting RUNNING..." > /dev/console
#------------------------------------------------------------
ORIGPUPMODE=$PUPMODE #v2.22


I have attached the file that pctsc uses to call pctsc.auto.tsc which runs rdesktop.

Any help solving the power issue will be greatly appreciated Smile

EDIT: Oh and the filesystem im using is ext3, full-HD install
root.zip
Description 
zip

 Download 
Filename  root.zip 
Filesize  2.37 KB 
Downloaded  283 Time(s) 
Back to top
View user's profile Send_private_message 
arcadeko

Joined: 12 Feb 2010
Posts: 14

PostPosted: Sat 13 Feb 2010, 03:32    Post_subject:  USB Flash Drive recovery not an issue?  

I installed puppy on a flash drive using the installer at

http://www.pendrivelinux.com/install-puppy-arcade-to-a-flash-drive-from-windows/

posted this http://www.murga-linux.com/puppy/viewtopic.php?t=52455

then spent the past hour reading every post in this thread Very Happy

- Since I am a total Puppy noob and only learned about it yesterday :X I donn't know if I am going to have an issue with using the 4GB USB drive as the ONLY drive for the computer. I have it all booting up fine and I even yanked the cord a few times just to see if it would fail on resume -
I guess I tested it about 3 times and no problems, but then I read this thread and now I am worried again.

Do I need to install a script to run fsck on the flash drive? is that even possible?

I am guessing its a Frugal install (since its for a pendrive and I had to install the dev-XXX-.sts thingy manually to compile C code) and since Wikipedia says flash memory doesn't usually (can't maybe?) use journaling, I am guessing I am using ext2 not ext3...

I want to use this as the system for a arcade cabinet running puppy arcade - the machine will invarably get unplugged often, do I risk turning my arcade cabinet into a 150 lb paperweight until I hook up a CD drive and try to reinstall? Shocked

man, reading more just creates more questions.. head hurt, must stop now...
Back to top
View user's profile Send_private_message 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Mon 15 Feb 2010, 08:10    Post_subject:    

hei... great.....

look like i was wrong download.... Laughing Laughing

thk now i included on mu puppy remastered

_________________
Learning by Doing
Back to top
View user's profile Send_private_message Visit_website YIM 
Display_posts:   Sort by:   
Page 4 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
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.1005s ][ Queries: 13 (0.0101s) ][ GZIP on ]