LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Distro which doesn't need to be halted (https://www.linuxquestions.org/questions/linux-software-2/distro-which-doesn%27t-need-to-be-halted-502997/)

motorollin 11-19-2006 11:00 AM

Distro which doesn't need to be halted
 
Hi all

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 :-)

2damncommon 11-19-2006 11:22 AM

Quote:

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.
Considering why a computer should be shutdown properly that seems unlikely.

matthewg42 11-19-2006 11:26 AM

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.

motorollin 11-19-2006 11:30 AM

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.

motorollin 11-19-2006 11:35 AM

@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.

matthewg42 11-19-2006 12:06 PM

Quote:

Originally Posted by motorollin
@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.

motorollin 11-19-2006 01:10 PM

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.

Would that work ok?


All times are GMT -5. The time now is 01:51 AM.