Boot issue after rude shutdown

Using applications, configuring, problems
Message
Author
ScottD
Posts: 39
Joined: Wed 04 Jul 2007, 16:06

Boot issue after rude shutdown

#1 Post by ScottD »

If power was removed or somebody forgets to shut down Puppy 3.0 gracefully on the next boot, the system goes into console mode, no message, no nothing. It looks broken. If the person has enough knowledge about linux and tries to run xwin you get a cryptic message about XWIndows crashing and how you need to run the xwizard...

This is all wrong and just the kind of thing that newbies hate about linux.

A dialog coming up with a message about not having been shut down correctly and doing a check disk unless the user says skip it and then booting into X is user friendly. Rudely dumping them to console mode is bad, bad bad!

How do I get rid of this rude behavior and have it automatically boot into X even if it was shut down incorrectly?

thanks, Scott

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#2 Post by paulh177 »

have a look at this thread for help.

While it doesn't bother me, I tend to agree that users (and puppy) deserve more graceful management of this condition, especially now puppy 3.0 is so slick and professional.

paul

ScottD
Posts: 39
Joined: Wed 04 Jul 2007, 16:06

#3 Post by ScottD »

Interesting thread, with the same issue I have.

That thread is a year old, the solution was not found, and the problem still exists..

It looks like control flags for starting X are being modified from multiple sources and no single individual knew all of them back then.

Hopefully somebody now knows????? Cause its STILL BROKE!

Scott

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

While I agree that a modern operating system should be able to handle an unexpected power failure more gracefully than that, it should be noted that Puppy was originally designed to run from a live CD. Puppy's amazing versatility has permitted it to run as a hd install, but perhaps with some rough edges.

I run Puppy from a multisession DVD. If I haven't done anything that I want to save, I just turn off the power. The next time Puppy boots, it is in the same state as the last time it was shut down properly. I don't know what happens if Puppy is run from a live CD with a save file on hd, and the power fails.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

I agree

#5 Post by ecomoney »

I agree, this issue has, more than any other, stopped puppy being useable by new linux users, and re-enforces stereotypes about linux. It was thankfully fixed by whodo when he managed the last community edition project 2.15ce. The fix will definetly be in the next 3.02ce edition as well. Its a shame it hasnt been integrated into mainstream puppy yet.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Bruce B

Re: Boot issue after rude shutdown

#6 Post by Bruce B »

ScottD wrote:
How do I get rid of this rude behavior and have it automatically boot into X even if it was shut down incorrectly?

thanks, Scott
How can you justify shutting down ANY operating system improperly?

I suggest try Vector Linux with a reisferfs filesystem, you'll probably be happy with it because its a good distro. Also, it will try and recover from your disorderly shutdowns without bothering you as much. And the damage will be a little less because of the filesystem type.

User avatar
d4p
Posts: 439
Joined: Tue 13 Mar 2007, 02:30

#7 Post by d4p »

add pfix=ram in your menu.lst

Bruce B

#8 Post by Bruce B »

Flash wrote:
I run Puppy from a multisession DVD. If I haven't done anything that I want to save, I just turn off the power. The next time Puppy boots, it is in the same state as the last time it was shut down properly. I don't know what happens if Puppy is run from a live CD with a save file on hd, and the power fails.
In your case the hard disk is probably not even mounted and writes to the pup_save file are buffered in RAM.

When running on the hard disk, disk writes that are happening will not happen and usually end up with a corruption of sorts. Also, writes, deletions, unmounting devices and other things that happen in an orderly shutdown won't happen.

The ext2 filesystem we run Puppy on is the most susceptible Linux filesystem for corruption. On the other hand, its also the fastest.

I liken Puppy to a hot rod car. It doesn't have electric windows and other automatic features, but it gets up and goes. It can also be a bit delicate, so keep spare parts around. (meaning backups)

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Puppy shutdown

#9 Post by ecomoney »

Puppy is running on about 100 computers in my local area, Ive been using it for 2 1/2 years. I have NEVER known anything be corrupted after an improper shutdown (which can happen, intended or not). This behavior just makes puppy seem fragile and complicated to the *majority of people*. Puppy is a distribution for Linux Newbs!!!

I agree that shutting down properly is a practice that should be encouraged. On ecopup, the screen that comes up on the next boot after an improper shutdown makes the user wait for about as long as it would have taken them to have shut down the computer in the first place!

If puppy is going to make it as a mainstream distribution it needs common real world scenarios like this handling gracefully, otherwise it will just become another distribution by developers for developers.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Bruce B

Re: Puppy shutdown

#10 Post by Bruce B »

Ecomoney,

This problem is very, very rare for me. I suppose because I do shut it down in an orderly manner, and Los Angeles rarely has power outages.

But I do think I've seen the 'problem' a couple times and all I need to do is type in xwin.

I want to know if we are on the same page. Is this what we are talking about?

Bruce

ScottD
Posts: 39
Joined: Wed 04 Jul 2007, 16:06

#11 Post by ScottD »

>>How can you justify shutting down ANY operating system improperly?

Personally I can't but we're talking users here. If I'm going to deploy Puppy it needs to be user friendly even when the unwashed public screw up. A pissing contest about how to shut a PC down won't solve the problem.

I'm looking for solutions not opinions.

thanks,

Scott

ScottD
Posts: 39
Joined: Wed 04 Jul 2007, 16:06

#12 Post by ScottD »

>>add pfix=ram in your menu.lst

How would that fix it??

Scott

ScottD
Posts: 39
Joined: Wed 04 Jul 2007, 16:06

Re: I agree

#13 Post by ScottD »

ecomoney wrote:I agree, this issue has, more than any other, stopped puppy being useable by new linux users, and re-enforces stereotypes about linux. It was thankfully fixed by whodo when he managed the last community edition project 2.15ce. The fix will definetly be in the next 3.02ce edition as well. Its a shame it hasnt been integrated into mainstream puppy yet.
Well I guess I can download 2.15ce and search for the changes..

Scott

Bruce B

#14 Post by Bruce B »

ScottD wrote:>>How can you justify shutting down ANY operating system improperly?

Personally I can't but we're talking users here. If I'm going to deploy Puppy it needs to be user friendly even when the unwashed public screw up. A pissing contest about how to shut a PC down won't solve the problem.

I'm looking for solutions not opinions.

thanks,

Scott
Scott, if you read up, I offered the best solution I can think of. Maybe you didn't recognize the sincerity of it.

I installed Puppy for a friend. His wife would turn the computer off like she does the television. I was getting too many complaints. I installed Vector Linux as I suggested above and haven't yet a problem or complain from them.

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#15 Post by HairyWill »

ScottD wrote:>>add pfix=ram in your menu.lst

How would that fix it??

Scott
it won't
adding the following line to /etc/rc.d/rc.local will though

Code: Select all

rm -f /etc/.XLOADED
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#16 Post by Flash »

HairyWill wrote:
ScottD wrote:>>add pfix=ram in your menu.lst

How would that fix it??

Scott
it won't
adding the following line to /etc/rc.d/rc.local will though

Code: Select all

rm -f /etc/.XLOADED
What does that do? :?

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#17 Post by HairyWill »

For further explanation please do a forum search for "xloaded"
I get 48 hits, most of which concern this exact subject..
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#18 Post by Pizzasgood »

In your case the hard disk is probably not even mounted and writes to the pup_save file are buffered in RAM.
Flash doesn't have a pup_save at all. Writes are directly to the DVD, and only happen when he explicitly tells Puppy to make them. So the only way he'd have a problem is if the power died mid-burn. Just so that's all clear.


Reasoning for Puppy's nagging = not because of bad shutdown, but as a precaution so that if Xwindows is broken to the point where it starts but you can't kill it, rebooting will dump you at the command prompt so you at least have a possibility of fixing it.

So it used to be important. It could be prettied up by changing it to a dialog box, just like I did for 2.15CE and Pizzapup. Easy way to see the changes: Compare the /root/.xinitrc files from 2.15 and 2.14 with tkdiff. I don't think there were many other changes, so they'll stand out pretty well.


Now Puppy supports a "nox" boot option, so perhaps it isn't necessary at all anymore? When booting LiveCD you could add the option during boot. With Frugal or FullHD, you can add it from Grub itself (press the 'e' key and follow it's directions to edit the command). So the only time there would be an issue is if booting from USB or potentially if you use a boot manager other than grub.

I think I've only had one time when I actually needed it. Every time I've ever broken X, it was broken enough that it wouldn't even load. The only time it would load and then immediately lock up was when I was trying to get two video cards and a tv tuner to all work at the same time (never did get it worked out, so I stuck the tuner in the other machine).
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
d4p
Posts: 439
Joined: Tue 13 Mar 2007, 02:30

#19 Post by d4p »

I'm not sure, how you installed puppy on your HD.
Assumed: Puppy normal installation & using Grub
This is what I did & it worked:
-boot your pc from puppy live cd
-mount your hd
-find grub folder
-add to your menu.lst pfix=ram (after that don't forget to save it)

# Linux bootable partition config begins
title Linux (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal pfix=ram
# Linux bootable partition config ends


-reboot your pc & remove your live cd
-& boot from your hd

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#20 Post by Pizzasgood »

....That would boot it in ram, without using the pup_save file. So if you don't care about saving anything in the pup_save file, I suppose it would "solve" the problem.

I dug up this post:
http://www.murga-linux.com/puppy/viewto ... 039#121039

I don't know if those exact changes still work in 3.xx, but you get the idea.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

Post Reply