LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices

Reply
 
Search this Thread
Old 02-13-2010, 10:58 AM   #1
aarcov
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Rep: Reputation: 0
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.
 
Old 02-13-2010, 12:35 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
1 members found this post helpful.
Old 02-13-2010, 01:22 PM   #3
aarcov
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 02-18-2010, 06:18 PM   #4
aarcov
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 02-18-2010, 06:31 PM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 02-18-2010, 07:47 PM   #6
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,187

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
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
 
Old 02-18-2010, 08:03 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 02-19-2010, 07:58 PM   #8
aarcov
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 02-19-2010, 09:27 PM   #9
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,187

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
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
 
Old 02-21-2010, 10:44 AM   #10
aarcov
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 02-21-2010, 12:53 PM   #11
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,187

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
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
 
  


Reply

Tags
backup, corrupted, damnsmalllinux, dsl


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
lost some folders - hd corrupted? sycamorex Linux - Hardware 5 03-24-2008 05:31 PM
files get corrupted every time there is a power interruption mam Linux - Newbie 2 05-15-2006 03:02 AM
Enable Power Save on My Linux Laptop to Prevent Lost of Data lennysokol Linux - Laptop and Netbook 4 06-01-2005 02:11 AM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 10:01 AM
power failure corrupted parition nifflerX Linux - General 6 10-21-2004 12:08 PM


All times are GMT -5. The time now is 04:22 PM.

Main Menu
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