source: chapter02/mounting.xml@ dc6acb5

Last change on this file since dc6acb5 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="space-mounting">
8<title>Mounting the new partition</title>
9<?dbhtml filename="mounting.html"?>
10
11<para>Now that we've created a file system, we want to be able to access
12the partition. For that, we need to mount it, and have to choose a mount
13point. In this book we assume that the file system is mounted under
14<filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
15you choose.</para>
16
17<para>Choose a mount point and assign it to the LFS environment variable
18by running:</para>
19
20<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
21
22<para>Now create the mount point and mount the LFS file system by running:</para>
23
24<screen><userinput>mkdir -p $LFS
25mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
26
27<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
28partition.</para>
29
30<para>If you have decided to use multiple partitions for LFS (say one for
31<filename class="directory">/</filename> and another for
32<filename class="directory">/usr</filename>), mount them like this:</para>
33
34<screen><userinput>mkdir -p $LFS
35mount /dev/<replaceable>[xxx]</replaceable> $LFS
36mkdir $LFS/usr
37mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
38
39<para>Of course, replace <replaceable>[xxx]</replaceable> and
40<replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
41
42<para>You should also ensure that this new partition is not mounted with
43permissions that are too restrictive (such as the nosuid, nodev or noatime
44options). You can run the <command>mount</command> command without any
45parameters to see with what options the LFS partition is mounted. If
46you see nosuid, nodev or noatime, you will need to remount it.</para>
47
48<para>Now that we've made ourselves a place to work in, we're ready to download
49the packages.</para>
50
51</section>
Note: See TracBrowser for help on using the repository browser.