Review your favorite Linux distribution.
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 07-31-2002, 12:25 AM   #1
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
Fs mounted in Read Only , Read Write Mode

The msgs displayed by the kernel tells me that the fs is first mounted in RO mode and then in RW Mode. Why is it so and why is this necessary .
Old 07-31-2002, 03:02 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
The way you worded the question sounds as if it's right out of a text book

My guess is that it mounts it first in RO mode because all it has to do is read the kernel parameters, and boot the necessary items, then remounts in RW mode to allow for changes to directories, and to files (such as mtab) and those also needing an IP and such.

That is just my guess though...

And why is it necessary? Well if I am even remotely close, then that would seem very secure to me. Your kernel, and only your kernel is read and acted upon during the RO process, thereby if a virus somehow infected your system, and attacked and replaced the kernel (hid itself as the kernel) then nothing horrible could actually be done, and the system would not get past the RO point (because the virus is not actually the kernel which requires certain obvious parameters to be executed properly). Again, just a theory, based off my theory.
Old 07-31-2002, 03:52 AM   #3
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Well the virus thing is a nice theory but it's the kernel that first mounts the root filesystem in RO mode. So if the virus replaced the kernel then the virus wouldn't even get access to the filesystem in readonly mode. Unless the virus would be a little smarter but in that case they could just as well access it in read write mode.

The kernel needs the root filesystem to continue it's boot process so that's why it gets mounted. The root filesystem can also be on readonly media like a cd, so sometimes it won't even be able to mount it in read/write mode. The remount in read/write mode is usually done by the boot scripts if it is necessary to have a root filesystem with read/write access.


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 01:17 PM
Allowing read/write on mounted captive-ntfs partition divsky Linux - General 6 04-15-2004 11:52 AM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 12:33 PM
Can't mount NTFS in read-write mode Tyco Linux - Hardware 4 06-08-2003 12:52 PM
Mounting NTFS in read / write mode escrotto General 5 12-04-2001 05:26 AM

All times are GMT -5. The time now is 01:20 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