The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 09-28-2003, 09:41 AM   #1
Newbie
 
lhseong's Avatar
 
Join Date: Sep 2003
Vehicle: Suzuki Jeep
Posts: 20
My Photos: (0)
Question Linux mounting HDD problem!!!!! Help!!!!

To every Big brother ! I need help for mounting the Hard Disk to read-only at initialization of Linux!
lhseong is offline   Reply With Quote
Sponsored Links
Old 09-28-2003, 10:14 AM   #2
Low Bitrate
 
Join Date: Jul 2002
Posts: 89
My Photos: (0)
Quote: Originally Posted by lhseong
To every Big brother ! I need help for mounting the Hard Disk to read-only at initialization of Linux!

Looks like from man mount that the option you want is -r. You'll probably want to put this in your fstab... details of which are available by checking man fstab.
Mxyzpltk is offline   Reply With Quote
Old 09-28-2003, 11:35 AM   #3
Registered User
 
gork's Avatar
 
Join Date: Aug 2003
Location: Amarillo, TX
Vehicle: BMW E46 M3
Posts: 655
My Photos: (1)
lhseong:

If you want to mount something other than your root partition (or whatever else holds /var /tmp /usr/man etc) -- ie a drive that holds music mounted in /mnt/music or something -- then that can be done by puting 'ro' in the options column of fstab

However, going for a 100% read-only mount setup (or even just mounting the root partition ro) and then having your OS actually work is NOT a trivial task. It's not as simple as just mounting everything read only. The OS init scripts and most other programs end up requiring rw access somewhere in order to function. In general, you have to provide ramdisk or tmpfs for /tmp, /var (not all subdirectories but a lot), and reconfigure EVERYTHING to do minimal logging and never try to write data except on your tmpfs or ramdisk partitions. It's a LOT of work. If you have booted knoppix, they have a similar challenge since they are running with a read-only medium.

There are mini-distros out there designed to with mounting drives read-only in mind. Most are based on Debian due to Debian's policy on "where files belong" being pretty strict. I'm sorry I don't know any off the top of my head but doing some googling should lead you to them..
__________________
MY CAR IS FOR SALE!
See My Project Page for Details - 2003 BMW E46 ///M3
Custom Dash Monitor Housing - OEM Fitment
Custom Overhead DVD-ROM Housing in Headliner
BMW I-Bus Integration
My homepage with many other fun projects!
gork is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics