cvs commit: LFS/BOOK/chapter09 reboot.xml

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Tue May 18 07:46:02 PDT 2004


winkie      04/05/18 08:46:02

  Modified:    BOOK/chapter01 Tag: b6_0 changelog.xml
               BOOK/chapter06 Tag: b6_0 kernfs.xml
               BOOK/chapter09 Tag: b6_0 reboot.xml
  Log:
  Mount /dev/pts and /dev/shm
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.741.2.25 +3 -0      LFS/BOOK/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.741.2.24
  retrieving revision 1.741.2.25
  diff -u -r1.741.2.24 -r1.741.2.25
  --- changelog.xml	18 May 2004 14:37:31 -0000	1.741.2.24
  +++ changelog.xml	18 May 2004 14:46:01 -0000	1.741.2.25
  @@ -93,6 +93,9 @@
   </itemizedlist>
   </listitem>
   
  +<listitem><para>May 18th, 2004 [winkie]: Mount /dev/pts and /dev/shm once we're
  +inside the chroot environment.</para></listitem>
  +
   <listitem><para>May 18th, 2004 [winkie]: Removed Udev from Chapter 5. Instead of
   using Udev to create devices in Chapter 6, we simply <quote>mount --bind</quote>
   the host's /dev.</para></listitem>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +8 -2      LFS/BOOK/chapter06/kernfs.xml
  
  Index: kernfs.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/kernfs.xml,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- kernfs.xml	18 May 2004 14:37:32 -0000	1.1.2.2
  +++ kernfs.xml	18 May 2004 14:46:02 -0000	1.1.2.3
  @@ -9,7 +9,7 @@
   
   <para>Begin by creating directories onto which the file systems will be mounted:</para>
   
  -<screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>
  +<screen><userinput>mkdir -p $LFS/{dev,proc,sys}</userinput></screen>
   
   <para>Mount the file systems:</para>
   
  @@ -21,9 +21,15 @@
   <screen><userinput>mknod -m 600 $LFS/dev/console c 5 1
   mknod -m 666 $LFS/dev/null c 1 3</userinput></screen>
   
  -<para>Finally, create a clone of the host's /dev directory:</para>
  +<para>Create a clone of the host's /dev directory:</para>
   
   <screen><userinput>mount --bind /dev $LFS/dev</userinput></screen>
  +
  +<para>Finally, mount the <quote>devpts</quote> and <quote>tmpfs</quote> file
  +systems:</para>
  +
  +<screen><userinput>mount -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
  +mount -t tmpfs tmpfs $LFS/dev/shm</userinput></screen>
   
   <para>Remember that if for any reason you stop working on your LFS, and start
   again later, it's important to check that these file systems are mounted again
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.26.2.2  +3 -1      LFS/BOOK/chapter09/reboot.xml
  
  Index: reboot.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter09/reboot.xml,v
  retrieving revision 1.26.2.1
  retrieving revision 1.26.2.2
  diff -u -r1.26.2.1 -r1.26.2.2
  --- reboot.xml	18 May 2004 14:37:32 -0000	1.26.2.1
  +++ reboot.xml	18 May 2004 14:46:02 -0000	1.26.2.2
  @@ -14,7 +14,9 @@
   
   <para>Then unmount the virtual files systems:</para>
   
  -<screen><userinput>umount $LFS/dev
  +<screen><userinput>umount $LFS/dev/pts
  +umount $LFS/dev/shm
  +umount $LFS/dev
   umount $LFS/proc
   umount $LFS/sys</userinput></screen>    
   
  
  
  



More information about the lfs-book mailing list