LinuxQuestions.org
Visit Jeremy's Blog.
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 06-01-2006, 03:16 PM   #1
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Rep: Reputation: 15
Question Improper shutdown question...


Greetings

No modern operating system (Windows, Linux, etc) likes to be shut down improperly which is why you should always shut it down from the start/system menu but what happens when you have multiple power outages, crashes, programs freeze up, etc over a period of weeks or months and you have no other choice but to just shut your computer off at the switch (manually)?.

In cases like this, would it be better to simply hit the "reset" button on the front of your PC or does'nt it matter?.

How do you "gracefully" recover from crashes/freezes/outages without corrupting your OS and ending up with all kinds of errors (ie; kernel panic, bad_geometry, disk error, etc) until it is so screwed up that it is no longer bootable and you have to start all over again with a complete reinstallation?.

Also, is there someway to whip your system back into shape after such crashes or some way of running an integrity check and correcting any/all problems?. I just hating having to do fresh installs every month or so.

Incidentally, I'm using Fedora Core 5 w/Gnome. Thank's for any assistance I can get on this (I really do appreciate it!).

- Regards, TT
 
Old 06-01-2006, 03:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
In the case of a hard freeze you would be much better using the reset button than a hard power off as it shouldn't damage the hardware. If you have multiple freezes or kernel panics then I'd seriously look into why this is happening as in theory it shouldn't happen at all.

If you have frequent power problems then put a UPS in place, even a cheap ups with surge protection will get you over most power glitches except prolonged outages.

Fedora should check it's filesystems automatically after a crash but if you want to run a manual check then fsck is the tool you are after. Some other services may require additional checks at an application level. Databases are a good example, the tools will obviously vary on the server and backend.
 
Old 06-01-2006, 03:36 PM   #3
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Thank you. Your information was very helpful and makes a lot of sense. I will use the "reset" button from now on but will this do a better job of preventing the OS from becoming corrupt than simply using the off button?.

Also, I su'd into root and typed "fsck" and nothing happened so next, I searched for "fsck" in the package manager. Still nothing. How do I go about obtaining this tool and does it have a frontend/GUI?.

Thank's again for your help.

- Regards, TT
 
Old 06-01-2006, 04:03 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The reset button shouldn't make any difference to the OS becomming corrupt however it should greatly reduce the chance of any physical damage to your disks and in turn reduce the chance of data loss.

I've not used any frontends for fsck. I'd be surprised if it isn't installed. When you su try using "su -" to load a complete root session which should add additional paths to your $PATH variable.

The man page has all the details "man fsck". Make sure you have the filesystems unmounted when you check/repair it though.
 
  


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
improper shutdown eating up space wincrk Linux - Networking 3 05-03-2006 04:32 AM
Improper Shutdown... errrr adubb Linux - General 3 01-30-2006 11:10 AM
where to find improper shutdown logs linylion Linux - General 4 09-08-2004 12:59 AM
recovering from improper shutdown: ext3 kngharv Linux - Newbie 2 06-11-2003 10:29 PM
HDD problem after improper shutdown... Azazel Linux - Newbie 2 01-19-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 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