LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Recovering Slack After Power Failure.. (https://www.linuxquestions.org/questions/slackware-14/recovering-slack-after-power-failure-153172/)

sxa 03-03-2004 04:34 PM

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..

slackwarefan 03-03-2004 04:42 PM

Not exactly sure about what youre saying, but it sounds like a filesystem error, try fsck.

sxa 03-03-2004 04:53 PM

I booted the machine up again so I could tell you the excact errors, and it booted into slack..

Thanks anyways..

Peacedog 03-03-2004 06:29 PM

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.

sxa 03-03-2004 07:46 PM

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..

mhiggins 03-03-2004 09:24 PM

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

gnashley 03-04-2004 12:36 AM

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.

Peacedog 03-04-2004 06:42 AM

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.

sxa 03-04-2004 02:38 PM

My file system is ext2... and my UPS is a APC 500..

xushi 03-04-2004 03:01 PM

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

chris26 03-04-2004 06:06 PM

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.

J.W. 03-04-2004 08:40 PM

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.

sxa 03-06-2004 05:44 PM

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..


All times are GMT -5. The time now is 08:43 PM.