特殊:Badtitle/NS100:Installation/FromWindows:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示2个用户的13个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Installation/FromWindows}} | {{From|https://help.ubuntu.com/community/Installation/FromWindows}} | ||
{{Languages| | {{Languages|UbuntuHelp:Installation/FromWindows}} | ||
<<Include(Tag/StyleCleanup)>> | |||
This page is an adaptation of Marc Herbert's http://marc.herbert.free.fr/linux/win2linstall.html | This page is an adaptation of Marc Herbert's http://marc.herbert.free.fr/linux/win2linstall.html | ||
== Automatic process == | == Automatic process == | ||
Instlux is an installer that does all of the following for you. You can download it from http://www.sourceforge.net/projects/instlux. | * UNetbootin is an installer that can do the following automatically. It is available for download at http://unetbootin.sourceforge.net/. | ||
* Instlux is an installer that does all of the following for you, however it only supports older versions of Ubuntu. You can download it from http://www.sourceforge.net/projects/instlux. | |||
* [[UbuntuHelp:Wubi|Wubi]] is an installer that uses a process similar to what described in this page, but the installation takes place within a file inside Windows, and hence, differently from the other approaches, it does not require to modify the [[UbuntuHelp:partition|partition]]s. In any case, if you later want install it to a dedicated partition, you can do it. See http://wubi-installer.org. | |||
== Manual process == | == Manual process == | ||
=== The netboot approach === | === 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). | 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). | ||
* Create a directory called <code><nowiki>boot</nowiki></code> 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 <code><nowiki>boot</nowiki></code> 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 linux and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/ and save them to <code><nowiki>boot</nowiki></code>. | |||
* Download linux and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/ | |||
The following steps depend on which version of Windows you are using: | The following steps depend on which version of Windows you are using: | ||
==== Windows 95/98/ME (using Loadlin) ==== | ==== 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 <code><nowiki>boot</nowiki></code> (If your default compression/archive program doesn't like *.gz files, try 7-Zip from http://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 <code><nowiki>boot</nowiki></code> (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 | * 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: | * Get into the boot directory and run loadlin: | ||
<pre><nowiki> | <pre><nowiki> | ||
第29行: | 第21行: | ||
loadlin linux initrd=initrd.gz vga=normal ramdisk_size=14972 root=/dev/rd/0 rw -- | loadlin linux initrd=initrd.gz vga=normal ramdisk_size=14972 root=/dev/rd/0 rw -- | ||
</nowiki></pre> | </nowiki></pre> | ||
Now you should have a network installation going :) | Now you should have a network installation going :) | ||
''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'' | ''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) ==== | ==== Windows NT/2000/XP (using Grub) ==== | ||
* 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 | ||
(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 :))) | (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 <code><nowiki>grldr</nowiki></code> from the archive to <code><nowiki>c:\</nowiki></code>. | * Extract <code><nowiki>grldr</nowiki></code> from the archive to <code><nowiki>c:\</nowiki></code>. | ||
* Create a new folder in c:\boot\ called <code><nowiki>grub</nowiki></code>. | * Create a new folder in c:\boot\ called <code><nowiki>grub</nowiki></code>. | ||
* Extract <code><nowiki>menu.lst</nowiki></code> (Should be in the /boot/grub folder of the archive) to <code><nowiki>c:\boot\grub</nowiki></code> 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 http://www.7-zip.org or TUGzip from http://www.tugzip.com.) | |||
* Extract <code><nowiki>menu.lst</nowiki></code> (Should be in the /boot/grub folder of the archive) to <code><nowiki>c:\boot\grub</nowiki></code> 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 <code><nowiki>c:\grldr="Install Ubuntu"</nowiki></code> to <code><nowiki>c:\boot.ini</nowiki></code>. | * Append <code><nowiki>c:\grldr="Install Ubuntu"</nowiki></code> to <code><nowiki>c:\boot.ini</nowiki></code>. | ||
<pre><nowiki> | <pre><nowiki> | ||
第53行: | 第37行: | ||
</nowiki></pre> | </nowiki></pre> | ||
''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.'' | ''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 <code><nowiki>menu.lst</nowiki></code> in a text editor and paste the following text in the file: <pre><nowiki> | * Open <code><nowiki>menu.lst</nowiki></code> in a text editor and paste the following text in the file: <pre><nowiki> | ||
title Install Ubuntu | title Install Ubuntu | ||
第59行: | 第42行: | ||
initrd (hd0,0)/boot/initrd.gz | initrd (hd0,0)/boot/initrd.gz | ||
</nowiki></pre> | </nowiki></pre> | ||
* Save <code><nowiki>menu.lst</nowiki></code>, reboot, and select "Install Ubuntu" in the windows OS chooser then in GRUB. You now have a network installation of Ubuntu going. | * Save <code><nowiki>menu.lst</nowiki></code>, 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 <code><nowiki>menu.lst</nowiki></code> to tell it to boot from the CD image (Has been achieved using Knoppix). | 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 <code><nowiki>menu.lst</nowiki></code> 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. | It would be nice if someone could automate this process. InstallationUbuntuFromWindows outlines how such an installation system might work. | ||
=== The CD approach === | === The CD approach === | ||
This approach is documented in the Installation notes, however it seemed appropiate to put a reference to it here. | This approach is documented in the Installation notes, however it seemed appropiate to put a reference to it here. | ||
'''Note: This method only works with the Alternate Ubuntu install CD.''' | |||
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. | 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 <code><nowiki>ubuntu</nowiki></code> 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 <code><nowiki>ubuntu</nowiki></code> 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 ALTERNATE ubuntu-installer CD from http://www.ubuntulinux.org/download/ and burn the CD, then copy the contents of the CD to <code><nowiki>ubuntu</nowiki></code>. | |||
* Download the ubuntu-installer CD from http://www.ubuntulinux.org/download/ and burn the CD, then copy the contents of the CD to <code><nowiki>ubuntu</nowiki></code>. | |||
''Note: If you can't/don't want to burn a cd you can also mount the iso with a program like Daemon Tools or Alcohol 120%'' | ''Note: If you can't/don't want to burn a cd you can also mount the iso with a program like Daemon Tools or Alcohol 120%'' | ||
* Download Grub For Dos from http://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz | |||
* Download Grub For Dos | |||
(this worked for me--current grub4dos available via http://sarovar.org/projects/grub4dos/ | (this worked for me--current grub4dos available via http://sarovar.org/projects/grub4dos/ | ||
* Extract <code><nowiki>grldr</nowiki></code> from the archive to <code><nowiki>c:\grldr</nowiki></code>. 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 http://www.7-zip.org.) | |||
* Extract <code><nowiki>grldr</nowiki></code> from the archive to <code><nowiki>c:\grldr</nowiki></code>. 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 <code><nowiki>c:\grldr="Install Ubuntu"</nowiki></code> to <code><nowiki>c:\boot.ini</nowiki></code>. | * Append <code><nowiki>c:\grldr="Install Ubuntu"</nowiki></code> to <code><nowiki>c:\boot.ini</nowiki></code>. | ||
<pre><nowiki> | <pre><nowiki> | ||
To view and edit the Boot.ini file on WindowsXP: | To view and edit the Boot.ini file on WindowsXP: | ||
第90行: | 第63行: | ||
</nowiki></pre> | </nowiki></pre> | ||
''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.'' | ''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 <code><nowiki>menu.lst</nowiki></code> and save it to the first primary partition of your hard drive. | * Create a new text file called <code><nowiki>menu.lst</nowiki></code> and save it to the first primary partition of your hard drive. | ||
* Open <code><nowiki>menu.lst</nowiki></code> in a text editor and paste the following text in the file: <pre><nowiki> | * Open <code><nowiki>menu.lst</nowiki></code> in a text editor and paste the following text in the file: <pre><nowiki> | ||
title Install Ubuntu | title Install Ubuntu | ||
kernel (hd0,0)/ubuntu/install/vmlinuz root=/dev/ram0 devfs=mount,dall ramdisk_size=17000 | kernel (hd0,0)/ubuntu/install/vmlinuz root=/dev/ram0 devfs=mount,dall ramdisk_size=17000 | ||
initrd (hd0,0)/ | initrd (hd0,0)/ubuntu/install/initrd.gz | ||
</nowiki></pre> | </nowiki></pre> | ||
* Save <code><nowiki>menu.lst</nowiki></code>, reboot with the Ubuntu installer CD in the drive, and select "Install Ubuntu" twice. You now have a CD installation of Ubuntu going. | |||
=== The CD image approach === | |||
'''Note: This method only works with the Alternate Ubuntu install CD.''' | |||
'' | If for some reason you can not (do not want to) write the CD it is possible to use the ISO image to do the installation from hard disk. | ||
* Create a directory called <code><nowiki>hd-media</nowiki></code> 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 vmlinuz and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/hd-media/ and save them to hd-media | |||
* Download the ALTERNATE ubuntu-installer CD from http://www.ubuntulinux.org/download/ and save the .iso file in the root directory of first partition of your hard drive. | |||
* Download Grub For Dos from http://sarovar.org/download.php/1138/grub_for_dos-0.4.2.zip | |||
* Extract <code><nowiki>grldr</nowiki></code> from the archive to <code><nowiki>c:\grldr</nowiki></code>. The rest of the files in the archive are unnecessary. | |||
* Append <code><nowiki>c:\grldr="Install Ubuntu"</nowiki></code> to <code><nowiki>c:\boot.ini</nowiki></code>. | |||
<pre><nowiki> | <pre><nowiki> | ||
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. | |||
</nowiki></pre> | |||
''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 <code><nowiki>menu.lst</nowiki></code> and save it to the first primary partition of your hard drive. | |||
* Open <code><nowiki>menu.lst</nowiki></code> in a text editor and paste the following text in the file: <pre><nowiki> | |||
title Install Ubuntu | title Install Ubuntu | ||
kernel (hd0,0)/ | kernel (hd0,0)/hd-media/vmlinuz root=/dev/ram0 ramdisk_size=128000 | ||
initrd (hd0,0)/ | initrd (hd0,0)/hd-media/initrd.gz | ||
</nowiki></pre> | </nowiki></pre> | ||
* Save <code><nowiki>menu.lst</nowiki></code>, reboot, select "Install Ubuntu" twice. You now have a CD image installation of Ubuntu going. | |||
If you are installing onto the disk that is hosting the installer, and during partitioning the installer says that the kernel cannot read the new partition table, and that you should reboot your system, don't. The partitioner has already flagged the new Linux partition as the boot partition, so the system will be unbootable. If you're dealing with a system with no floppy or CD drive, you will be stuck. Instead, use Alt-F2, Enter to open a console and use <code><nowiki>cfdisk</nowiki></code> to set the boot partition back to the partition which hosts the installer, then go back to the installer using Alt-F1, <Go Back> as many times as needed to get to the menu, then select "Abort Installation" to reboot. | |||
* Save <code><nowiki>menu.lst</nowiki></code>, reboot | |||
---- | ---- | ||
Related projects | Related projects | ||
https://wiki.ubuntu.com/install.exe | https://wiki.ubuntu.com/install.exe | ||
[[category:CategoryInstallation]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 22:50的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Installation/FromWindows }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/af | • {{#if: UbuntuHelp:Installation/FromWindows|Afrikaans| [[::Installation/FromWindows/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ar | • {{#if: UbuntuHelp:Installation/FromWindows|العربية| [[::Installation/FromWindows/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/az | • {{#if: UbuntuHelp:Installation/FromWindows|azərbaycanca| [[::Installation/FromWindows/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/bcc | • {{#if: UbuntuHelp:Installation/FromWindows|جهلسری بلوچی| [[::Installation/FromWindows/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/bg | • {{#if: UbuntuHelp:Installation/FromWindows|български| [[::Installation/FromWindows/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/br | • {{#if: UbuntuHelp:Installation/FromWindows|brezhoneg| [[::Installation/FromWindows/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ca | • {{#if: UbuntuHelp:Installation/FromWindows|català| [[::Installation/FromWindows/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/cs | • {{#if: UbuntuHelp:Installation/FromWindows|čeština| [[::Installation/FromWindows/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/de | • {{#if: UbuntuHelp:Installation/FromWindows|Deutsch| [[::Installation/FromWindows/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/el | • {{#if: UbuntuHelp:Installation/FromWindows|Ελληνικά| [[::Installation/FromWindows/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/es | • {{#if: UbuntuHelp:Installation/FromWindows|español| [[::Installation/FromWindows/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/fa | • {{#if: UbuntuHelp:Installation/FromWindows|فارسی| [[::Installation/FromWindows/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/fi | • {{#if: UbuntuHelp:Installation/FromWindows|suomi| [[::Installation/FromWindows/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/fr | • {{#if: UbuntuHelp:Installation/FromWindows|français| [[::Installation/FromWindows/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/gu | • {{#if: UbuntuHelp:Installation/FromWindows|ગુજરાતી| [[::Installation/FromWindows/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/he | • {{#if: UbuntuHelp:Installation/FromWindows|עברית| [[::Installation/FromWindows/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/hu | • {{#if: UbuntuHelp:Installation/FromWindows|magyar| [[::Installation/FromWindows/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/id | • {{#if: UbuntuHelp:Installation/FromWindows|Bahasa Indonesia| [[::Installation/FromWindows/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/it | • {{#if: UbuntuHelp:Installation/FromWindows|italiano| [[::Installation/FromWindows/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ja | • {{#if: UbuntuHelp:Installation/FromWindows|日本語| [[::Installation/FromWindows/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ko | • {{#if: UbuntuHelp:Installation/FromWindows|한국어| [[::Installation/FromWindows/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ksh | • {{#if: UbuntuHelp:Installation/FromWindows|Ripoarisch| [[::Installation/FromWindows/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/mr | • {{#if: UbuntuHelp:Installation/FromWindows|मराठी| [[::Installation/FromWindows/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ms | • {{#if: UbuntuHelp:Installation/FromWindows|Bahasa Melayu| [[::Installation/FromWindows/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/nl | • {{#if: UbuntuHelp:Installation/FromWindows|Nederlands| [[::Installation/FromWindows/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/no | • {{#if: UbuntuHelp:Installation/FromWindows|norsk| [[::Installation/FromWindows/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/oc | • {{#if: UbuntuHelp:Installation/FromWindows|occitan| [[::Installation/FromWindows/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/pl | • {{#if: UbuntuHelp:Installation/FromWindows|polski| [[::Installation/FromWindows/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/pt | • {{#if: UbuntuHelp:Installation/FromWindows|português| [[::Installation/FromWindows/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ro | • {{#if: UbuntuHelp:Installation/FromWindows|română| [[::Installation/FromWindows/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/ru | • {{#if: UbuntuHelp:Installation/FromWindows|русский| [[::Installation/FromWindows/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/si | • {{#if: UbuntuHelp:Installation/FromWindows|සිංහල| [[::Installation/FromWindows/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/sq | • {{#if: UbuntuHelp:Installation/FromWindows|shqip| [[::Installation/FromWindows/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/sr | • {{#if: UbuntuHelp:Installation/FromWindows|српски / srpski| [[::Installation/FromWindows/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/sv | • {{#if: UbuntuHelp:Installation/FromWindows|svenska| [[::Installation/FromWindows/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/th | • {{#if: UbuntuHelp:Installation/FromWindows|ไทย| [[::Installation/FromWindows/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/tr | • {{#if: UbuntuHelp:Installation/FromWindows|Türkçe| [[::Installation/FromWindows/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/vi | • {{#if: UbuntuHelp:Installation/FromWindows|Tiếng Việt| [[::Installation/FromWindows/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/yue | • {{#if: UbuntuHelp:Installation/FromWindows|粵語| [[::Installation/FromWindows/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/zh | • {{#if: UbuntuHelp:Installation/FromWindows|中文| [[::Installation/FromWindows/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/zh-hans | • {{#if: UbuntuHelp:Installation/FromWindows|中文(简体)| [[::Installation/FromWindows/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromWindows | UbuntuHelp:Installation/FromWindows | {{#if: | :}}Installation/FromWindows}}/zh-hant | • {{#if: UbuntuHelp:Installation/FromWindows|中文(繁體)| [[::Installation/FromWindows/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Installation/FromWindows|:Installation/FromWindows|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Installation/FromWindows/zh | | {{#ifexist: Installation/FromWindows/zh | | {{#ifeq: {{#titleparts:Installation/FromWindows|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Installation/FromWindows|1|-1|}} | zh | | }}
<<Include(Tag/StyleCleanup)>> This page is an adaptation of Marc Herbert's http://marc.herbert.free.fr/linux/win2linstall.html
Automatic process
- UNetbootin is an installer that can do the following automatically. It is available for download at http://unetbootin.sourceforge.net/.
- Instlux is an installer that does all of the following for you, however it only supports older versions of Ubuntu. You can download it from http://www.sourceforge.net/projects/instlux.
- Wubi is an installer that uses a process similar to what described in this page, but the installation takes place within a file inside Windows, and hence, differently from the other approaches, it does not require to modify the partitions. In any case, if you later want install it to a dedicated partition, you can do it. See http://wubi-installer.org.
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).
- 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). - Download linux and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/ and save them to
boot
.
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 http://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 :) 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)
- Download Grub For Dos from http://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/(0.4.1pre24 worked for Qrious once he had corrected the wiki :)))
- Extract
grldr
from the archive toc:\
. - Create a new folder in c:\boot\ called
grub
. - Extract
menu.lst
(Should be in the /boot/grub folder of the archive) toc:\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 http://www.7-zip.org or TUGzip from http://www.tugzip.com.) - Append
c:\grldr="Install Ubuntu"
toc:\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. Note: This method only works with the Alternate Ubuntu install CD. 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 ALTERNATE ubuntu-installer CD from http://www.ubuntulinux.org/download/ and burn the CD, then copy the contents of the CD to
ubuntu
.
Note: If you can't/don't want to burn a cd you can also mount the iso with a program like Daemon Tools or Alcohol 120%
- Download Grub For Dos from http://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 toc:\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 http://www.7-zip.org.) - Append
c:\grldr="Install Ubuntu"
toc:\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)/ubuntu/install/initrd.gz
- 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.
The CD image approach
Note: This method only works with the Alternate Ubuntu install CD. If for some reason you can not (do not want to) write the CD it is possible to use the ISO image to do the installation from hard disk.
- Create a directory called
hd-media
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 vmlinuz and initrd.gz from http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/hd-media/ and save them to hd-media
- Download the ALTERNATE ubuntu-installer CD from http://www.ubuntulinux.org/download/ and save the .iso file in the root directory of first partition of your hard drive.
- Download Grub For Dos from http://sarovar.org/download.php/1138/grub_for_dos-0.4.2.zip
- Extract
grldr
from the archive toc:\grldr
. The rest of the files in the archive are unnecessary. - Append
c:\grldr="Install Ubuntu"
toc:\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)/hd-media/vmlinuz root=/dev/ram0 ramdisk_size=128000 initrd (hd0,0)/hd-media/initrd.gz
- Save
menu.lst
, reboot, select "Install Ubuntu" twice. You now have a CD image installation of Ubuntu going.
If you are installing onto the disk that is hosting the installer, and during partitioning the installer says that the kernel cannot read the new partition table, and that you should reboot your system, don't. The partitioner has already flagged the new Linux partition as the boot partition, so the system will be unbootable. If you're dealing with a system with no floppy or CD drive, you will be stuck. Instead, use Alt-F2, Enter to open a console and use cfdisk
to set the boot partition back to the partition which hosts the installer, then go back to the installer using Alt-F1, <Go Back> as many times as needed to get to the menu, then select "Abort Installation" to reboot.
Related projects https://wiki.ubuntu.com/install.exe