Originally posted by trickykid
Alright, might as well ask, but is there an easy way to build the LFS on multiple partitions instead of starting out on one large partition ??
I was wondering if I should just build it on one partition then move them to their new partition or if there is an easy way to go ahead and build them along other partitions during the creation process... ?
Multiple partitions are very easy, really.
Say you have a disk hdb for use with LFS. hdb1 will be / hdb2 will be /usr hdb3 will be /home and hdb4 will be /var
Create those partitions and put file systems on them (use mke2fs, mkreiserfs or whatever) and mount them like this:
mount /dev/hdb1 /mnt/lfs
mkdir /mnt/lfs/usr /mnt/lfs/home /mnt/lfs/var
mount /dev/hdb1 /mnt/lfs/usr
mount /dev/hdb2 /mnt/lfs/home
mount /dev/hdb3 /mnt/lfs/var
When you run the commands later in the book to create the subdirectories on $LFS you'll get some errors that certain directories already exist but that's fine, it won't have bad side-effects, so just ignore the messages.