FromWindows

Differences between revisions 24 and 25
Revision 24 as of 2006-04-21 12:40:27
Size: 6471
Editor: p54A26AA1
Comment: Modified download URL so you get the Breezy Badger "linux" and "initrd.gz" files
Revision 25 as of 2006-05-31 22:03:14
Size: 6498
Editor: 84
Comment: Cleaned up bullet points
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
* Create a directory called {{{boot}}} in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).  * Create a directory called {{{boot}}} in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).
Line 14: Line 14:
* Download linux and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/ and save them to {{{boot}}}.  * Download linux and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/ and save them to {{{boot}}}.
Line 16: Line 16:
The following steps depend on which Windows version you're using: The following steps depend on which version of Windows you are using:
Line 20: Line 20:
* Download loadlin.exe.gz from ftp://elserv.ffm.fgan.de/pub/linux/loadlin-1.6/update-1.6c/ and unpack it to {{{boot}}} (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org)  * Download loadlin.exe.gz from ftp://elserv.ffm.fgan.de/pub/linux/loadlin-1.6/update-1.6c/ and unpack it to {{{boot}}} (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org)
Line 22: Line 22:
* Choose ''Reboot in MS-DOS mode'' in the shutdown menu '''or''' ''press F8'' (''Ctrl'' for Win98/ME) during boot and choose ''command prompt only'' in order to start Windows in DOS mode  * Choose ''Reboot in MS-DOS mode'' in the shutdown menu '''or''' ''press F8'' (''Ctrl'' for Win98/ME) during boot and choose ''command prompt only'' in order to start Windows in DOS mode
Line 24: Line 24:
* Get into the boot directory and run loadlin:  * Get into the boot directory and run loadlin:
Line 36: Line 36:
* Download Grub For Dos from http://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz  * Download Grub For Dos from http://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz
Line 39: Line 39:
* Extract {{{grldr}}} from the archive to {{{c:\}}}.  * Extract {{{grldr}}} from the archive to {{{c:\}}}.
Line 41: Line 41:
* Create a new folder in c:\boot\ called {{{grub}}}.  * Create a new folder in c:\boot\ called {{{grub}}}.
Line 43: Line 43:
* Extract {{{menu.lst}}} (Should be in the /boot/grub folder of the archive) to {{{c:\boot\grub}}} The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org or TUGzip from www.tugzip.com.)  * Extract {{{menu.lst}}} (Should be in the /boot/grub folder of the archive) to {{{c:\boot\grub}}} The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org or TUGzip from www.tugzip.com.)
Line 45: Line 45:
* Append {{{c:\grldr="Install Ubuntu"}}} to {{{c:\boot.ini}}}.  * Append {{{c:\grldr="Install Ubuntu"}}} to {{{c:\boot.ini}}}.
Line 48: Line 48:
1. Right-click on My Computer, and then click Properties.
2. On the Advanced tab, click Settings under Startup and Recovery.
3. Under System Startup, click Edit.
 1. Right-click on My Computer, and then click Properties.
 2. On the Advanced tab, click Settings under Startup and Recovery.
 3. Under System Startup, click Edit.
Line 54: Line 54:
* Open {{{menu.lst}}} in a text editor and paste the following text in the file: {{{  * Open {{{menu.lst}}} in a text editor and paste the following text in the file: {{{
Line 60: Line 60:
* Save {{{menu.lst}}}, reboot, and select "Install Ubuntu" in the windows OS chooser then in GRUB. You now have a network installation of Ubuntu going.  * Save {{{menu.lst}}}, reboot, and select "Install Ubuntu" in the windows OS chooser then in GRUB. You now have a network installation of Ubuntu going.
Line 71: Line 71:
* Create a directory called {{{ubuntu}}} in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).  * Create a directory called {{{ubuntu}}} in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).
Line 73: Line 73:
* Download the ubuntu-installer CD from http://www.ubuntulinux.org/download/ and burn the CD, then copy the contents of the CD to {{{ubuntu}}}.  * Download the ubuntu-installer CD from http://www.ubuntulinux.org/download/ and burn the CD, then copy the contents of the CD to {{{ubuntu}}}.
Line 75: Line 75:
* Download Grub For Dos fromhttp://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz  * Download Grub For Dos fromhttp://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz
Line 78: Line 78:
* Extract {{{grldr}}} from the archive to {{{c:\grldr}}}. The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org.)  * Extract {{{grldr}}} from the archive to {{{c:\grldr}}}. The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org.)
Line 80: Line 80:
* Append {{{c:\grldr="Install Ubuntu"}}} to {{{c:\boot.ini}}}.  * Append {{{c:\grldr="Install Ubuntu"}}} to {{{c:\boot.ini}}}.
Line 90: Line 90:
* Create a new text file called {{{menu.lst}}} and save it to the first primary partition of your hard drive.  * Create a new text file called {{{menu.lst}}} and save it to the first primary partition of your hard drive.
Line 92: Line 92:
* Open {{{menu.lst}}} in a text editor and paste the following text in the file: {{{  * Open {{{menu.lst}}} in a text editor and paste the following text in the file: {{{
Line 102: Line 102:
* Save {{{menu.lst}}}, reboot with the Ubuntu installer CD in the drive, and select "Install Ubuntu" twice. You now have a CD installation of Ubuntu going.  * Save {{{menu.lst}}}, reboot with the Ubuntu installer CD in the drive, and select "Install Ubuntu" twice. You now have a CD installation of Ubuntu going.

This page is an adaptation of Marc Herbert's http://marc.herbert.free.fr/linux/win2linstall.html

Automatic process: instlux

Instlux is an installer that does all of the following for you. You can download it from http://www.sourceforge.net/projects/instlux.

Manual process

The netboot approach

This page will guide you through obtaining the files necessary to boot the Ubuntu installation from a FAT or NTFS partition, thus allowing you to install Ubuntu without any sort of removeable media. This guide assumes that you are running either some NT-based Windows(NT, 2000, XP) or Windows 9x(95, 98, ME).

The following steps depend on which version of Windows you are using:

Windows 95/98/ME (using Loadlin)

  • Download loadlin.exe.gz from ftp://elserv.ffm.fgan.de/pub/linux/loadlin-1.6/update-1.6c/ and unpack it to boot (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org)

  • Choose Reboot in MS-DOS mode in the shutdown menu or press F8 (Ctrl for Win98/ME) during boot and choose command prompt only in order to start Windows in DOS mode

  • Get into the boot directory and run loadlin:

cd c:\boot
loadlin linux initrd=initrd.gz vga=normal ramdisk_size=14972 root=/dev/rd/0 rw --

Now you should have a network installation going Smile :)

Note: On some computers the installer has problems with the video card and you may get a "melting screen". I replaced vga=normal with vga=771 and it worked on my laptop Stjepan Stamenkovic

Windows NT/2000/XP (using Grub)

(this worked for me--current grub4dos available via http://sarovar.org/projects/grub4dos/(0.4.1pre24 worked for Qrious once he had corrected the wiki :)))

  • Extract grldr from the archive to c:\.

  • Create a new folder in c:\boot\ called grub.

  • Extract menu.lst (Should be in the /boot/grub folder of the archive) to c:\boot\grub The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org or TUGzip from www.tugzip.com.)

  • Append c:\grldr="Install Ubuntu" to c:\boot.ini.

To view and edit the Boot.ini file on WindowsXP:
 1. Right-click on My Computer, and then click Properties.
 2. On the Advanced tab, click Settings under Startup and Recovery.
 3. Under System Startup, click Edit.

Note: Eventhough c:\boot.ini is not shown by the explorer, this file exists and can be also opened in the notepad. Just write the path c:\Boot.ini at the open dialog.

  • Open menu.lst in a text editor and paste the following text in the file:

    title Install Ubuntu
    kernel   (hd0,0)/boot/linux vga=normal ramdisk_size=14972 root=/dev/rd/0 rw --
    initrd   (hd0,0)/boot/initrd.gz
  • Save menu.lst, reboot, and select "Install Ubuntu" in the windows OS chooser then in GRUB. You now have a network installation of Ubuntu going.

This procedure should be possible using a disk image, but it may be necessary to use a different kernel and pass some special argument in menu.lst to tell it to boot from the CD image (Has been achieved using Knoppix).

It would be nice if someone could automate this process. InstallationUbuntuFromWindows outlines how such an installation system might work.

The CD approach

This approach is documented in the Installation notes, however it seemed appropiate to put a reference to it here.

If you can't boot from the CD-ROM directly it is possible to use the above approach to boot the kernel from the HDD and have the installation follow through on the CD-ROM.

  • Create a directory called ubuntu in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).

  • Download the ubuntu-installer CD from http://www.ubuntulinux.org/download/ and burn the CD, then copy the contents of the CD to ubuntu.

  • Download Grub For Dos fromhttp://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz

(this worked for me--current grub4dos available via http://sarovar.org/projects/grub4dos/

  • Extract grldr from the archive to c:\grldr. The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from www.7-zip.org.)

  • Append c:\grldr="Install Ubuntu" to c:\boot.ini.

To view and edit the Boot.ini file on WindowsXP:
1. Right-click on My Computer, and then click Properties.
2. On the Advanced tab, click Settings under Startup and Recovery.
3. Under System Startup, click Edit.

Note: Eventhough c:\boot.ini is not shown by the explorer, this file exists and can be also opened in the notepad. Just write the path c:\Boot.ini at the open dialog.

  • Create a new text file called menu.lst and save it to the first primary partition of your hard drive.

  • Open menu.lst in a text editor and paste the following text in the file:

    title Install Ubuntu
    kernel   (hd0,0)/ubuntu/install/vmlinuz root=/dev/ram0 devfs=mount,dall ramdisk_size=17000
    initrd   (hd0,0)/boot/initrd.gz

Just a note: I think that /boot/initrd.gz above should read /ubuntu/install/initrd.gz Rob Pomeroy

Another note (from a different person.) Can you ues this installation method when you're planning on getting rid of windows, or would it fail when you had to format the drive you were getting the .iso image data from? If so (as I suspect is the case,) can you put the data on something like a usb key or pcmcia attached device? How would you access it? Thanks!

  • Save menu.lst, reboot with the Ubuntu installer CD in the drive, and select "Install Ubuntu" twice. You now have a CD installation of Ubuntu going.

CategoryDocumentation CategoryCleanup

Installation/FromWindows (last edited 2008-08-06 16:22:16 by localhost)