Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-23-2010, 03:15 AM   #1
LQ Newbie
Registered: Aug 2009
Location: Bakersfield
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
*How* read-only is a read-only filesystem?


I'm building a system that needs to boot as quickly as possible and have a read-only root filesystem. CDs and DVDs are definitely read-only, but pretty slow. I'd like to use a standard HDD for its superior speed, but mount it read-only.

My question is, how well will the disk put up with abuse? I don't mean shock or head crashes, but things like kernel panics and power failures.
Strange glitchy writes going out to a supposedly read-only filesystem [under any circumstances] would be very bad news. =D

[The project in question is a car computer to work as a simple sound system. It needs to boot in a reasonable length of time and I don't want to have to wait for it to shut down before I park every time.]

Old 01-23-2010, 04:09 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Hard drives can't be guaranteed to cope well with power failures. Software crashes aren't likely to be a problem; the flaw in read-only mounting is that it doesn't protect well against malicious circumvention, which isn't an issue in your project.

You might be better off looking at an solid state drive (SSD, typically flash based). Flash can behave badly during power failures, but typically this is when it fails during the middle of a write. Since you won't be writing to the flash, you will have little risk. SSDs will also reduce the power consumption. In fact, if you can fit the system on an SD card (ie, boot from a USB reader with the SD card), you can even use the little write-protect switch on the SD card just to make sure. A compact live distro like Damn Small Linux is designed to boot off a small read-only device.

Last edited by neonsignal; 01-23-2010 at 04:13 AM.
Old 01-23-2010, 05:21 AM   #3
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I wouldn't suggest using SD to run an OS out of, but rather a high-speed CF card in an IDE/SATA (whatever your board has) adapter. CF tends to be faster on average than SD, doesn't have a capacity limit (I.E SD vs. SDHC), and is more physically robust.

But you certainly shouldn't be using any sort of spinning media (optical or magnetic) in a car computer, for very obvious reasons. Booting out of flash will also be much faster than from a HDD.
Old 02-14-2010, 03:24 PM   #4
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
I second the CF idea. I installed DSL to a CF card with it defaulting to Install_to_RAM. That way the systems ran very quickly but the OS was secure, and easily upgradeable. Only used a 1GB CF card too. A 33x Cf seemed plenty fast enough. I have an image available, but it's nearly a gig to download. I could post a torrent I suppose.

Last edited by smoker; 02-14-2010 at 03:32 PM.


filesystem, hardware, vfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
Raid disk problem : Attempt to read block from filesystem resulted in short read ElmPie Linux - General 5 08-26-2008 05:21 AM
read only filesystem ONLY greg108 Linux - General 3 08-26-2004 06:11 PM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration