foyo23 / linux-from-scratch

learning linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My notes and binaries for installing LFS

I have forked taql's empty repository, because it was first result of Git-Hub's search.

I decided to install my LFS in VirtualBox. All steps should be repeatable on non-virtual machine. I decided not to copy any binaries into my repository. In my opinion it isn't the purpose of repository like this. So enyone who starts with LFS can just clone my repository and start compiling :)

Day1 - Create Virtual Machine

Time: 2h

I created VirtualBox VM with 10GB Dunamically allocated VDI drive. Then i downloaded ubuntu server as distribution which creates partitions and builds initial system. This will i install on special 5GB virtual drive. I'll delete this drive after i will be done. I have downloaded Ubuntu 18.04.

I have installed ubuntu desktop with all default settings.

After booting system, i have installed git and i checkouted this repository. With bash version-check.sh i checked which required software i have and then installed the rest with sudo apt-get install xyz.

sudo apt-get install bison
sudo apt-get install gawk
sudo apt-get install m4
sudo apt-get install texinfo

Day2 - Preparations

Time: 30 min

Preparing a new partition

With sudo cfdisk i have created 3 partitions:

  • 100MB boot partition, that is supposed to be mounted to /boot
  • 8GB root partition
  • 400MB swap partition

And then with: sudo mkfs sda1 -t ext2 sudo mkfs sda2 -t ext3 sudo mkswap ext3 i created filesystems.

debugfs -R sdaX showed me exactly what it shoud.. I'm glad, that ubuntu's makefs didn't gave me some addition problems. After i mounted sda1 to %LFS and sda2 to %LFS/boot i used wget list for download packages and other sources.

About

learning linux


Languages

Language:Shell 100.0%