Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: combating corruption to make my life better  (Read 2243 times)

0 Members and 1 Guest are viewing this topic.

jaharr01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 806
  • Last login:March 26, 2025, 01:48:10 pm
  • Try and fail, but don't fail to try
combating corruption to make my life better
« on: November 20, 2016, 01:04:42 pm »
Hey guys I been on a hiatus from arcades for a bit.In my time off I've been doing some thinking.The arcades I build mechanically never break or fail, the software always takes a big ---steaming pile of meadow muffin--- because the kids turn off the power switch or screw it up some how. Is there a way that you all keep the computers from getting corrupted, changed or whatever? Do you do like a special partition image? SSD with read only? It seems like that's the headache with this me is always going back and repairing mala or removing and replacing corrupted software from improper shut downs. Kids are the X factor, they always find ways to jack up computers. So what I was wondering was what you all do to combat this headache, besides beating your kids :lol.I am far from a computer programmer, try to limit it to simpler fixes.
                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                                          Jay

GeoMan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 183
  • Last login:August 04, 2025, 01:36:26 pm
Re: combating corruption to make my life better
« Reply #1 on: November 20, 2016, 01:35:07 pm »
Use Casper 10 from www.fssdev.com

I use it to clone PC hard drives using the built in scheduler (you can also do it manually). In case of a hd failure or corrupted OS just replace the drive with the backup drive - no time consuming restoring, booting from external hd/usb flash or anything else needed.

Because the backup is an exact clone of your boot drive you can also restore deleted/damaged files with simple drag and drop from the backup to the original hd.


pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11057
  • Last login:August 04, 2025, 08:50:04 am
  • Obey.
    • The Chris Burke Band
Re: combating corruption to make my life better
« Reply #2 on: November 20, 2016, 03:46:13 pm »
Only kid proof setup is DOS MAME and a dedicated button for each input. As soon as you introduce a console, shifted inputs, or Windows you're boned.


Mike A

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5906
  • Last login:Yesterday at 12:57:11 pm
  • This plan is foolproof
Re: combating corruption to make my life better
« Reply #3 on: November 20, 2016, 08:37:14 pm »
"combating corruption to make my life better"
I though this thread was going to be about Batman. :badmood:

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: combating corruption to make my life better
« Reply #4 on: November 20, 2016, 10:58:22 pm »
From the sound of it, you are trying to combat 2 issues:

1. Corrupting the OS from an unexpected and sudden loss of power

2. Jacking up the front-end/emulator/OS from random button mashing


Kids will be kids and they will inevitably find a way to crowbar your arcade. However, I have 2 kids under the age of 6 and they don't have a problem with #1. If I could potty train my kids, then I can train them not to yank the power cord form the back of the machine. And you should be setting the power button on your machine to NOT shut down the computer. Your front-end should be dong that. (To enable a graceful shutdown)

As far as #2 goes...if you have a good front-end and have it set up well...then no amount of uncontrolled button mashing will mess anything up. I've seen my 3-year old conduct a full-blown button machine fit...no harm done.
If you can read this, it means Photobucket's money grab ruined my signature photos.

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:Yesterday at 12:07:47 am
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: combating corruption to make my life better
« Reply #5 on: November 21, 2016, 01:01:00 am »
I have set with DOS for years and years and I always turn it off with a flick of the switch.... no problem...

if you want a HEADACHE once only, setup DOS. Once that is done, no more HEADACHES until HD dies.
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: combating corruption to make my life better
« Reply #6 on: November 21, 2016, 07:35:55 am »
I have set with DOS for years and years and I always turn it off with a flick of the switch.... no problem...

if you want a HEADACHE once only, setup DOS. Once that is done, no more HEADACHES until HD dies.

There are plenty more drawbacks to using DOS tho, it simply can't use any semi-recent hardware properly.

If you're 100% happy with a setup, and not too worried about boot times then you could easily enough have the entire OS run from a bootable DVD / Bluray.  As long as your PC has enough RAM etc. you shouldn't need worry about a pagefile, and as long as disks aren't being written to there isn't likely going to be any corruption anyway, so even if you have the OS etc. running from read-only media you could put the roms / CHDs on a regular disk for better access times.

Of course, in that scenario you'd want to be 100% happy with the setup and all your configuration files first because in an environment where nothing gets saved you aren't going to be able to reconfigure it later.

Any setup where there is data being written is potentially going to suffer from data corruption if the power goes off mid-write (and with caching algorithms it might not even be obvious when that is)  Some people say SSDs are immune to this, but actually in some senses they can be worse (especially paired with older software - even Windows 7 as it doesn't *fully* support them)  This is because they often use 'idle' time to do their own internal housekeeping which can involve moving things around (which you won't be aware of, and an older OS won't be aware of either, so the element of risk is introduced)

« Last Edit: November 21, 2016, 07:42:52 am by Haze »

UEDan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 104
  • Last login:November 10, 2019, 05:54:08 am
  • I want to build my own arcade controls!
Re: combating corruption to make my life better
« Reply #7 on: November 21, 2016, 05:33:24 pm »
Deepfreeze?
Anything written on disk is discarded and any changes to existing files are replaced with "frozen" files at startup automatically.

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: combating corruption to make my life better
« Reply #8 on: November 21, 2016, 05:43:49 pm »
Deepfreeze?
Anything written on disk is discarded and any changes to existing files are replaced with "frozen" files at startup automatically.

Ah yes! How could I forget that software. Excellent suggestion. I use that for some work laptops that we "rent" to temp people. Really nice software.
If you can read this, it means Photobucket's money grab ruined my signature photos.

jaharr01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 806
  • Last login:March 26, 2025, 01:48:10 pm
  • Try and fail, but don't fail to try
Re: combating corruption to make my life better
« Reply #9 on: November 24, 2016, 12:06:25 pm »
Thanks guys some good food for thought. I appreciate the info

lilshawn

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7514
  • Last login:Yesterday at 06:58:44 pm
  • I break stuff...then fix it...sometimes
Re: combating corruption to make my life better
« Reply #10 on: November 24, 2016, 02:03:18 pm »
the main issue is windows changes file data and doesn't regularly update the FAT on the disk to reflect the change all the time in order to increase performance.

this "on the fly" data changing results in corrupted data if the system is shut off without being shut down properly so windows can clean up all the junk it's witten and update the FAT so the computer knows next time where the data is.

it's kinda like a company that requires you telephone them every time you want to use the company gascard, vs a company who lets you just hand in the receipts at the end of every week.

the advantage being... you don't have to waste time every single time calling and letting them know how much so they can keep record... the disadvantage being that if you lose your receipts, they have no idea how much you charged their card until they go searching through their credit card statement.

The downsides of an OS that has complete system level control of hardware but an old archaic way of handling data.

aldub516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 535
  • Last login:November 29, 2018, 03:32:46 pm
  • I want to build my own arcade controls!
Re: combating corruption to make my life better
« Reply #11 on: November 24, 2016, 07:13:04 pm »
my setup kind of works in stopping any changes to the pc and is kid proof.. i run hyperspin and remove any options to exit the front end. And my cab has only one power button which when pushed tell the pc to shut down/ turn on. So minus a kid just ripping the plug out of the wall behind the machine, there really is no way for them to mess with it. I have a decent pc and setup i dont really encounter software failure during use. So once they push the on button and it boots, they are playing games and theres nothing they can do besides power it off which tells the pc to do so safely.

Grasshopper

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2380
  • Last login:March 04, 2025, 07:13:36 pm
  • life, don't talk to me about life
Re: combating corruption to make my life better
« Reply #12 on: November 25, 2016, 10:54:24 am »
I can't comment on Windows, but a stateless system where the hard disk never gets written to is really easy to set up on Linux.

You basically need to mount the root filesystem as readonly, and then overlay it with a RAM disk. Thus means that, when a program thinks it's writing something to the hard disk, it's actually writing it to a RAM disk, and therefore any changes are automatically lost once the machine is switched off. This is how most Linux live CDs work.

It's easy to google for info on this technique, but here's a starting point:

http://unix.stackexchange.com/questions/181421/building-a-read-only-linux-system-with-a-writable-layer-in-ram
"Patriotism is the last refuge of the scoundrel." - Samuel Johnson