LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-16-2013, 09:53 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 775

Rep: Reputation: 67
Mounting Raspberry Pi SD card read-only


Hi all,

Got a little query about the Raspberry Pi I recently acquired which I've installed Raspbian on.
I see the system mounts the SD card r/w by default, even when the card's little switch is in the locked position.
I'd like it to be mounted r/o, however, in order to eliminate the corruption issues some of us are experiencing. But I'm not sure if this is feasible given the entire OS and everything else is on the one card.
Since the app I'm working on is for an embedded controller, I'm not bothered about losing logging, session data and such similar stuff that the system normally wants to write to the card.
Can I therefore change the defaults to mount the card r/o without adverse consequences?

Thanks, cc.
 
Old 03-17-2013, 03:18 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,466

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
I suggest you to by a pendrive or split your sd into two (or more) partitions and move the log files and other files onto another (writable) partition. Changing /var to read only will probably lock the OS (there can be other dirs also).
 
  


Reply

Tags
mount, pi, sd card


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] External USB hard drives no longer mounting read/write -- now read only revbish Puppy 2 01-28-2013 05:44 PM
Lack of space in Raspberry Pi with 4GB SD Card cjw43 Linux - Embedded & Single-board computer 7 01-28-2013 03:58 PM
LXer: Enter the element14 Pi Day ‚??Raspberry RoadTest‚?Ě Challenge for a chance to win a Raspberry Pi c LXer Syndicated Linux News 0 03-08-2012 06:20 AM
/ LVM mounting read-only, how to mount read-write thllgo Linux - Server 2 11-10-2010 07:39 AM
Flash Card mounting as "read only" with errors Jeff91 Linux - Hardware 1 10-21-2009 03:44 AM


All times are GMT -5. The time now is 11:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration