LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2007, 01:38 AM   #1
odin123
Member
 
Registered: May 2002
Location: Lebanon
Distribution: PCLinuxOS
Posts: 80

Rep: Reputation: 15
Best practice when system freezes?


Hi all,

Yesterday, after clicking on the "suspend to disk" button of a PCLinuxOS distro as a normal user, and rebooting, the system hung up on the unlock screen.

Nothing worked; keyboard stopped responding, consoles were available, only the mouse was moving. The only solution was to do a hard reset.

Result: the partition and MBR became corrupted and boot only showed me "GRUB_" with the blinking prompt.

Tried Partmagic, Systemrescuedisk, Testdisk, all to no avail.

Luckily, I had a remastered livecd, so I re-installed and the losses were minimal.

Yet, that was half a day lost for a silly "suspend to disk" initiated by me as normal user.

Time is precious, and I wouldn't like to lose another day or two because of something similar.

So, back to the post's title: what should I have done to avoid all of this when the system froze? Was there a way out better than a hard reset?

I really don't want to go back to Windows...

Thanks a lot!
 
Old 09-07-2007, 04:44 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
How did you perform the initial reboot?
For example, did you suspend to disk and then hit the reset button? Or did you UN-suspend first?

Is it a laptop or a desktop?

Suspending to disk and then resetting the machine while suspended is not a good idea, as you can see.
It would be good to know if all goes well when you UN-suspend (before rebooting) to make sure un-suspend works first.. Also, does suspend-to-RAM work OK?

In any event, always use the logout & shutdown/restart buttons if you want to shutdown/reboot. Otherwise, due to the structure and nature of mounted linux filesystems, disk corruption can and will occur when a linux OS is not properly shut down. As you can see, when a running system is suspended to disk and shut down, the inconvenience and corruption are more-so.

I don't use pclinuxOS or suspend-to-disk, so I can't provide more specifics about your circumstance, but let us know if this explains anything for you, or if you have more info, please provide it.

 
Old 09-07-2007, 06:20 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,887

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
A few minutes research via www.google.com/linux was enough to show me that where laptops are concerned, there may be a hardware issue with "suspend to disk". Some people reported that PCLOS suspend to ram/suspend to disk worked flawlessly 'out of the box', while others reported that suspend to ram works and suspend to disk doesn't.

One reviewer (http://www.linux.com/articles/62199) reported that she solved the suspend to disk problem on her laptop by installing Kpowersave.

So, if you are using PCLOS on a laptop, you could try Kpowersave to see if that helps.
 
Old 09-07-2007, 06:32 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
Try the Magic SysRq keys before doing a hard power-off. Sometimes my laptop would freeze up irrecoverably, but just yesterday I had a problem where the SysRq keys let me perform an emergency, but clean, shutdown.

Note that on your laptop (as on mine) Alt+SysRq+X might be Alt+PrtScr+X, not Alt+Fn+PrtScr+X. Test for yourself.
 
Old 09-07-2007, 07:36 AM   #5
odin123
Member
 
Registered: May 2002
Location: Lebanon
Distribution: PCLinuxOS
Posts: 80

Original Poster
Rep: Reputation: 15
Thank you all!

I should have been more specific:

It's not a laptop, but a desktop.

The culprit program was, surprisingly, kpowersave.

The chain of events was:
1. Click on "suspend to disk" on the kpowersave icon
2. Normal suspension, system shutdown, hardisk shutdown
3. After a while, I turn the computer on (can't do anything else, the computer is totally off and cannot be rebooted otherwise)
4. Normal boot
5. Screensaver/locked session dialogue box appears

So far, all is normal and expected, then
6. sudden garbling of screen and locked dialogue box before I have time to put my password
7. total freezing
8. wait a while, total freezing still, all key combinations don't work (didn't try the "Magic SysRq keys because I didn't know them!)
9. hit the reset button
10. on reboot, get "GRUB_" with flashing prompt
11. nothing worked (at least with my limited knowledge) (Partmagic, Systemrescuedisk, testdisk); only thing I understood from the tests was that the partition had become corrupted
12. re-install livecd

That's it.
A pain, really, but more of a disappointment at how "easy" and how "innocently" a normal user can destroy a whole system!

Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System freezes often, not sure why Alotau Linux - General 15 08-08-2007 08:38 PM
System freezes in X shaun_bakker Linux - Newbie 7 06-06-2007 07:23 AM
System Freezes tomatoefish Linux - Hardware 2 10-02-2006 01:28 PM
System freezes newlinuxgeek Linux - Hardware 4 03-01-2005 06:45 PM
system freezes Clemente Mandriva 0 02-02-2004 08:50 AM


All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration