<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=Read-only_RootFS</id>
		<title>Read-only RootFS - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=Read-only_RootFS"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Read-only_RootFS&amp;action=history"/>
		<updated>2026-04-09T12:33:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Read-only_RootFS&amp;diff=4886&amp;oldid=prev</id>
		<title>Glenn: +cat</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Read-only_RootFS&amp;diff=4886&amp;oldid=prev"/>
				<updated>2011-10-21T19:21:16Z</updated>
		
		<summary type="html">&lt;p&gt;+cat&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:21, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Note that the vserver has to be started read-writeable once. Now that it has been started and stopped, change the 'rw' to 'ro' in fstab.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Note that the vserver has to be started read-writeable once. Now that it has been started and stopped, change the 'rw' to 'ro' in fstab.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Documentation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Read-only_RootFS&amp;diff=4664&amp;oldid=prev</id>
		<title>Dude: Created page with '=Read-only RootFS=  ==Preparing==  * Build your host   vserver vs1 build --force -m debootstrap --hostname vs1.localhost -- -d squeeze -m http://ftp.se.debian.org/debian  ==Modif…'</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Read-only_RootFS&amp;diff=4664&amp;oldid=prev"/>
				<updated>2011-05-23T10:32:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;=Read-only RootFS=  ==Preparing==  * Build your host   vserver vs1 build --force -m debootstrap --hostname vs1.localhost -- -d squeeze -m http://ftp.se.debian.org/debian  ==Modif…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Read-only RootFS=&lt;br /&gt;
&lt;br /&gt;
==Preparing==&lt;br /&gt;
&lt;br /&gt;
* Build your host&lt;br /&gt;
  vserver vs1 build --force -m debootstrap --hostname vs1.localhost -- -d squeeze -m http://ftp.se.debian.org/debian&lt;br /&gt;
&lt;br /&gt;
==Modifying==&lt;br /&gt;
&lt;br /&gt;
* Modify /etc/vservers/vs1/fstab according to&lt;br /&gt;
&lt;br /&gt;
  /etc/vservers/vs1/vdir	/	ext3	bind,rw,dev	0 0&lt;br /&gt;
  none	/proc		proc	defaults		0 0&lt;br /&gt;
  none	/tmp		tmpfs	size=16m,mode=1777	0 0&lt;br /&gt;
  none	/var/lock		tmpfs	size=16m,mode=1777	0 0&lt;br /&gt;
  none	/var/run		tmpfs	size=16m,mode=1777	0 0&lt;br /&gt;
  none	/lib/init/rw		tmpfs	size=16m,mode=1777	0 0&lt;br /&gt;
  none	/dev/pts	devpts	gid=5,mode=620		0 0&lt;br /&gt;
  /writeable_root/vs1	/home/vs1	ext3	bind,dev	0 0&lt;br /&gt;
&lt;br /&gt;
* Add an .oldroot-directory to the installation (vcontext creates this directory, but skips if it already exists)&lt;br /&gt;
  mkdir /etc/vservers/vs1/vdir/.oldroot&lt;br /&gt;
  chmod 0700 /etc/vservers/vs1/vdir/.oldroot&lt;br /&gt;
&lt;br /&gt;
* Create the folder that holds the log-folder ( If you want to save these. )&lt;br /&gt;
  mkdir -p /writeable_root/vs1/log&lt;br /&gt;
  mkdir /etc/vservers/vs1/vdir/home/vs1&lt;br /&gt;
  rm -rf /etc/vservers/vs1/vdir/var/log&lt;br /&gt;
  ln -s ../home/vs1 /etc/vservers/vs1/vdir/var/log&lt;br /&gt;
&lt;br /&gt;
==Completing==&lt;br /&gt;
&lt;br /&gt;
* Start the vserver and stop it, to make use of the .oldroot.&lt;br /&gt;
  vserver vs1 start&lt;br /&gt;
  vserver vs1 stop&lt;br /&gt;
&lt;br /&gt;
* If the root is still read-write inside the vserver, add the following to pre-start script&lt;br /&gt;
  mkdir /etc/vservers/vs1/scripts&lt;br /&gt;
  echo &amp;quot;mount -o bind,remount,ro . .&amp;quot; &amp;gt; /etc/vservers/vs1/scripts/pre-start&lt;br /&gt;
&lt;br /&gt;
* Note that the vserver has to be started read-writeable once. Now that it has been started and stopped, change the 'rw' to 'ro' in fstab.&lt;/div&gt;</summary>
		<author><name>Dude</name></author>	</entry>

	</feed>