Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have built an arcade cabinet which currently houses an XBOX. I want to replace this with a Pegasos PPC machine running a PPC Linux distro. I am trying to find out if there is a distro which does not need to be halted before turning the computer off, so the arcade machine can just be turned off. Any advice would be much appreciated :-)
I am trying to find out if there is a distro which does not need to be halted before turning the computer off, so the arcade machine can just be turned off.
If you run a live distro from read-only media it shouldn't be a problem, but you shouldn't mount anything read-write, which gives you a difficult challenge if you need to save any data.
I forgot about the filesystem journal. Would a non-journaling filesystem be safer to simply power off? Take for example the Amiga filesystem. As long as disk activity has stopped, you can just turn the machine off. It does not have a shut down function.
@Matthew
I had thought of booting from a read-only medium, but this would likely be slow to boot (if it was a CD) and as you said, I wouldn't be able to save anything.
@Matthew
I had thought of booting from a read-only medium, but this would likely be slow to boot (if it was a CD) and as you said, I wouldn't be able to save anything.
You can install some LiveCDs from a USB drive. I had Knoppix installed on a HDD which sat in a USB caddy. It was a little fiddly to install that way, and I forget exactly how I did it, but it was quite OK. The boot time wasn't as good as a non-live distro, but it wasn't bad.
I think non-journalling filesystems are generally worse at recovery.
If you want to force flushes to disk all the time, I think there is a mount option, sync. The mount manual page says this is only available for ext2, ext3 and ufs at the moment. The description is "All I/O to the file system should be done synchronously.". This might give you some more protection from corription on poweroff. I'm not sure.
I don't want to hack it by modifying an existing distro by trying to change the way it mounts its partitions, and then risk damaging the filesystem. How about this:
1. Install a Live CD distro to HDD so it boots from a RO partition
2. Create another partiton and mount it RW on boot, which contains the home directory and the location of the games/saves for the arcade machine
3. Have a "quick shutdown" feature which just unmounts the RW filesystem to protect it. Since the boot partition is RO, it can safely be shut down without risk of damage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.