Tuesday, April 14, 2009

Installing linux straight from ISO



i) Any existing linux system
ii) download the iso image first


There are basically two files which needs to be extracted first one is the kernel file and another is initrd(which contains all the basic config for the linux to bootup). These two files varies for differenet version. Consider i have an iso file. I have to open it with an archiver and extract these two files.

To install its very easy,here is an example. Consider i have downloaded the iso file,i am installing fedora here

the steps to be followed are
#mkdir /fedora
#cp /home/surya/Fedora-10-i386-DVD.iso /fedora/fedora9.iso

Now extract both the files using archive manager and copy it in /fedora folder

Next move to /boot/grub/grub.conf file and append the following entries

title Install Linux
kernel /distro/LinuxKernel
initrd /distro/Ramdisk

in this case its

title Install Linux
kernel /fedora/vmlinuz
initrd /fedora/initrd.img

Now just reboot the system..

LinuxOS Kernel Path Ramdisk path
Fedora /isolinux/vmlinuz /isolinux/initrd.img
openSUSE /boot/i386/loader/linux /boot/i386/loader/initrd
Mandriva /i586/isolinux/alt0/vmlinuz /i586/isolinux/alt0/all.rdz
Ubuntu /casper/vmlinuz /casper/initrd.gz
Debian /install.386/vmlinuz /install.386/initrd.gz
RHEL5/CentOS5 /isolinux/vmlinuz /isolinux/initrd.img