Rev | Line | |
---|
[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[a8f36125] | 2 | <!DOCTYPE sect1 [
|
---|
| 3 | ]>
|
---|
[9dfc02f] | 4 | <sect1 id="ch-system-kernfs">
|
---|
| 5 | <title>Mounting virtual kernel file systems</title>
|
---|
| 6 | <?dbhtml filename="kernfs.html"?>
|
---|
| 7 |
|
---|
| 8 | <para>Various file systems exported by the kernel don't exist at all on your
|
---|
| 9 | hard drive, but are used to communicate things to and from the kernel itself.</para>
|
---|
| 10 |
|
---|
| 11 | <para>Begin by creating directories onto which the file systems will be mounted:</para>
|
---|
| 12 |
|
---|
| 13 | <screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>
|
---|
| 14 |
|
---|
| 15 | <para>Now mount the file systems:</para>
|
---|
| 16 |
|
---|
| 17 | <screen><userinput>mount -t proc proc $LFS/proc
|
---|
| 18 | mount -t sysfs sysfs $LFS/sys</userinput></screen>
|
---|
| 19 |
|
---|
[10fb6a5] | 20 | <para>Remember that if for any reason you stop working on your LFS, and start
|
---|
[9dfc02f] | 21 | again later, it's important to check that these file systems are mounted again
|
---|
| 22 | before entering the chroot environment, otherwise problems could occur.</para>
|
---|
| 23 |
|
---|
| 24 | <para>Shortly, we'll be mounting a few more file systems from within the chroot
|
---|
| 25 | environment. To keep the host up-to-date, we'll do a <quote>fake mount</quote>
|
---|
| 26 | for each of these now:</para>
|
---|
| 27 |
|
---|
| 28 | <screen><userinput>mount -f -t ramfs ramfs $LFS/dev
|
---|
| 29 | mount -f -t tmpfs tmpfs $LFS/dev/shm
|
---|
| 30 | mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.