Skip to main content.
Shams Web

How to install linux from the local hard disk?

A: Some linux distros support hard disk installation from the linux iso images. before installation check the iso's md5sum or sha1sum for how to details read the LINUX INSTTALLATION. B: Copy the iso images to a folder for example linux, to a partition not using for the linux installaion, the partition must be with the files systems like fat32, ext3 or ext2 not the ntfs one.
Open the first iso image and copy the isolinux directory to the same partition holding the iso images but do not copy to the same folder where are the iso images.
To copy the isolinux directory in linux os, open the /mnt and make a directory for example tmp, then mount the first iso image with the command:
  mount -o loop /Path/to/Fedora-i386-disc1.iso /mnt/tmp
In windows open the iso with a archive program like WinRAR. C: To start the installation, we will boot the vmlinuz and intird.img from the isolinux directory that can be done with some ways:
  1: Start the installation from the runing linux bootloader.
  2: Start the installation from fedora bootable cd.
  3: Start the installation from windows xp with Wingrub.

  1: Start the installation from the runing linux bootloader:
Simply add these lines to the /boot/grub/menu.list or to the /etc/lilo.conf:
  tilte Linux Install
  root (hd0,x)
  kernel /isolinux/vmlinuz
  initrd /isolinux/initrd.img
Replace the the 0 and x for the proper numbers of hard disk and partition holding the linux iso, here we use grub partitions nomenclature, 0 mean the first hard disk or primary master 1 is for the primary slave and so on, the partitions number starts from 0, from 0 upto 3 are for the primary partitions the first logical partition is 4, for example for C drive can write (hd0,0) and for D drive write (hd0,4) and so on, for more details read faq 15 and 16.

2: Start the installation from fedora bootable cd:
With a cd writer we can make a fedora boot cd and install the DVD iso or cd iso's from hard disk, for this mount the iso in linux or open with winrar in windows and copy all other staff without Packages to another folder for example fedora-boot which will be 160 mb, to make iso in linux run the command:
genisoimage -o fedora-boot.iso -b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -J -R fedora-boot
To make iso in windows downlaod the SetupImageBurn
Brun this iso as image to a cd and boot the cd, when got the installation menu just hit the scape and write in boot prompt:
linux askmethod
and enter and then select to install from the hard disk.
  3: Start the installation from windows xp with Wingrub.
Downlaod the WINGRB0206.EXE and install with the all options checked (Also check create the icon on the desktop), start the Wingrb from the desktop, in the Base setup window check the "copy stage files" and select the partition where want to wingrub copy the setup files for example C and click ok.
Open the partition where the wingrub setup files was copied in our example C drive, open the Grub folder.
In a text editor open the file MENU (or menu.lst) and replace the lines with these ones:
  timeout=10
  root (hd0,x)
  kernel /isolinux/vmlinuz
  initrd /isolinux/initrd.img

Replace the 0 and x for the proper number of hard disk and partition holding the iso image, here we use grub partition nomenclature for deatials read grub nomenclature
From the Wingrb Tools menu open the Install Grub, in the lower of Install Grub window in the "Boot From" options select the "BOOT.INI", System Drive is the location of the windows BOOT.INI file, it's normaly C drive, for the title write "Linux Install" and for timeout 10, now click on Install, this will add the Linux Install to the xp boot options.
Reboot and select the Linux Install.
To remove the Linux Install option after installation of linux, open the Install Grub and click remove.
D: In the select media device window, select install from "hard disk", in the select partitions window, select the partition number that holds the linux iso, in the bottom give the path to the directory holding the iso images, for example:
/linux.
To complete the linux installaion read the How To Insall Linux.