LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2009, 04:36 PM   #16
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346

You are, I hope, aware that many different partitions can be mounted as sub-directories of /. So mounting / as ro will not prevent you from making changes in, e.g., /home if /home is on some other partition or drive and mounted rw.

Could you post the contents of your /etc/fstab (between code tags, of course) for use to see?

<edit>
Oops! You posted whilst I was typing. (But neglected the code tags.)
</edit>

<edit2>
O.K., most systems will automatically mount / as ro while the Initial RAM file system is running, and then remount it rw after the fsck finishes. If your system does that, the ro in you fstab may be ineffective.

Please post the output of the mount command (no arguments). Use the code tags (i.e., [code] ... [/code])
</edit2>

Last edited by PTrenholme; 04-18-2009 at 04:49 PM.
 
Old 04-18-2009, 04:46 PM   #17
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Look through the list of standard directories in the Filesystem Hierarchy Standard. It lists the directories which can be mounted statically (readonly) and which you shouldn't. Don't mount the root partition (/) readonly unless you are running off a live distro or rescue mode and have your normal root partition mounted elsewhere. You might do this to repair it with fsck.
 
Old 04-18-2009, 04:53 PM   #18
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by jschiwal View Post
Look through the list of standard directories in the Filesystem Hierarchy Standard. It lists the directories which can be mounted statically (readonly) and which you shouldn't. Don't mount the root partition (/) readonly unless you are running off a live distro or rescue mode and have your normal root partition mounted elsewhere. You might do this to repair it with fsck.
On most system man hier will show that list.
 
Old 04-18-2009, 05:08 PM   #19
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
The pdf has a table. The static row shows which directories can be mounted readonly. The dynamic row are those which should be mounted rw.

The sharable column could be mounted on an nfs fileserver appliance (nas, etc.)
Attached Thumbnails
Click image for larger version

Name:	table.png
Views:	4
Size:	9.7 KB
ID:	484  
 
Old 04-18-2009, 05:16 PM   #20
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by jschiwal View Post
Look through the list of standard directories in the Filesystem Hierarchy Standard. It lists the directories which can be mounted statically (readonly) and which you shouldn't. Don't mount the root partition (/) readonly unless you are running off a live distro or rescue mode and have your normal root partition mounted elsewhere. You might do this to repair it with fsck.
I'm sorry, but this thread has been moved around by the moderators so you probably aren't aware of its origin.
The *original* concept was to come up with a means of configuring a netbook with only a 8Gb SSD as its main hard drive storage unit, to boot-up in read-only mode ONLY-IMUTABLE-FIXED, so as NONE of the ENTIRE SSD could subsequently become corrupted or infected with malware and the machine would be regularly re-set to pristine condition from a protected partition to ensure its perpetual sterlility. Sounds simple, doesn't it? :-) Such a pity it isn't in practice! :-/

Last edited by Completely Clueless; 04-18-2009 at 05:17 PM.
 
Old 04-18-2009, 05:36 PM   #21
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by PTrenholme View Post
Please post the output of the mount command (no arguments).
Thanks for your help, but that would be *three times* since the start of this thread (since it began under whatever name it began as). Not your fault; no offence intended.
 
Old 04-19-2009, 01:08 PM   #22
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Completely Clueless View Post
Thanks for your help, but that would be *three times* since the start of this thread (since it began under whatever name it began as). Not your fault; no offense intended.
, but none taken - I just failed to read what I was looking at in your prior posts.
 
Old 04-19-2009, 01:51 PM   #23
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, I just tried a little experiment with my Ubuntu 9,04 installation. I replaced the line
UUID=c5774ce9-8e08-4571-bd45-c99567172463 / ext3 relatime,errors=remount-ro 0 1
with
UUID=c5774ce9-8e08-4571-bd45-c99567172463 / ext3 defaults,ro 0 1
and tried to boot.

The boot failed and I was presented with the usual command line prompt that one gets when there is a drive problem.

mount told me that / was ro, as expected.

I then tried to use nano to revert /etc/fst to the prior version (since I'd just commented out the old line), but nano could not write the file. So /etc was, as mount said, ro.

Then I did a mount / -o remount,rw, fixed /etc/fstab, rebooted, and I'm now posting this.

-------------------

From this little experiment, I conclude that what you're seeing is a peculiarity of the distribution you're trying to use on the netbook.

Perhaps you could partition the 8Gb drive so that the parts containing the binaries and scripts could be in a ro partition and the log files and /etc could be in a writeable part. That would make fstab more complicated, but it might accomplish your goal. Or you could try a different distribution. (DSL comes to mind . . .)
 
Old 04-19-2009, 11:40 PM   #24
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
That SUSE how-to I posted the link to, had a LOT more going on that that one line, to accomplish your stated goal..have you looked through it ?
 
Old 04-20-2009, 11:37 AM   #25
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by farslayer View Post
That SUSE how-to I posted the link to, had a LOT more going on that that one line, to accomplish your stated goal..have you looked through it ?
Sorry Farslayer, I have only just got reconnected to the net after being cut off for about 30 hours. i have more than a little catching up to do. one thing i will quickly say is that i tried doing the same thing with Lenny and it wouldn't even boot up; just gave a load of 'can't do this/that; file system is read-only' which was encouraging as this is how the OS SHOULD behave afaiac. So as someone said earlier, its a pecularity of the distro by the look of it. i'll check out your like asap. thanks,cc.
 
  


Reply


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 01:17 PM
How can I read and write to windows partition dbknox Linux - Newbie 11 02-02-2006 12:21 AM
Read/write to UFS partition digitalhead Linux - General 3 01-24-2006 07:07 AM
How to mount a read write NTFS partition CircuitSix Linux - Hardware 3 12-07-2005 03:21 AM
Read/Write access to a partition? Boggit Linux - Newbie 5 04-04-2004 04:05 PM


All times are GMT -5. The time now is 02:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration