LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-03-2004, 05:34 PM   #1
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Rep: Reputation: 49
Recovering Slack After Power Failure..


I am about to give up with slack.. due to the fact that it can't hold up when not shut down the correct way.. Where I live the power goes off quite a bit.. I have bought a back-up, but last night I woke up in the middle of the night with that thing beeping.., I could not get it to reset so I turned it off..

Today when I got home from school and tried booting into my system, I get a filesystem error.. It says it fixes the INODEs, and then it reboots.. and does the same thing..

This is the second time this has happened.. and this time I want to try to do it without re-installing slack.. Is there a way to recover it?

Right now I am not at my computer, but I can get more information when I am in my room..
 
Old 03-03-2004, 05:42 PM   #2
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
Not exactly sure about what youre saying, but it sounds like a filesystem error, try fsck.
 
Old 03-03-2004, 05:53 PM   #3
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Original Poster
Rep: Reputation: 49
I booted the machine up again so I could tell you the excact errors, and it booted into slack..

Thanks anyways..
 
Old 03-03-2004, 07:29 PM   #4
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 168Reputation: 168
Quote:
Where I live the power goes off quite a bit.
may i suggest a smart ups w/ a software package that will detect power outages and shut down the machine safely. i'm using an apc, w/the pwrchute suite. just a suggestion.
good luck.
 
Old 03-03-2004, 08:46 PM   #5
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Original Poster
Rep: Reputation: 49
Now tell me my friend, I have a UPS with a USB connection to my computer.. but I have not found any software for Linux.. Its a UPS 500, and if you know where I can get linux drivers and software, please inform me, it would be great to have..
 
Old 03-03-2004, 10:24 PM   #6
mhiggins
Member
 
Registered: Feb 2004
Posts: 140

Rep: Reputation: 15
I'm not sure what file system you are using ext3, reiserfs ? Either way you may benefit from running your file systems fsck utility with the force option and bad blocks checking turned on.
This could turn up potential physical damage to your hard disk.

As an aside it is not clear that Slackware is the cause of you problems with respect to your file system corruption. It is more likely that your problems are related to file systems itself or the har disk its running on.

-Matt
 
Old 03-04-2004, 01:36 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,776

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I suspect that you have installed on an ext2 flesystem. ext2fs is more compact but reiserfs is more stable. If you are using ext2fs I would convert the file system to reiser file system as it is more stable. (journalled file systems keep a record of all changes to the file system). I haven't done a conversion myself (I usually just install to reiserfs) but there is a tool reiserfstune or something like that that will convert from ext2 to reiser. search the forum here as there have been posts recently on this.
 
Old 03-04-2004, 07:42 AM   #8
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 168Reputation: 168
Quote:
Originally posted by Freakygeek55
Now tell me my friend, I have a UPS with a USB connection to my computer.. but I have not found any software for Linux.. Its a UPS 500, and if you know where I can get linux drivers and software, please inform me, it would be great to have..
what model ups? is it an apc, or best, etc. whatever model, have a look here.

http://www.google.com/linux?hl=en&lr...=Google+Search

good luck.
 
Old 03-04-2004, 03:38 PM   #9
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Original Poster
Rep: Reputation: 49
My file system is ext2... and my UPS is a APC 500..
 
Old 03-04-2004, 04:01 PM   #10
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
I have my Slack on a duron 850, with ext3 as my filesystem

Many many a times my foot accidentaly pushes the power plug out of the socket, and many times it powers off improperly, but it never screwed up the filesystem or any of my data.

It just runs a few tests and fixes a few things, reboots, and goes back to normal.

I suggest you give ext3 a try, i have it running both on my duron 850, and my p133 machines. It could save you some trouble.

HTH
 
Old 03-04-2004, 07:06 PM   #11
chris26
Member
 
Registered: Nov 2003
Posts: 40

Rep: Reputation: 15
ext2 filesystems DO get screwed up when you turn the computer off incorrectly. There is nothing you can do about it. Try using a different filesystem, like ext3.
 
Old 03-04-2004, 09:40 PM   #12
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Dude - how about just powering down when you are finished using the PC? That will eliminate the issue of a power failure causing a hard shutdown when the machine is not in use, and if the power goes out while you're in the middle of using it, your UPS presumably has sufficient reserves to permit you to manually shut it down gracefully. Seems to me that if the power supply is that unreliable in your area, then having to manually boot up each time you want to use the PC would be a small price to pay for the piece of mind of not having to worry about a power failure possibly killing your box.

I agree with mhiggins though that this situation really should not be blamed on Slack. Power failures are inherently risky in terms of physical damage to your PC even with a UPS, and you'd face the same risks regardless of what OS is installed. I do agree though that ext3 is superior to ext2 in terms of recoverability, and would recommend switching. The main thing though really would be just not to leave the PC running constantly if there is such a high likelihood of frequent power failures, irrespective of whether you've got a UPS. Just my 2 cents -- J.W.
 
Old 03-06-2004, 06:44 PM   #13
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Original Poster
Rep: Reputation: 49
I guess you guys are right.. I should just power down, or switch filesystems.. I use ext3 with fedora, I did not the difference, I just selected the default with Fedora, and I was afraid that using the same with Slack would cause confusion.. so I chose ext2..

Also I got a new battery for my power supply, so I should be better off now anyways.. Yet I don't know how that battery messed up the power supply is only about a year or so old..
 
  


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
need help.. power failure now no boot vbtalent Fedora 2 11-02-2005 07:51 PM
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 11:14 AM
rc.local and power failure omnia Red Hat 2 01-04-2005 11:40 AM
help!, power failure, fsck lin00b Linux - Newbie 3 08-19-2004 06:48 AM
power failure = no root tobysaville Linux - General 1 06-22-2004 07:39 AM


All times are GMT -5. The time now is 04:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration