Now that a file system has been created, the partition needs to be
made accessible. In order to do this, the partition needs to be
mounted at a chosen mount point. For the purposes of this book, it is
assumed that the file system is mounted under /mnt/clfs
, but the directory choice is up to you.
Choose a mount point and assign it to the CLFS
environment variable by running:
export CLFS=/mnt/clfs
Next, create the mount point and mount the CLFS file system by running:
mkdir -pv ${CLFS}
mount -v /dev/[xxx]
${CLFS}
Replace [xxx]
with the
designation of the CLFS partition.
If using multiple partitions for CLFS (e.g., one for /
and another for /usr
), mount them using:
mkdir -pv ${CLFS} mount -v /dev/[xxx]
${CLFS} mkdir -v ${CLFS}/usr mount -v /dev/[yyy]
${CLFS}/usr
Replace [xxx]
and
[yyy]
with the appropriate
partition names.
Ensure that this new partition is not mounted with permissions that
are too restrictive (such as the nosuid, nodev, or noatime options).
Run the mount command
without any parameters to see what options are set for the mounted
CLFS partition. If nosuid
, nodev
, and/or noatime
are
set, the partition will need to be remounted.
Now that there is an established place to work, it is time to download the packages.