Want to Dual Boot Vista & Linux?
Windows Vista Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Want to Dual Boot Vista & Linux?Expand / Collapse
Author
Message
Posted 7/11/2007 1:23:27 PM


Administrator

Administrator

Group: Administrators
Last Login: 8/22/2008 10:02:32 AM
Posts: 2,102, Visits: 2,247
Dual Booting Vista and Linux:

Background:

Back in the day w/ good old Windows XP dual booting was a breeze. Any of the major distributions made it easy. With Vista, things have changed. Microsoft has  changed up the game plan with Vista, ridding itself of its old boot.ini bootloader in favor of a new bootloader. The new bootloader, BCD (Boot Configuration Data), is designed to be firmware-independent. It also comes with a new boot option editing tool, BCDEdit.exe, which isn't so much user-friendly as user-hostile. Feel free to search the forums and you'll find plent of info on using BCDEDIT.The major downfall of BCD is the fact that it doesnt play well, when installed over pre-existing OS's. The 2nd problem arises with users who have deployed Bitlocker drive encryption. The real problem for dual-booting with BitLocker is that it blocks Linux from accessing any data in that partition. Security guru Bruce Schneier thinks "You could look at BitLocker as anti-Linux because it frustrates dual boot," but I don't think it does. Even with BitLocker installed, Vista still needs an unencrypted partition to boot from, so dual-booting should still work. It's just that getting at data on the BitLocker-protected NTFS partition will be close to impossible for Linux users.

Getting to it:

In the case of a dual-boot system, I belive the best way to dual boot is to install Vista first. Make sure it boots good, then move onto the linux side. You're almost certainly going to need to do a clean install, anyway. You see, if you "upgrade" a system, you have to do it from within Windows XP or 2000. And, if you do that, you can't repartition or reformat any of the hard drive. The only way you can work on your drive fundamentals at the start of a Vista install is if you boot from the Vista DVD. So, unless you already have a big enough partition on your drive for another operating system, you're better off with a clean install.

Below is an example using Ubuntu linux but should be compatible with many other distributions:

Boot into Windows Vista and go into Disk Management - right-click My Computer, Manage, Disk Management.

Vista Disk ManagementVista Disk Management

Right-click on the main Vista partition and select Shrink Volume

Vista Disk Management - Shrink VolumeVista Disk Management - Shrink Volume

The Shrink tool will assess how much space can be freed up.

Vista Disk Management - Shrink Volume 2Vista Disk Management - Shrink Volume 2

As a rule of thumb Shrink will reduce the main system partition by about 50%. As long as the partition is big enough to begin with (at least 10GB) it should accommodate both operating systems.

Select Shrink and the tool will reduce the volume of the primary partition, leaving the rest of the disk free as unpartitioned space.

Vista Disk Management - Shrink Volume 3Vista Disk Management - Shrink Volume 3

Once that's done, shut down the Vista machine.

Install Ubuntu

You'll need the latest desktop ISO of Ubuntu (7.04). You can choose a list of download mirrors from the Ubuntu website, or use this link from Planetmirror. Download the ISO and burn it to CD to create an Ubuntu Live CD.

Boot the Vista machine from the Live CD and select "Start or install Ubuntu".

Vista & Ubuntu - Install UbuntuVista & Ubuntu - Install Ubuntu

Once the Live CD has loaded, double-click the Install icon on the desktop to start the installation process.
On the Welcome screen, choose your language and select Forward.
Vista & Ubuntu - Install Ubuntu - LanguageVista & Ubuntu - Install Ubuntu - Language
On the "Where are you" (timezone) page, select your location and then Forward.
Vista & Ubuntu - Install Ubuntu - TimezoneVista & Ubuntu - Install Ubuntu - Timezone

On the next screen, choose the appropriate keyboard layout and then Forward.

Vista & Ubuntu - Install Ubuntu - KeyboardVista & Ubuntu - Install Ubuntu - Keyboard

Ubuntu will then load the disk partitioner to determine where it's going to be installed. Choose "Manual - use the largest continuous free space". This will automatically select the unpartitioned space we created earlier using the Shrink tool. Click Forward.

Vista & Ubuntu - Install Ubuntu - Disk PartitionerVista & Ubuntu - Install Ubuntu - Disk Partitioner

On the Migrate Documents and Settings screen, if Ubuntu finds any user accounts to migrate, feel free to import it from Vista to Ubuntu. If it doesn't find any, obviously this isn't an option. Click Forward.

Vista & Ubuntu - Install Ubuntu - MigrateVista & Ubuntu - Install Ubuntu - Migrate

On the "Who are you?" screen, enter your username and password details, then click Forward.

Vista & Ubuntu - Install Ubuntu - User DetailsVista & Ubuntu - Install Ubuntu - User Details

On the "Ready to install" screen, you'll see that Ubuntu now has enough information to commence the installation. In the summary under Migrate Assistant, it should say "Windows Vista/Longhorn (loader)". This means that regardless of whether Ubuntu found any user account to migrate, it certainly knows that Windows Vista is installed on the other partition and is aware of it. Click Install.

Vista & Ubuntu - Install Ubuntu - InstallVista & Ubuntu - Install Ubuntu - Install

See the install through and then let it boot into Ubuntu.

When the install is complete the system will reboot. When the GRUB boot menu is displayed, have a look at the last entry in the list.

Vista & Ubuntu - GRUB BootloaderVista & Ubuntu - GRUB Bootloader

After the Ubuntu boot options, there will be an entry “Other operating systems” and beneath that "Windows Vista/Longhorn loader”. By default Ubuntu will load itself after 10 seconds, but you can select the Vista option and Vista will boot normally.

Configure GRUB

If you want to modify how GRUB handles the new dualbooting environment, you need to edit the boot menu. Boot into Ubuntu and open up a Terminal window (Applications, Accessories, Terminal), and type in:

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_bak

and enter your root password when asked - this makes a backup of the GRUB menu file just in case things go wrong.

Next, type in:

sudo gedit /boot/grub/menu.lst

Dualboot - Configure Boot MenuDualboot - Configure Boot Menu

This opens up the boot menu as a text file in gedit.

Dualboot - Boot OptionsDualboot - Boot Options

There are loads of options you can change, but only a couple that you’re likely to be interested in. The default boot entry is defined by the “default” value.

The default value is 0, which means that the first entry in the list (which is Ubuntu) always gets loaded.

If you want to make it so that Windows Vista loads by default, change the value to 4, as Vista is the fifth item in the list (the numbering system starts at 0 and "Other operating systems" counts as a line).

The other way to load Windows Vista by default is to change the value for “default” from a numerical value to “saved”. Then, GRUB will load whichever boot entry has been marked with “savedefault”.

If you scroll down the list and have a look at the entries, you’ll notice that both the main Ubuntu entry and Windows Vista have been marked with “savedefault”. Remove the value for Ubuntu and Windows Vista will launch by default.

It's also worthwhile changing the description of the Vista entry from "Windows Vista/Longhorn (loader" to just "Windows Vista".

You can also increase the boot menu timeout – just change the value for “timeout”. You can also hide the GRUB boot menu by removing the hash in front of “hiddenmenu”. Save and exit gedit to keep any changes.

If instead of GRUB you want Vista's bootloader to be in charge, load up the Vista installation and install EasyBCD. Go to “Manage Bootloader”, then “Reinstall the Vista Bootloader”, an GRUB is overwritten. You can then configure the Vista bootloader to add Linux to the boot menu.

Sources: apcmag.com



AMD64 X2 5200+ 2.60GHz | 3GB DDR 667 | RAID 0 SATA3.0 WD Caviars 320GB total | Foxconn MCP61VM2MA-RS2H Geforce 6100 nforce400 chipset | Vista Ultimate x86
Post #9242
Posted 10/21/2007 4:36:03 AM
 

Group: Forum Members
Last Login: 5/4/2008 6:19:04 AM
Posts: 5, Visits: 11
Good guide, but i'd highly recommend creating a seperate /home partition during installation. This will allow you to keep all your software preferences and personal files if you ever reinstall Linux.

To do this, select "manual partitioning". Create an Ext3 partition of about 10GB, and mount your / (aka root) there. Create another partition of about 1-1.5x your RAM size and select "Swap" as the file system, then create a third partition containing all the free space and select /home as the mount point. If you want to keep data you share with Windows in your /home then you can make it NTFS, otherwise use the Ext3 file system.

Click for more info about installing Ubuntu on a Windows PC

Post #11279
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Jason, blackhat, kingofnexus, Camride, MafiaLord91, WAW8, Walker, MrMagic, PC509, AmericanNightmare

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:17am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 10 queries. Compression Enabled.