LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2013, 04:44 AM   #1
subi211
LQ Newbie
 
Registered: Nov 2010
Distribution: Xubuntu 12.04
Posts: 9

Rep: Reputation: 0
Most reliable filesystem


Hi guys (first thread)

I'm running several terminals with a bare-bones Ubuntu 12.04 LTS on them (command line install + X). They are subject to public abuse, and as such cannot rely on being powered down in a proper manner.

What I would like help with is which settings to use with mount and /etc/fstab to give the best reliability under these circumstances? The overriding importance is that the system successfully boot, as generally speaking I can cope with corrupt files once my own programs are running.

Currently I'm using ext4 with the default settings. From man mount I know that means journalling and barrier are enabled, but is there anything else I can do to ensure reliability?

Thanks!
 
Old 07-31-2013, 05:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you need to move your important files/programs to another (readonly?) partition therefore they cannot be damaged. The public drive can be cleaned any time (and reformatted, if required)
 
Old 07-31-2013, 05:29 AM   #3
subi211
LQ Newbie
 
Registered: Nov 2010
Distribution: Xubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: 0
So, boot from the one partition but make sure all the writes are performed on another? Fair enough.

Is it possible to mount the /root partition (where /bin, etc are) as read only without problems? What would happen to all the log files Linux generates? Or can that be solved by symlinking /var and /tmp to directories on the writeable partition?

Last edited by subi211; 07-31-2013 at 05:34 AM.
 
Old 07-31-2013, 05:38 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
/var/log can be another partition, also /tmp (see tmpfs). otherwise yes, you can try that (for example live CD-s are running on a read-only device).
 
Old 07-31-2013, 10:22 AM   #5
subi211
LQ Newbie
 
Registered: Nov 2010
Distribution: Xubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: 0
I rearranged the partitions so I have an OS partition and a writeable partition, and also mounted /tmp as tmpfs. I've symlinked /var to a directory on the writeable partition.

There's still quite a bit of writing going on on the OS partition though. For one, the MAC address of the machine gets cached in /etc/udev/rules.d/70-persistent-net-rules.

Which other directories should I symlink to the writeable partition?
 
Old 07-31-2013, 10:22 AM   #6
subi211
LQ Newbie
 
Registered: Nov 2010
Distribution: Xubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: 0
(duplicate post)

Last edited by subi211; 08-01-2013 at 03:44 AM.
 
Old 07-31-2013, 04:20 PM   #7
David Trest
Member
 
Registered: Jul 2013
Distribution: CentOS/RHEL, Backtrack, many more.
Posts: 58

Rep: Reputation: Disabled
I don't know of any software that can preserve the files/settings on a system and revert them on reboot (like you see on Windows), but one thing that comes to mind is...

Have you considered making the systems headless and network bootable? Make them bootable only on a network connection, using a gigabit internal link so the machines will boot off of another server. That way the settings are restored on reboot and nothing is overwritten should someone mess with the system.
 
Old 08-01-2013, 03:44 AM   #8
subi211
LQ Newbie
 
Registered: Nov 2010
Distribution: Xubuntu 12.04
Posts: 9

Original Poster
Rep: Reputation: 0
Oh, I wish I could net boot, but these terminals aren't networked.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Most reliable filesystem for embedded purposes top_hill Linux - Server 1 07-01-2011 09:22 AM
filesystem check :- xfs_check un reliable? khaleel5000 Linux - General 3 05-29-2008 10:53 PM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Best and most reliable filesystem for "/" and swap destin Slackware 2 04-09-2004 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration