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:
Next, create the mount point and mount the HLFS file system by running:
mkdir -pv $HLFS mount -v -t ext3 /dev/
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/
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.
<yyy> with the
appropriate partition names.
Ensure that this new partition is not mounted with permissions that
are too restrictive (such as the
noatime options). Run the mount command without any
parameters to see what options are set for the mounted HLFS
set, the partition will need to be remounted.
If you are using a
ensure that it is enabled using the swapon command:
/sbin/swapon -v /dev/
the name of the
Now that there is an established place to work, it is time to download the packages.