Install any Linux distro directly from hard disk without burning any DVD !!!

mldarshana

Well-known member
  • Apr 2, 2007
    34,059
    1,404
    113
    ආශ්චර්ය අභියස :nerd:
    This is how you Install Linux, Directly from your Hard Drive.
    All Credit Goes to Instant Fundas Blog.


    1. The first thing you will have to do is copy the ISO file(s) of the Linux to your hard disk (ofcourse, you already have it). Make sure that the partition is FAT32 unless the distro you are installing has native NTFS read/write support. Some distros require you to copy the ISO file(s) to the root of the partition. If you keep it inside a folder, the setup might not be able to detect it.

    2. Use Winrar to open the ISO file (you need not need to extract it). Now you will have to extract the two files I talked about earlier. The files are usually found inside a directory called isolinux. Different distros might place the files in different location; you just have to search for it, but it isn't hard to locate. These two files are also named differently in different distros. The files that you will need to search and extract are: (the kernel file is shown in green and the Ram disk is shown in red)

    Fedora: vmlinuz and initrd.img

    Suse: linux and initrd

    Mandriva: vmlinuz and all.rdz

    Ubuntu: vmlinuz and initrd.gz

    Gentoo: gentoo and gentoo.igz

    Knoppix: vmlinuz and initrd.img

    Slackware: bzImage and initrd.img

    Debian: vmlinuz and initrd.gz

    3. After you have extracted the two files, copy them to c:\boot (you will need to create the folder "boot")

    4. Now download the file called grub4dos from here. (Note: the new versions of grub4dos i.e. 0.4.2 and 0.4.3 does not work. So download the earlier version 0.4.1. Direct download link) Extract the folder "boot" and the file "grldr" from the downloaded zip file. Inside the folder "boot" is another folder called "grub"; copy the folder "grub" to c:\boot. Copy the file "grldr" to c:\

    5. Open c:\boot\grub\menu.lst and add these following lines. (Notice that hd0 refers to the first hard drive. If you have more than one hard drive, they will be named hd1, hd2 etc. Replace hd0 with the proper hard drive number incase you have windows installed on another drive.) Replace Linux_kernel and Ram_disk with the appropriate file names below. (the ones you copied to c:\boot)



    title Install Linux
    kernel (hd0,0)/boot/Linux_kernel
    initrd (hd0,0)/boot/Ram_disk

    6. Now you have to add grub to your c:\boot.ini file. You can open boot.ini by clicking on Start>Run and typing c:\boot.ini. If Windows does not allow the file to be modified, then go to Control Panel>System and click on the Advanced tab. Now under Startup and Recovery click Settings and then under System Startup click Edit. Open boot.ini and add this line in the end.

    C:\grldr=”Start GRUB”

    7. You are now ready to install Linux. Restart your PC and from the boot screen select "Start GRUB". This will load GRUB. From the grub screen select "Install Linux". During the setup you will be asked the source of installation. Choose hard disk and then select the hard drive partition where you copied the ISO files. Sometimes you might have to type the whole path of the partition and the exact name of the ISO. So write it down before you begin.

    I have personally tested this with Fedora, Suse and Mandriva and it works without problem. I have no doubt it will work for others too.

    Update: dougfractal adds that this is possible from Linux too. The method as he describes is:

    From the terminal enter these commands

    sudo mkdir /distro
    sudo chmod `whoami`:`whoami`
    cp MYLINUX.iso /distro/distro.iso

    Now extract Linux_kernel & Ram_disk to /distro#

    Open /boot/grub/menu.lst

    #ADD NEW ENTRY#
    title Install Linux
    root (hdX,X)
    kernel /distro/Linux_kernel
    initrd /distro/Ram_disk

    Reboot and select "Install Linux" from grub.
     
    Last edited:

    amila325

    Well-known member
  • Jul 11, 2006
    9,188
    33
    48
    damn such a gud a thread no one cares to even luk into :P :P.... anyway thanx mldarshana 4 sharing dis :) :)
     

    amila325

    Well-known member
  • Jul 11, 2006
    9,188
    33
    48
    menna Linux in windows wala
    knoppix.png
     

    amila325

    Well-known member
  • Jul 11, 2006
    9,188
    33
    48
    mldarshana said:
    hehe ..... most of the people here, interested in pirated software than open source / freeware ....:no: :no:

    thanks for your contribution to this thread !!! ......

    Cheers
    :P that's true machan....
    r u using linux???
    @ da moment Im using Windows cuz dis is my family pc :P
    otherwise i'll use Ubuntu or Mandriva.... :)
     

    amila325

    Well-known member
  • Jul 11, 2006
    9,188
    33
    48
    mldarshana said:
    yes machan ..... i am a fan of Linux Mint ......

    that's also based on ubuntu ..... giv it a try sometime !!!! :cool:
    hmmm cms cool cuz mint ne hihihi...
    can u put some screen shot here machan.
    really appreciate it :) :)
    and im gonna try it too :D...
     

    coolioWiZ

    Well-known member
  • Jul 19, 2007
    1,396
    31
    48
    alpha canis majoris
    VritualBox is a nice option to test linux without having to install. Can try live cds or can install on virtual HDs . . . i've got virtualbox both on windows and linux . . use it to test the various livecds being churned by the community.

    I've been trying to get KDE 4.1 work on debian lenny without sucess . . .this seems to be due to a problem with the repos . . . but trying to find every dependency is like hell . . I'm gonna wait till lenny officially come out.