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/hlfs, but the directory choice is up to you.
Choose a mount point and assign it to the HLFS environment variable by running:
export HLFS=/mnt/hlfs
Next, create the mount point and mount the HLFS file system by running:
mkdir -p $HLFS
mount /dev/[xxx] $HLFS
Replace [xxx] with the
designation of the HLFS partition.
If using multiple partitions for HLFS (e.g., one for / and another for /usr), mount them using:
mkdir -p $HLFS mount /dev/[xxx]$HLFS mkdir $HLFS/usr mount /dev/[yyy]$HLFS/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 HLFS
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.