![]() Ubuntu With Windows This web-page is part of a larger site giving examples of how to install Windows+Ubuntu Linux operating systems 'dual boot' in a computer. Illustrated Dual Boot HomePage This webpage illustrates how to use the Ubuntu 'Alternate Installation' CD to install Ubuntu in a computer and have it share the same hard disk and dual boot with a Windows operating system. The installation CD you can use for an installation simialr to this is called ubuntu-10.04-alternate-i386.iso, md5sum5b2dadacfd692b4f2d5c7cf034539262 ubuntu-10.04-alternate-i386.iso The installation technique shown here applies to all Windows versions from Windows 95/98/ME through Windows XP up to and including Windows 7 and Vista. The Windows operating system should be installed first, and then Ubuntu. It is easier to just delete Windows and install Ubuntu without any Windows at all if you want to, but most people like to dual boot for a while first until they get used to Ubuntu. This install resizes the Windows partition to a smaller size to make room for the Linux partitions. Once that is done, the Ubuntu installer's partitioner automatically creates a primary partition with an ext4 filesystem for Ubuntu and a swap area. The length of time this install might take will depend on the speed of the hardware, it took me an hour and a half to install Ubuntu with the hardware I'm using. With modern hardware it might take less than half an hour.
To begin, you need to place your Ubuntu Alternate CD in your CD-ROM drive and re-start your computer. You should see something like the illustration below in your monitor. |
This is not an official Ubuntu website
![]() The motherboard is an Amptron Bki810 v1.6a This computer no longer looks like it did originally when the (above) photo was taken, it is now in an ATX case instead, but that's another story. If you're curious, here is a link to my other website with more details and photos of my PC Chips 'Book PC' computer, Book PC Gets Big Power Supply.
|
||||
![]() |
1-003_.png Language Selection Screen
![]() ubuntu languages.png - credit to Elabra Sanchez - creative commons licence. Ubuntu features language support for more languages than any other operating system. Ubuntu language support link: Translations/ReleaseLanguages/9.10 - Ubuntu Wiki Use the arrow keys on your keyboard to select the language you want to use for the installation and press enter. If your CD didn't boot, enter your computer's CMOS (BIOS) and check to make sure your CD/DVD drive is set before the hard disk drives in the BIOS boot order. See this website's BIOS Page. |
||||
![]() |
From here you can choose one of the following, Install Ubuntu - Press your 'Enter' key to begin installing Ubuntu right away Check the CD-ROM for defects I recommend checking the CD for defects before the first time it's used. Test Memory This option starts memtest86+, here's a link about that, memtest86+ There are 8 tests, and it takes about 1/4 to 1/2 an hour to complete one cycle. It's designed to keep repeating the cycle so you can let it run all night. Press'Esc' to exit memory testing after you try it out. Note: To ensure you are testing the RAM modules and not your CPU internal and external caches (L1 and L2), you can enter your computer's CMOS (BIOS) first, and temporarily disable caching. Do remember to re-enable those again when you are finished or your computer may perform slowly. Boot from first hard disk this re-boots the computer. Rescue a broken system (Rescue mode) useful to people who already have Ubuntu installed and want to carry out maintenance and repair tasks. F_ keys Try taking a look through the menus from the F keys to see if there's anything in those you want. |
||||
I selected 'Install Ubuntu' from the menu illustrated above and I pressed 'Enter'. |
|||||
![]() |
1-006_.png Language Selection This menu is for choosing the language you want for the operating system you are installing. We already chose English for the installation process, but we could be installing Ubuntu in a computer that will be used by a friend who speaks some other language. You need to use your arrow keys to scroll up or down the menu to select the language for the new operating system. I'm installing for myself today and for me it's English. |
||||
![]() |
1-007_.png Country You need to use your arrow keys to scroll up or down the menu to select your country. |
||||
![]() |
1-008_.png Detect Keyboard
I always choose 'No' here, it saves time.Use your 'tab' key if you want to select something else. |
||||
|
1-009_.png Keyboard Origin We mostly use the USA type of keyboard, even in Australia. |
||||
![]() |
1-010_.png Keyboard Layout If you have some special kind of keyboard you may scroll up and down this menu and look for it. |
||||
![]() |
1-011_.png Detecting Hardware The 'Detecting Hardware to find CD-ROM drives' step works fine when we're using a real CD or DVD as an installation media, but so far I have not been successful using the 'Alternate CD' when it has been copied into a USB drive. This thread in Ubuntu web forums looks as if it might contain the answer, Install 11.04 server from USB; fails, can't mount /cdrom , see post #3 by darkod. |
||||
![]() |
1-012_.png Scanning CD-ROM |
||||
![]() |
1-013.0_.png loading additional components |
||||
![]() |
1-015_.png detect network hardware |
||||
![]() |
1-016_0.png Configure the Network with DHCP |
||||
![]() |
1-016_1.png Network autoconfiguration has succeeded |
||||
![]() |
1-017_.png Configure The Network You can make up any name you like here for your operating system. Just press your backspace key to move the cursor a few places to the left to erase the name 'ubuntu', and then type in the name you want your new operating system to be called. |
||||
![]() |
1-017_1.png Setting up the clock |
||||
![]() |
1-017_2.png Configure the Clock |
||||
![]() |
1-020_.png Detecting disks and all other hardware |
||||
![]() |
1-021_.png Loading additional components This is the end of the first stage of the install.
Time taken to here, 3 mins and 15 seconds for the Book PC. Start of the partitioning stage of the install |
| We are now about to begin the Partitioning and Mount Point Selection phase of the installation. Please refer to the above link to the official Ubuntu documentation for a more detailed explanation of what can be done here. |
![]() |
1-022_.png Starting Up The Partitioner |
![]() |
This is an important decision. (1) The first choice can be seen by scrolling down on this web-page, because that's the one I'll be explaining in detail shortly. (2) The second choice would erase the entire disk including your Windows operating system and all your data! That's for people who want Ubuntu by itself and they want to completely erase whatever other operating system was there before. (3) The third choice, to erase the entire disk and use LVM, is one I have in a different web page. Here's a link to a website that explains what LVM is. (You'll need to scroll down a ways to get to the table of contents, from there it gets more interesting). You can also configure a RAID array with the 'Alternate CD'. Here's a great link about how to set up a RAID1 in Ubuntu, http://kuparinen.org/martti/comp/ubuntu/en/raid.html (4) You may also choose the fourth line 'manually edit partition table'. It would be alright to choose that option, it just takes a little longer but it offers more choices. If you want to have more control over exactly what the partitioner does then it is a good idea to choose this one. You might want to install on an existing partition which has already been made beforehand, for example. 'Manually edit partition table', will allow you to specify which partition Ubuntu will install on. The top option 'Resize /dev/sda1 and use freed space', is best choice in my opinion. This is the one I'm using, it will do all we need for this type of installation, and will be the quickest (and best). There is nothing much to go wrong when you keep everything nice and simple. I have highlighted that one, and I press 'Enter'. |
![]() |
2/2_002 Write Previous Changes to Disk |
![]() |
REMINDER: If you have the habit of using the number keypad, remember to apply your numlock first! The number keys on the row above the letters on your keyboard should always work. This panel is asking me to type in the new size for my existing Windows partition. The reasoning and logic behind this is that two steps before this I selected 'Resize /dev/sda1 and use freed space', so that is the partition the program is asking the question about. It is only human to be thinking of the new partition we are planning to install Ubuntu in, and think the computer means that one, but that one is not actually in existence yet. The program is not looking into the future, it's only talking about what's there right now. In this example, I have a 20 GB hard disk, and I want to leave 9.5 GB for Windows. Therefore, I use my backspace key to move the cursor to the left and erase the default size suggested here, and type '9.5 GB' on the line instead, and press 'Enter'. This will shrink my Windows partition to a 'new size' of 9.5 GB, and create 10.5 GB of 'free space' to install Ubuntu on. Then the partitioner will automatically partition the 'free space' into a new partition for Ubuntu, plus a small 'swap' partition. You don't have to worry about it, but a 'swap' partition is something like a page file that Linux operating systems use in conjuction with the RAM modules. 2/2_003 New Partition Size |
![]() |
2_004 Resizing The Partition |
![]() |
2_005 Computing New Partitions |
![]() |
2_006 Confirm Partitions This is called the 'confirmation screen'. This is my last chance to change my mind. If I select <No> from here it takes me to a different 'Partition Disks' screen from where I can choose advanced options or <Go Back and gain access to the Ubuntu Installer Main Menu. From there I can scroll down and 'Abort the installation' without any changes having been made to my hard disk. There will be warnings to the contrary, but those can be ignored. I used my 'Tab' key to choose 'Yes', and from here on I'm committed. On with the installation |
![]() |
2_007 Partitions Formatting End of the partitioning stage of the install
.....................................................................................................................................
5 mins 30 Seconds to here for the Book PC. Start of the final stage of the install |
| Please refer to the above link to the official Ubuntu documentation for more detailed advice about the questions you will be asked next. |
![]() | 3_.008
Installing The Base System
This takes a little while ... |
||
![]() |
17 1/4 mins to here
3_.009.png users and passwords
I just type in my first name and surname here. You are allowed to use capital letters. Whatever you type here will be remembered by your new system and used for automatically configuring some things like parts of your email account. Make sure you don't type anything foolish here because your e-mail recipients might be reading this some day. When ready, press enter or tab to select '<Continue>', then enter. |
||
![]() |
3_.010.png username Your first name should automatically appear here as a default username. You can change it to a nickname if you want, and with numbers too if you like. (Check your numlock). Lower case letters only though, no capitals. |
||
|
3_.011.png password for new user password tip Password Tip: It's possible to pick just one, two or three letters on your keyboard and press them and the keys around them to make a shape. For example if you want to start with the letter T, you could then press 6, 7, and then y and g. Then if you press f, d, r, 5 ,6 and t again you would have pressed the keys around the t in the shape of a diamond. You'd have an eleven character password that you can easily remember, but one that would be hard to crack. All you need to remember is 'Diamond T'. See if you can think of your own password based on a shape and just one, two or three letters. It is important to create a good, strong password for yourself in Ubuntu. |
||
![]() |
3_.012.png enter to verify | ||
![]() |
3_.013.png encrypt the home directory Advantages of having an encypted /home are that your personal files will be protected from being accessed by unauthorised people without the user needing to do anything special every time a confidential file is created. The operating system will still be fairly quick. Disadvantages are it might be more complicated to carry out some regular maintenance and repair tasks or rescue files after an operating system disaster. For the ultimate in security, consider Installing Ubuntu in a fully encryped LUKS file system, illustrated in a different page of this website, see Ubuntu Karmic Koala Encrypted Flash Memory Installation . Disadvantages of a fully encrypted installation are that it runs a little slower, (detectable with benchtesting software), and it's a little more complicated to maintain and to rescue file from if things go badly wrong. Without any encryption at all, maintenance and repair tasks will be simple, and I will still be able to use the seahorse program to encrypt certian individual files when I need to. See this website's Set up Seahorse. I choose not to have an encrypted /home. |
||
![]() |
3_.014.png configuring apt The apt system of package management is one of the great features Ubuntu inherits from Debian, which is the operating system Ubuntu is based on. Packages are uploaded to certian internet repositories exclusively by registered programmers using the proper credentials. This is one reason why we're not bothered by malware in Ubuntu. It is possible to enable other repositories with varying degrees of support and security. If you still can't find the software you want, it's also possible to add extra repositories at your own risk. |
||
![]() |
3_.015.png http proxy settings Those who require these settings will know what to enter here. I always just press enter to skip this question.
|
||
|
3_.016.png configue apt |
||
![]() |
3_.017.png select and install software This process takes far more time than any other part of the installation. In my PC Chips 'Book PC', this takes just over an hour, about 61 minutes. Even in a fast computer a person would have time to go and do something else for a while. |
||
|
3_.018.png install grub |
||
![]() |
3_.025.1_.png install grub to mbr The best choice for most of us is to choose <Yes> and install GRUB to your MBR. GRUB is the world's most advanced boot loader and even has its own command line interface, is fully customizable and functions as a boot manager as well. Ubuntu will write the boot.img code for the GRand Unified Bootloader, known by the acronym GRUB, in the area of the MBR reserved for boot loader code. This will overwrite any boot loader code in the MBR that was previously put there, without affecting the disk 'signature', (UID) or the partition table. This process will also embed sectors in the normally vacant first track of the hard disk with GRUB2's core.img file. The core.img file is for helping the MBR code to locate the Ubuntu partition, read the file system there and find the main body of GRUB, which is inside Ubuntu. I have added some information in the 'MBR Page' of this web site for a more detailed explanation of what actually happens here. When you should NOT choose <Yes> to install GRUB
If you choose <Go Back> you will be placed in the 'Ubuntu Installer Main Menu', where you can scroll down just one line and install Lilo bootloader instead. See this website's LiLo Page. There are choices available as to where you would like to install Lilo as well. The first sector of your Ubuntu partition is a popular choice for Lilo. To see illustrations about what you can expect if you take that route, visit the following link, <Go Back>. If you are really worried, try making a GAG Boot Manager floppy or CD. Of course, you are not expected to make one in the middle of an install, but you can make one beforehand or afterwards if you need one. GAG will boot Windows, but not Ubuntu. GAG will boot Ubuntu if either Lilo or GRUB is installed to the first sector of the Ubuntu partition or a /boot partition. Read this website's GAG page first. You'll find illustrated instructions on that page about what to choose in this step of the installation to set Ubuntu up for booting with GAG Boot Manager. It is possible to continue the installation without installing any boot loader at all. If you choose that, you will be able to boot your new Ubuntu from GRUB in another Gnu/Linux operating system or from GRUB in a CD, floppy disk or USB device. A basic knowledge of boot loaders and GRUB may be required to achieve this though. |
||
![]() |
I always choose <Yes> and install GRUB's boot.img to MBR and core.img to the first track of the hard disk. | ||
![]() |
3_.027.png finishing the installation
|
||
![]() |
3_.031.png installation complete At this point, my CD drawer pops open automatically and I remove my CD from it and press 'Enter'. Some computers might not have a CD drawer with a mechanism to open the CD-ROM drawer automatically. If this is the case, you should remove your CD manually. When I have installed GRUB to MBR, as most of us do, all I need to do is press 'enter', for the computer to re-boot and continue with the rest of the install. For those who chose not to install Grub to the Master Boot Record of their first hard disk, now is the time to make sure that whatever you are re-booting with, (Super Grub Disk or GAG Boot Manager or the like), is ready and placed in its drive to re-boot the computer after you press 'enter'. |
||
![]() |
3_.033.png finishing the installation |
||
|
For some people, this will be the first time they will have ever seen the GRUB boot loader's Main Menu! To use the GRUB boot loader, you just click 'Enter' and it will boot into Ubuntu. If you don't click 'Enter', it will still boot Ubuntu anyway after ten seconds. The GRUB boot loader will appear from now on every time you start or re-boot your computer. It is possible to change the timer in it, and also to change the default boot preference, and a few other things. For more detailed information about how to use GRUB Boot Loader in Ubuntu, visit this website's GRUB2 Pages and Legacy GRUB Page. Don't do this now (we are still completing the new install), but in the future, if you wanted to boot Windows, or any other operating system on the list, you just use your arrow keys to highlight it with the white rectangle, and hit 'Enter'. If you want it to wait until you make up your mind, press your 'pause' key. |
||
![]() |
3_.035.png ubuntu starting up |
||
![]() |
3_.036.png desktop forming |
||
![]() |
3_.038.png logging in |
||
![]() |
3_.039.png new desktop - "Hello world!" This took one hour and thirty five minutes in my PC Chips 'Book PC'. The next thing most Linux users want to do immediately after our new installation boots for the first time is to get updates and start configuring, customising and adding software. This website has its own Post-install Page which you're welcome to make use of, especially if you're a new user and not familiar with Ubuntu yet. |