LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-30-2002, 11:25 PM   #1
benjaminrtz
Member
 
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, 02:02 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 02:52 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:23 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
Open Source Consulting | Domain Registration