Membuat Distro Linux Floppy Sendiri

By Rama Mamuaya < mamuaya@rampok.org >
Rampok Inc,. Information & Technology Research Center
http://www.rampok.org

Ini riset yang paling lama yang pernah saya lakukan ( hampir 6 bulan )
,namun setelah paper selesai dibuat ternyata saya harus dihadapkan pada
kenyataan bahwa harddisk saya terhapus akibat instalasi FreeBSD ( my other
research ) ,dan tinggal tersisa script bash shell pada flashdisk saya.
Pada dasarnya, script ini digunakan untuk membuat distro linux anda sendiri.
#!/bin/sh
# Script otomasi pembuatan distro linux floppy
# Oleh : Rama A Mamuaya [ mamuaya@rampok.org ]
# Homepage http://rampok.org/
# Release Date : 10 January 2005
# HowTo :
# make dir named root in active dir.
# inside root dir, create all dir needed ( etc,dev,bin,usr,…) :
# ./root/bin
# ./root/etc
# ./
$KERNEL = /usr/src/linux/arch/i386/boot/bzImage
$ROOTFS = ./rootfs.gz
$BANNER = 'Kreatebootdisk.sh by Rama A Mamuaya ( mamuaya@rampok.org )'
echo 'Creating Zero Device......'
dd if=/dev/zero of=rootfs bs=1k count=4096
echo 'Formatting device to ext2......'
mke2fs -Fm0 rootfs
echo 'Mounting device ......'
mkdir /mnt/fux
mount disk.ext2 /mnt/fux -o loop
echo 'Copying FileSystems......'
cp -r ./root/* /mnt/fux
echo 'Unmount filesystems......'
umount /mnt/fux
gzip -9 ./rootfs
echo 'Putting bootsector on Floppy'
syslinux /dev/fd0
echo 'Creating bootdisk......'
mount /dev/fd0 /mnt/floppy
cp $ROOTFS /mnt/floppy
cp $KERNEL /mnt/floppy/fuxlinux
cat >syslinux.cfg << _EOF_
# Bootdisk generated by kreatebootdisk.sh
# Bootdisk based on FUX-Linux.
# http://rampok.org/
# mamuaya@rampok.org
default fux
display fux.msg
prompt 1
label fux
kernel fuxlinux
append initrd=rootfs.gz root=/dev/fd0
_EOF_
cat >fux.msg << __EOF__
Welcome to FUX-Linux Bootdisk Linux system
FUx-Linux by Rama A Mamuaya ( mamuaya@rampok.org )
Visit http://rampok.org/
__EOF__
echo 'Unmounting Floppy device......'
umount /mnt/floppy
echo 'Its up to you now......'
echo $BANNER
exit




Share this article :

ARTIKEL TERKAIT:

 

Posting Komentar

 
Support : Author This Web | Free Template | Free Download
Copyright © 2013. Dunia IT - All Rights Reserved
Template Created by Creating Website Published by Maman Lukman
Proudly powered by Blogger