Software:Wubi

From HandWiki
Short description: Ubuntu Linux installer for Windows
Wubi
Wubi logo
Wubi Installer for Ubuntu 11.10 on Windows Developer Preview
Wubi, installing Ubuntu 11.10 on Windows 8 Developer Preview
Developer(s)Agostino Russo, Geza Kovacs, Oliver Mattos, Ecology2007, hakuna-m
Initial releaseApril 24, 2008; 16 years ago (2008-04-24)
Stable release
9.04.129? / April 22, 2009; 15 years ago (2009-04-22)
Written inNSIS script, C++, Python
Operating systemMicrosoft Windows
Size4.7 MB
Available inOver 50 languages
TypeUbuntu system installer
LicenseGNU GPL v.2 or later[1]

Wubi ("Windows-based Ubuntu Installer") is a free software Ubuntu installer, that was the official Windows-based software, from 2008 until 2013,[2] to install Ubuntu from within Windows, to a single file within an existing Windows partition.

After installation, it added a new "Ubuntu" option to the existing Windows boot menu which allowed the user to choose between running Linux or Windows, and avoided the need to re-partition the disk.

History

Wubi was born as an independent project and as such versions 7.04 and 7.10 were unofficial releases.[3]

For Ubuntu 8.04 the code was merged into Ubuntu and for 8.04 alpha 5, Wubi was also on the Ubuntu Live CD.[1]

The project's aim was to enable existing Windows users, unacquainted with Linux, to try Ubuntu without risking any data loss (due to disk formatting or partitioning mistakes).[3] It could also safely uninstall Ubuntu from within Windows.

It is not a virtual machine, but creates a stand-alone installation within a loopmounted device, also known as a disk image, like Topologilinux does. It is not a Linux distribution of its own, but rather an installer for Ubuntu.[1]

While Wubi does not install Ubuntu directly to its own partition this can also be accomplished by using LVPM, the Loopmounted Virtual Partition Manager, to transfer the Wubi-generated Ubuntu installation to a dedicated real partition, including a bootable USB keydrive.[1] The advantage of this setup is that users can test the operating system and install the drivers before they install it to a dedicated partition (and avoid booting and functioning risks).

A boot menu in Windows 7 showing options to start Ubuntu, which was added by the Wubi installer.

Wubi adds an entry to the Windows boot menu which allows the user to run Linux. Ubuntu is installed within a file in the Windows file system (c:\ubuntu\disks\root.disk), as opposed to being installed within its own partition. This file is seen by Linux as a real hard disk.[1] Wubi also creates a swap file in the Windows file system (c:\ubuntu\disks\swap.disk), in addition to the memory of the host machine. This file is seen by Ubuntu as additional RAM.[1]

A related project, Lubi, used Linux as the host system instead of Windows. However, this project has not been worked on since 2007 and only works on Ubuntu 7.04.[4]

Wubi was removed as an installation option in the official download page from Ubuntu 13.04 onward.[2] However, Wubi installers were still provided for versions up to and including Ubuntu 14.10.[5]

An unofficial fork of Wubi, called wubiuefi, supports UEFI and legacy BIOS as well as newer versions of Ubuntu (as of 2022-04-03, version 20.04.4).

Desktops

Users can select the desktop environment within Wubi. But, because each desktop environment is also available as an application package, it is recommended that users install Ubuntu (default option) and from there install the other desktop environments. When users log in, they can choose the desktop environment to use.[1]

Limitations

Compared with a regular installation, a Wubi installation faces some limitations. Hibernation is not supported and the filesystem is more vulnerable to hard reboots.[1] Also, if the Windows drive is unmounted uncleanly (Windows crash, power failure, etc.), Ubuntu will not be able to repair, re-mount, and boot from the Windows NTFS drive until Microsoft Windows has successfully booted, repaired the drive, and then shut down cleanly. If the Windows system could not be booted after the corruption to repair the filesystem, the user would also not be able to boot Ubuntu.

Performance related to hard-disk access is also slightly slower on a Wubi install, more so if the underlying disk image file is fragmented, as the disk image file in the Windows filesystem contains a Linux filesystem whereas without Wubi only the Linux filesystem is used that has direct hardware access.[1]

Wubi creates the root.disk file using Microsoft's proprietary NTFS file system while running under the MS Windows OS and then while the Ubuntu OS is running it accesses that file using an alternative file system driver. The differences between the Microsoft and Linux implementations of NTFS could technically result in corruption of the root.disk file that affects the NTFS filesystem in such a way that it could even prevent Windows from booting. Running chkdsk /r from MS Windows to fix the damaged NTFS file system and then shutting down Windows cleanly may fix any corruptions (this may take a significant amount of time to run as root.disk is a large file).[6]

Influences

Wubi relies on other open source projects: Debian installer, Migration Assistant, Grub4Dos, NTFS-3G, NSIS, Metalink and Ubiquity.[1][7]

Development

The lead developers are Agostino Russo, Geza Kovacs, Oliver Mattos and Ecology2007.[1] The main development occurs at Launchpad and is led by the Lupin Team (Lupin is the loop-installer, handles everything that happens after reboot)[8] through the original Ubuntu blueprint page[9] and the new Wubi,[10] Lubi,[11] Lupin,[12] and LVPM[13] project pages.[1]

Hardware support

Both the i386 (32-bit x86) and x86-64 releases of Ubuntu are supported by Wubi and Lubi.[1] In versions before 8.04, only the x86 release of Ubuntu was supported. Wubi UEFI works with UEFI boot loaders.

Origins

A number of Linux distributions, including Red Hat Linux and Slackware's ZipSlack, provided a similar tool in the mid-1990s, using syslinux and the UMSDOS filesystem driver. Later, SuSE provided something similar using syslinux and loop-mounted disk images on FAT filesystems. During the late '90s BeOS used a similar system to install the OS in a folder in Windows.

The idea for Wubi was drafted by Agostino Russo taking inspiration from Topologilinux, which provided a loopmounted installation, and Instlux, that provided a simple Windows frontend. The idea[14] was to merge the two concepts having a Windows installer that would loopmount an image of Ubuntu. Geza Kovacs later refined the specification[15] and provided the first prototypes[16] to show that the concept was sound. Oliver Mattos wrote the original user interface in NSIS.

Agostino Russo then refined the loop-installation concept, moving from a simple loopmounted pre-made image file to an image created on the fly using a dynamically patched version of the Debian installer, thus providing an experience which was closer to a real installation while addressing several other issues of the early prototypes. Lupin project was thus born and Agostino Russo wrote and implemented most of its code with some contributions from Geza Kovacs.

Agostino Russo and Ecology2007 later redesigned and rewrote the current Windows front-end. Hampus Wessman contributed the new downloader and the translation scripts. Bean123 and Tinybit also helped to debug and fix bootloader issues. Lubi and LVPM were subsequently created by Geza Kovacs.[17]

The project has inspired the creation of other Windows-based Linux installers, such as Win32-loader.

See also

  • List of tools to create Live USB systems
  • Ubiquity – the Ubuntu operating system installer
  • Cooperative Linux – allows Linux to run within Windows (used by e.g. Topologilinux (Slackware-based) and andLinux)
  • Debian-Installer
  • Instlux, included on openSUSE since the 10.3 release[18]
  • Win32-Loader – a similar chain-booting mechanism to install Debian without a CD
  • UNetbootin – a similar approach for a standard Linux installation (or for creating a Live USB) without a CD

References

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 "Wubi - FAQ". Ubuntu. https://wiki.ubuntu.com/WubiGuide. 
  2. 2.0 2.1 "Ubuntu Website Warns Windows Users: Don't Use WUBI". omgubuntu.co.uk. 2013-04-11. http://www.omgubuntu.co.uk/2013/04/wubi-advice. 
  3. 3.0 3.1 Broida, Rick (2007-05-09). "Take Ubuntu for a non-invasive test drive with Wubi". Lifehacker. http://lifehacker.com/software/featured-windows-download/take-ubuntu-for-a-non+invasive-test-drive-with-wubi-258936.php. 
  4. "Lubi at SourceForge". sourceforge.net. 2007-08-06. http://sourceforge.net/projects/lubi/. 
  5. "Old Ubuntu Releases". http://old-releases.ubuntu.com/releases/. 
  6. "WubiGuide - Ubuntu Wiki". https://wiki.ubuntu.com/WubiGuide#Cannot_boot_into_Ubuntu. 
  7. ~ubuntu-installer/wubi/trunk. "~ubuntu-installer/wubi/trunk : files for revision 279". Bazaar.launchpad.net. http://bazaar.launchpad.net/~ubuntu-installer/wubi/trunk/files/head%3A/src/. 
  8. "The Lupin Team in Launchpad". Launchpad. https://launchpad.net/~lupin-team. 
  9. "Windows installer for ubuntu using loopmounted EXT3 filesystem on NTFS". Launchpad. https://blueprints.launchpad.net/ubuntu/+spec/windows-installer. 
  10. "Wubi, Windows Ubuntu Installer in Launchpad". Launchpad. https://launchpad.net/wubi. 
  11. "Linux-based Ubuntu Installer in Launchpad". Launchpad. https://launchpad.net/lubi. 
  12. "Lupin, the loop installer in Launchpad". Launchpad. https://launchpad.net/lupin. 
  13. "Loopmounted Virtual Partition Manager in Launchpad". Launchpad. https://launchpad.net/lvpm. 
  14. Agostino Russo (ago). "Ubuntu setup executable for windows users". Launchpad. https://launchpad.net/ubuntu/+spec/ubuntu-setup.exe. 
  15. Geza Kovacs (tuxcantfly). "Windows installer for ubuntu using loopmounted EXT3 filesystem on NTFS". Launchpad. https://blueprints.launchpad.net/ubuntu/+spec/windows-installer. 
  16. Geza Kovacs (tuxcantfly). "Idea: Install via windows on loopmounted ntfs?". Ubuntuforums. http://ubuntuforums.org/showthread.php?t=305109. 
  17. "Wubi - Ubuntu Installer for Windows". Wubi. http://wubi.sourceforge.net/faq.php#development. 
  18. Instlux - openSUSE

External links