<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=LFS%3A_Virtual_Kernel_File_Systems</id>
	<title>LFS: Virtual Kernel File Systems - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=LFS%3A_Virtual_Kernel_File_Systems"/>
	<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;action=history"/>
	<updated>2026-11-01T22:40:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;diff=275&amp;oldid=prev</id>
		<title>SanzSkuy at 02:28, 17 April 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;diff=275&amp;oldid=prev"/>
		<updated>2025-04-17T02:28:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:28, 17 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;✏️Note: JALANKAN SEMUA PERINTAH DI SINI &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;DENGA &lt;/del&gt;ROOT&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;✏️Note: JALANKAN SEMUA PERINTAH DI SINI &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;DENGAN &lt;/ins&gt;ROOT&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;diff=274&amp;oldid=prev</id>
		<title>SanzSkuy at 02:27, 17 April 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;diff=274&amp;oldid=prev"/>
		<updated>2025-04-17T02:27:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:27, 17 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;✏️Note: JALANKAN SEMUA PERINTAH DI SINI DENGA ROOT&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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 class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Kita akan masuk ke sistem LFS yang kita buat melewati chroot,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Kita akan masuk ke sistem LFS yang kita buat melewati chroot,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;seolah-olah kita sudah bisa boot ke LFS padahal masih di sistem hots.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;seolah-olah kita sudah bisa boot ke LFS padahal masih di sistem hots.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;diff=273&amp;oldid=prev</id>
		<title>SanzSkuy: Created page with &quot;Kita akan masuk ke sistem LFS yang kita buat melewati chroot, seolah-olah kita sudah bisa boot ke LFS padahal masih di sistem hots. Tapi agar semua tools dan program di dalam LFS bisa berjalan normal,  mereka perlu komunikasi dengan kernel Linux yang sedang berjalan.  Masalahnya sistem LFS kita masih belum bisa berkomunikasi langsung dengan kernel. Di sini lah Virtual File Systems masuk   dimulai dengan membuat direktori dimana Virtual File Systems akan  di-mount...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Virtual_Kernel_File_Systems&amp;diff=273&amp;oldid=prev"/>
		<updated>2025-04-17T02:24:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Kita akan masuk ke sistem LFS yang kita buat melewati chroot, seolah-olah kita sudah bisa boot ke LFS padahal masih di sistem hots. Tapi agar semua tools dan program di dalam LFS bisa berjalan normal,  mereka perlu komunikasi dengan kernel Linux yang sedang berjalan.  Masalahnya sistem LFS kita masih belum bisa berkomunikasi langsung dengan kernel. Di sini lah &lt;a href=&quot;/wiki/index.php?title=Virtual_File_Systems&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Virtual File Systems (page does not exist)&quot;&gt;Virtual File Systems&lt;/a&gt; masuk   dimulai dengan membuat direktori dimana &lt;a href=&quot;/wiki/index.php?title=Virtual_File_Systems&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Virtual File Systems (page does not exist)&quot;&gt;Virtual File Systems&lt;/a&gt; akan  di-mount...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Kita akan masuk ke sistem LFS yang kita buat melewati chroot,&lt;br /&gt;
seolah-olah kita sudah bisa boot ke LFS padahal masih di sistem hots.&lt;br /&gt;
Tapi agar semua tools dan program di dalam LFS bisa berjalan normal, &lt;br /&gt;
mereka perlu komunikasi dengan kernel Linux yang sedang berjalan. &lt;br /&gt;
Masalahnya sistem LFS kita masih belum bisa berkomunikasi langsung&lt;br /&gt;
dengan kernel. Di sini lah [[Virtual File Systems]] masuk &lt;br /&gt;
&lt;br /&gt;
dimulai dengan membuat direktori dimana [[Virtual File Systems]] akan &lt;br /&gt;
di-mount:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
mkdir -pv $LFS/{dev,proc,sys,run}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pada sistem Linux, direktori &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt; berisi device nodes yang digunakan untuk berinteraksi dengan perangkat keras, &lt;br /&gt;
seperti hard disk atau terminal. Biasanya, kernel Linux secara otomatis membuat dan mengelola device nodes ini &lt;br /&gt;
dengan menggunakan sistem file virtual bernama &amp;lt;code&amp;gt;devtmpfs&amp;lt;/code&amp;gt;. Ketika kernel mendeteksi perangkat baru, &amp;lt;code&amp;gt;devtmpfs&amp;lt;/code&amp;gt; akan &lt;br /&gt;
membuat device node yang sesuai di &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt;. Namun, pada sistem Linux From Scratch (LFS), karena kita belum memiliki &lt;br /&gt;
kernel atau udev (daemon untuk mengelola device nodes di ruang pengguna), kita tidak bisa langsung mengandalkan &lt;br /&gt;
&amp;lt;code&amp;gt;devtmpfs&amp;lt;/code&amp;gt; untuk mengelola &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt;. Jika kernel host tidak mendukung &amp;lt;code&amp;gt;devtmpfs&amp;lt;/code&amp;gt;, solusi yang digunakan adalah dengan &lt;br /&gt;
melakukan bind mount terhadap direktori &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt; dari sistem host ke &amp;lt;code&amp;gt;$LFS/dev&amp;lt;/code&amp;gt;. Bind mount ini membuat isi dari &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt;&lt;br /&gt;
pada sistem host terlihat di dalam direktori &amp;lt;code&amp;gt;$LFS/dev&amp;lt;/code&amp;gt;, sehingga aplikasi yang berjalan di dalam chroot environment &lt;br /&gt;
pada LFS dapat mengakses device nodes yang diperlukan, meskipun sistem LFS belum sepenuhnya berjalan. &lt;br /&gt;
Ini adalah langkah sementara hingga kernel LFS dan udev siap berfungsi secara mandiri.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
mount -v --bind /dev $LFS/dev&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
sekarang mount sisanya &lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts&lt;br /&gt;
mount -vt proc proc $LFS/proc&lt;br /&gt;
mount -vt sysfs sysfs $LFS/sys&lt;br /&gt;
mount -vt tmpfs tmpfs $LFS/run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pada beberapa sistem host, &amp;lt;code&amp;gt;/dev/shm&amp;lt;/code&amp;gt; adalah sebuah symbolic link yang mengarah ke direktori lain, biasanya &amp;lt;code&amp;gt;/run/shm&amp;lt;/code&amp;gt;. &lt;br /&gt;
Pada kasus seperti ini, direktori &amp;lt;code&amp;gt;/dev/shm&amp;lt;/code&amp;gt; hanya perlu dibuat di dalam lingkungan chroot dengan izin yang tepat, &lt;br /&gt;
karena sistem sudah memiliki &amp;lt;code&amp;gt;tmpfs&amp;lt;/code&amp;gt; yang terpasang di &amp;lt;code&amp;gt;/run/shm&amp;lt;/code&amp;gt;.&lt;br /&gt;
Namun, pada sistem host lain, &amp;lt;code&amp;gt;/dev/shm&amp;lt;/code&amp;gt; adalah titik mount untuk sistem file &amp;lt;code&amp;gt;tmpfs&amp;lt;/code&amp;gt;. &lt;br /&gt;
Dalam hal ini, ketika kita melakukan mount &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt; di dalam lingkungan chroot, hanya direktori &amp;lt;code&amp;gt;/dev/shm&amp;lt;/code&amp;gt; yang akan dibuat, &lt;br /&gt;
tetapi tidak akan ada mount &amp;lt;code&amp;gt;tmpfs&amp;lt;/code&amp;gt; secara otomatis di direktori tersebut. &lt;br /&gt;
Untuk itu, kita perlu secara eksplisit melakukan mount sistem file &amp;lt;code&amp;gt;tmpfs&amp;lt;/code&amp;gt; pada &amp;lt;code&amp;gt;/dev/shm&amp;lt;/code&amp;gt; dalam lingkungan chroot &lt;br /&gt;
agar dapat menggunakan shared memory untuk aplikasi yang membutuhkannya, seperti aplikasi yang &lt;br /&gt;
melakukan operasi dengan memori sementara atau shared memory pada sistem Linux.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
if [ -h $LFS/dev/shm ]; then&lt;br /&gt;
  install -v -d -m 1777 $LFS$(realpath /dev/shm)&lt;br /&gt;
else&lt;br /&gt;
  mount -vt tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
</feed>