LFS - Creating a partition


These steps are quite straight forward no errors were encountered. Follow the procedure described in
http://www.linuxfromscratch.org/lfs/view/stable/chapter02/chapter02.html

CREATING A PARTITION

I used Gparted tool to create the partition. The tool is quite straight forward to use. You can download it from the package manager. here is the tutorial - http://www.dedoimedo.com/computers/gparted.html

Created a partition using the steps described here
http://www.linuxfromscratch.org/lfs/view/stable/chapter02/creatingpartition.html

Created a partition - 50 GB /dev/sda1 (primary partition)
                        3 GB /dev/sda4 (primary partition for swap)
(note : in my system I have linux (Ubuntu 9.10 karmic koala) installed in logical partition sda5 and swap is in logical parition sda6. primary partition sda2 is extended to create logical partitions.)

MOUTING THE NEW PARTITION

mkdir /mnt/lfs
mount /dev/sda1 /mnt/lfs
export $LFS = /mnt/lfs


CREATING DIRECTORIES
FILE HEIRARCHY STANDARDS : http://www.pathname.com/fhs/
going to root mode in ubuntu - sudo -i
inside /mnt/lfs
create dirctories bin boot dev dev/pts etc home lib mnt proc root sbin tmp var

Create two more folders /usr and /usr/local
inside /usr create bin etc include lib sbin share src tmp var
inside share create following folders dict, doc, info, locale, man, nls, misc, terminfo, zoneinfo
inside share/man, create folders man1 man2 man3 man4 man5 man6 man7 man8
inside the /usr folder create symbolic links to the share/man, share/doc and share/info

inside /usr/local
inside share create following folders dict, doc, info, locale, man, nls, misc, terminfo, zoneinfo
inside share/man, create folders man1 man2 man3 man4 man5 man6 man7 man8
inside the /usr folder create symbolic links to the share/man, share/doc and share/info
(basically repeat the same steps).

Abishek Ramdas
NYU Poly

Comments

Popular posts from this blog

Generating 16k ROM using Xilinx IP COREGEN and simulating it in modelsim

Setting up atalanta ATPG to work on Linux

Sparse matrix - 3 tuple representation