L1g3r Logo           SignalQ Sites: NetAdminTools - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
GNU/Linux Reference OS Root Filesystem
Topic:MCJ GNU/Linux Reference OS   Date: 2009-05-24
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Base Reference GNU/Linux Build Sequence

The base MCJ filesystem is available here.

To compile and install, run these commands:

mkfs.ext3 /dev/sda2
mount -t ext3 /dev/sda2 /lfs
cp ~/mcjrootfs-2.0.tar.bz2 /lfs
cd /lfs
ls
tar -xjpf mcjrootfs-2.0.tar.bz2
chroot /lfs


The output should look something like this:

root [ ~ ]# mkfs.ext3 /dev/sda2
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2443200 inodes, 4885768 blocks
244288 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
150 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root [ ~ ]# mkdir /lfs
root [ ~ ]# mount -t ext3 /dev/sda2 /lfs
root [ ~ ]# cp ~/mcjrootfs-3.0.tar.bz2 /lfs
root [ ~ ]# cd /lfs
root [ /lfs ]# ls
fs  lost+found  mcjrootfs-3.0.tar.bz2
root [ /lfs ]# tar -xjpf mcjrootfs-3.0.tar.bz2
root [ /lfs ]# chroot /lfs
root:/# lilo
Warning: LBA32 addressing assumed
Warning: '/proc/partitions' does not exist, disk scan bypassed
Added linux *
2 warnings were issued.
root:/#


People:
Places:
Things:
Times:



None of this would be possible without the diligent work of the Linux From Scratch (LFS) project. A tip o' the hat to those intrepid hackers. Much of the OS buld configuration is taken directly from LFS and BLFS.