Skip to content

Instantly share code, notes, and snippets.

@ichikaway
Last active January 1, 2018 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichikaway/f1b76a015e13f5127f2c7cf905ec7ea1 to your computer and use it in GitHub Desktop.
Save ichikaway/f1b76a015e13f5127f2c7cf905ec7ea1 to your computer and use it in GitHub Desktop.
Linux From Scratch Ubuntu16 step

package install

sudo apt-get install gawk
sudo apt-get install bison
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install bzip2
sudo apt-get install g++
sudo apt-get install texinfo

Add disk

fdisk /dev/sdb

create root partition

n
p (primary)
1 (default)
first sector: 2000
last sector: 40000000 (19G)

create swap partition

n
p (primary)
1 (default)
first sector: 40000000
last sector: 41943039 (900M)

write

w

make fs

mkfs -v -t ext4 /dev/sdb1
mkswap /dev/sdb2

wget-list

http://www.linuxfromscratch.org/lfs/downloads/stable/wget-list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment