Tuesday, November 28, 2006

creating floppy linux

these are  steps to  create floppy linux distro


dd if=/dev/zero of=/dev/fd0 bs=1k count=1440

bash# mke2fs -m0 /dev/fd0
bash# mount /dev/fd0 /mnt

bash# cd /usr/src/grub-0.95
bash# export CC="gcc -mcpu=i386"
bash# ./configure --host=i386-pc-linux-gnu --without-curses
bash# make


bash# mkdir -p /mnt/boot/grub
bash# cp /usr/src/grub-0.95/stage1/stage1 /mnt/boot/grub
bash# cp /usr/src/grub-0.95/stage2/stage2 /mnt/boot/grub

bash# /usr/src/grub-0.95/grub/grub
grub> root (fd0)
grub> setup (fd0)
grub> quit

bash# cd /usr/src/linux
bash# make menuconfig

Be sure to configure support for the following:

    *

      386 processor
    *

      Console on virtual terminal (2.4.x kernels only)
    *

      ELF binaries
    *

      Floppy disk
    *

      proc filesystem
    *

      RAM disk with a default size of 4096K
    *

      Second extended (ext2) filesystem
    *

      VGA console

bash# make dep
bash# make clean
bash# make bzImage


No comments:

Post a Comment