- Timestamp:
- 06/28/2005 05:50:11 PM (19 years ago)
- Branches:
- 6.1, 6.1.1
- Children:
- 07da7ec
- Parents:
- 286db8f
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/devices.xml
r286db8f rd16b770c 23 23 24 24 <sect2> 25 <title>Mounting ramfs and Populating /dev</title>25 <title>Mounting tmpfs and Populating /dev</title> 26 26 27 27 <para>The recommended method of populating the <filename 28 28 class="directory">/dev</filename> directory with devices is to mount a virtual 29 filesystem (such as <systemitem class="filesystem">ramfs</systemitem> or 30 <systemitem class="filesystem">tmpfs</systemitem>) on the <filename 31 class="directory">/dev</filename> directory, and allow the devices to be created 32 dynamically on that virtual filesystem as they are detected or accessed. This is 33 generally done during the boot process. Since this new system has not been 34 booted, it is necessary to do what the bootscripts would otherwise do by 35 mounting <filename class="directory">/dev</filename>:</para> 29 filesystem (such as <systemitem class="filesystem">tmpfs</systemitem>) on the 30 <filename class="directory">/dev</filename> directory, and allow the devices to 31 be created dynamically on that virtual filesystem as they are detected or 32 accessed. This is generally done during the boot process. Since this new system 33 has not been booted, it is necessary to do what the bootscripts would otherwise 34 do by mounting <filename class="directory">/dev</filename>:</para> 36 35 37 <screen><userinput>mount -n -t ramfs none /dev</userinput></screen>36 <screen><userinput>mount -n -t tmpfs none /dev</userinput></screen> 38 37 39 38 <para>The Udev package is what actually creates the devices in the <filename … … 52 51 <!-- --> 53 52 54 <para>There are some symlinks and directories required by LFS that are 55 not created by Udev, so create those here:</para> 53 <para>There are some symlinks and directories required by LFS that are created 54 during system startup by the bootscripts. Since this is a chroot environment and 55 not a booted environment, those symlinks and directories need to be created 56 here:</para> 56 57 57 58 <screen><userinput>ln -s /proc/self/fd /dev/fd -
chapter06/kernfs.xml
r286db8f rd16b770c 30 30 mount</quote> for each of these now:</para> 31 31 32 <screen><userinput>mount -f -t ramfs ramfs $LFS/dev32 <screen><userinput>mount -f -t tmpfs tmpfs $LFS/dev 33 33 mount -f -t tmpfs tmpfs $LFS/dev/shm 34 34 mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.