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 -pv $HLFS
mount -v -t ext3 /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 -pv $HLFS mount -v -t ext3 -o acl,user_xattr /dev/<xxx>$HLFS mkdir -v $HLFS/usr mount -v -t ext3 -o acl,user_xattr /dev/<yyy>$HLFS/usr
Note that the -o acl,user_xattr options
are required in order to use POSIX file capabilities to drop root
priviledges for SUID-root programs.
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.
If you are using a swap partition,
ensure that it is enabled using the swapon command:
/sbin/swapon -v /dev/<zzz>
Replace <zzz> with
the name of the swap partition.
Now that there is an established place to work, it is time to download the packages.