Results 1 to 4 of 4

Thread: Backup for reliability

  1. #1
    FLAC PURDooM's Avatar
    Join Date
    Jun 2005
    Location
    Anoka County, MN
    Posts
    1,020

    Backup for reliability

    Alright, so im making a car computer software package that hopefully I can pass onto conplete strangers for their carputers. I am using gentoo linux and I have a question about this.

    Lets say the carputer suddenly turns off even if the shutdown controler didnt tell it too. There is a high possibility (at least when I do things) that something between the boot and login process will become corrupt (reiserfs) and the system wont boot correctly. So, I devise a plan: What if I put the entire base system (everything on / except the end users home dir files (mp3s and such)) on a 2nd partition in a compressed file. Then whenever chkdsk finds an error which needs root to repair it it simply invokes the backup command and read only copies the entire system to / and reboots.

    Feasable? Doing this the wrong way? Where is a good place to stick this kind of script?

  2. #2
    Newbie
    Join Date
    Dec 2004
    Posts
    48
    best way is to just install linux on a compact flash (read only) or some type of flash rom etc.. so if the system turns off/killed it wont effect the system files/boot process etc.. though compact flash isnt that fast to boot. But perhaps in suspend mode might be just fine

  3. #3
    pkg
    pkg is offline
    Low Bitrate pkg's Avatar
    Join Date
    Apr 2005
    Location
    Arizona
    Posts
    96
    Quote Originally Posted by PURDooM
    Alright, so im making a car computer software package that hopefully I can pass onto conplete strangers for their carputers. I am using gentoo linux and I have a question about this.

    Lets say the carputer suddenly turns off even if the shutdown controler didnt tell it too. There is a high possibility (at least when I do things) that something between the boot and login process will become corrupt (reiserfs) and the system wont boot correctly. So, I devise a plan: What if I put the entire base system (everything on / except the end users home dir files (mp3s and such)) on a 2nd partition in a compressed file. Then whenever chkdsk finds an error which needs root to repair it it simply invokes the backup command and read only copies the entire system to / and reboots.

    Feasable? Doing this the wrong way? Where is a good place to stick this kind of script?
    Well, the reason you use Journaling files systems like reiserfs, ext3, etc. is so the sytem can recover itself from a situation like this. When the system is incorrectly shutdown the system should run fsck on the potentially corrupt fs checking for and reparing any potential damage.

    If you felt you needed to restore an image you could just modify the script mentioned above (i dont know which one it is).

    Really though, there should be no reason to have to do the above step except in some really extreme cases. For the most part once you set up your system partitions they are not going to change. Really it will just be the data partition where writes are going to be happening. And only when people are importing their stuff to the system.

    Making the system read only is a pretty good idea too, the only thing is you may need to add a /var partition on your writable partitions for logs since some things can fail if they cannot write a log. Someone here will be able to verify this for us though.

    Keep us updated,
    -pkg

    Check out my tC: http://publicjestering.com/tc
    Check out my site: http://publicjestering.com

  4. #4
    Low Bitrate
    Join Date
    Jun 2002
    Location
    Cazenovia New York
    Posts
    60
    my system runs in read only just the way you were talking about, it writes to disk when it shuts down. the thing is I shut my computer down everytime I shut the car off (I have a reeeeeeeeeeaaaaaaaaaaaalllllllllllyyyyyyyyyy long driveway (1/4 mile)). aka I live in the boonies.
    This post college life is a real drag

Similar Threads

  1. Auto activate backup camera
    By SWC in forum Hardware Development
    Replies: 26
    Last Post: 04-24-2006, 09:40 PM
  2. Suggestions on Volvo S40 05 Backup Cam
    By silv3rman in forum Input Devices
    Replies: 8
    Last Post: 06-22-2005, 09:06 PM
  3. Backup Camera Screenshots, please.
    By Zoltan in forum General Hardware Discussion
    Replies: 12
    Last Post: 09-05-2004, 07:52 AM
  4. Backup My PS2 Games
    By chut in forum Off Topic
    Replies: 14
    Last Post: 07-11-2004, 10:36 PM
  5. Great working tank circuit with backup bat.
    By NightHunter in forum Power Supplies
    Replies: 6
    Last Post: 04-29-2004, 09:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •