LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   DamnSmallLinux (http://www.linuxquestions.org/questions/damnsmalllinux-42/)
-   -   What to do to prevent dsl backup from being corrupted when power is lost? (http://www.linuxquestions.org/questions/damnsmalllinux-42/what-to-do-to-prevent-dsl-backup-from-being-corrupted-when-power-is-lost-788895/)

aarcov 02-13-2010 10:58 AM

What to do to prevent dsl backup from being corrupted when power is lost?
 
I am new to linux and have an old computer with dsl on it. I discovered that when ever I lose power and reboot it tells me it is unable to boot because the backup files are corrupted. I was planning to turn it into a server when I became more knowlegable on the subject, since this has happened though I am not sure exactly what to do. I have reinstalled dsl, but am wondering if there is a way to prevent these files from getting corrupted. I am short on money, so I would prefer not to have to buy a ups.

MS3FGX 02-13-2010 12:35 PM

Unix operating systems in general don't handle hard shutdowns well because of how the OS handles open files and write operations. Some filesystems handle this more gracefully than others, but there is always a risk.

As DSL is in no way designed to be a server OS, it doesn't use advanced filesystems or any techniques to prevent this from happening.

aarcov 02-13-2010 01:22 PM

so do is there a program, that I can use to prevent this, or make an extra backup that I can then use to repair the corrupt files?

aarcov 02-18-2010 06:18 PM

Does anyone know if I could solve this problem by trying to do a usb install on the hard drive? Would I run into any problems trying it?

MS3FGX 02-18-2010 06:31 PM

There is no way to solve the problem other than getting a UPS. If you have a filesystem mounted read/write, and the power cuts out, there is a risk of corruption.

You can leave it mounted read-only, but then you will obviously have limited capability. This may or may not work out for you, depending on your situation and needs.

jlinkels 02-18-2010 07:47 PM

It is unusual for installations to get damaged by power loss to the point you cannot boot.

This holds because you hardly ever write to your boot partition or you system drive during normal use. What you write most is your home partition (or directory) and /var/. But even if the /var/ file system is corrupted this should not preclude you from booting.

What file system are you using? Is it ext3? This should be pretty immune to power loss. And what backup files are you talking about? Why would a corrupted backup file prevent you from booting. What exactly are you doing?

I know what I am talking about. I am running a server and 4-5 clients at home and I suffer a power loss 6 times per year on average. Never lost one single file. Hard disks I lost but that is classified as hardware error.

jlinkels

MS3FGX 02-18-2010 08:03 PM

The topic creator seems to be referring to some DSL-specific function that loads configuration data from a local storage device, as normally it is only a live-OS.

aarcov 02-19-2010 07:58 PM

I haven't tried a frugal hard drive install, so I can't say if It would affect that but I do know that it doesn't affect the usb install. I think some of it might have to do with dsl being a fairly "bare-bones" os compared to some other os's. It does boot but it then says that the back up files are corrupt (their the files that have the desktop setup, ect.) it's really annoying and is what is keeping me from setting it up as a server.

jlinkels 02-19-2010 09:27 PM

You seem to be knowing what you are talking about. So why don't you just install another distro which is not that vulnerable to data loss at power outage.

Do you have very strict requirements which force you to use DSL?

jlinkels

aarcov 02-21-2010 10:44 AM

I like it because it is small, but no I don't have any requirements to meet other then being able to run on 120mb of ram(the onboard graphics eats up the other 8). I may end up using another os then, although I would like to find a solution.

jlinkels 02-21-2010 12:53 PM

Do you need a GUI? You said you intend to use this machine as a server. If you don't use a GUI, almost all distro's run comfortably in 120 MB.

If you do need a GUI, search the net for recommendations of lightweight distro's. At least you'd need a lightweight desktop manager, but those also exist in many flavors.

http://en.wikipedia.org/wiki/Compari...indow_managers

jlinkels


All times are GMT -5. The time now is 07:26 PM.