DesktopLinux
Home  |  News  |  Articles  |  Forum  |  Polls  |  Blogs  |  Videos  |  Resource Library

Keywords: Match:
A Vista vs. Linux Matchup - Part 2: Dual-booting Vista and Linux
by Steven J. Vaughan-Nichols (Jan. 26, 2007)

Foreword: This is Part 2 of a series that pits Microsoft's latest wares -- Vista -- against Linux's fair-haired boy -- Ubuntu. When we last saw our fearless curmudgeon, he was busy preparing a level playing field for Vista and Linux to play -- and work -- together on.

Note: If you missed Part 1, read it here.



A Vista vs. Linux Matchup

Part 2: Dual-Booting Vista and Linux


by Steven J. Vaughan-Nichols


Spread the word:
digg this story
Last time around, I described the HP Pavilion Media Center TV m7360n that I'm using for my Vista vs. Linux shootout. Getting the PC was the easy part. Getting Linux and Vista to live together on the same machine turned out to be a bit harder.

On XP and earlier Windows PCs, making Windows and Linux live together was almost automatic. Any of the major distributions made it easy. With Vista, things have changed. Microsoft has deep-sixed 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. I'm not, by the way, talking here as someone whose chief concern is dual-booting Linux. BCDEdit is a pain to work with no matter how you're modifying Vista's boot behavior. Unfortunately, though, you're going to have to work with Vista bootloader, because Vista doesn't deal well with being installed on a system that already has an operating system on it that you mean to keep.

In my case, I had already decided to blow away my system's existing Windows XP Media Center Edition 2005, Update Rollup 2 operating system. I could have "upgraded" this system to Vista, but I really do want to give Vista its best chance to shine, and upgrading an existing Windows system appears to be an almost sure way to find trouble.

Unless you have a lot of time on your hands, you don't mind running into incompatibility problems, and you know exactly what you're doing, do not "upgrade" to Vista. Do a clean install, instead.

In the case of a dual-boot system, 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.

With all that in mind, I did a clean install of Vista Ultimate on my system. I divided my system's 300GB SATA hard drive into two equal partitions. On the Vista side, I had the option of using BitLocker Drive Encryption, but I decided not to use it.

BitLocker actually makes a good deal of sense. In particular, if I was planning to lug around a Vista-only laptop, I'd like knowing that if anyone swiped it, they wouldn't be able to easily get at my data.

For me, though, that has two problems. The first is that it requires a TPM (Trusted Platform Module) 1.1 chip or a USB drive. While the HP doesn't have a TPM chip, it does have six USB 2.0 ports. But, if I use a USB drive to keep my BitLocker encryption key on, isn't it always going to be on my machine anyway? Now, this doesn't really matter with this hefty tower system, but if I were using a notebook, anyone who grabbed my laptop bag would also be likely to get my USB BitLocker key at the same time.

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.

One final thought on BitLocker before I go. Microsoft has only made it available on its Enterprise and Ultimate editions. Enterprise is only available to volume buyers, and Ultimate's the most expensive Vista of them all. I find it more than a little annoying that small business users will have to upgrade to Ultimate to get what I think of as one of Vista's best points for business users.

As for Linux and disk encryption, this functionality has been baked into Linux using the CryptoAPI since version 2.6.0 first appeared several years ago. For detailed instructions on how to use CryptoAPI, see, A Structured Approach to Hard Disk Encryption. If you don't want to get your hands dirty with this do-it-yourself approach, you can use a GUI-enabled open-source program, TrueCrypt to get the job done.

Now, I started to install Vista. One of Vista's better points is that it will alert you when it runs into hardware that it hasn't a clue on how to handle. On the down side, it will also, like all operating systems, run hardware that it thinks it knows how to run, but it doesn't really have a clue.

With the m7360n, I quickly found that neither Vista nor Ubuntu nor MEPIS could run all of the system's hardware. I found one component that Vista couldn't deal with at all, and several that required some work with MEPIS before I could get them operational.

I'm going to save those stories for the next installment where I talk about hardware compatibility, so I can continue talking about making Vista and Linux dual-bootable. Before I do this, though, let me make one thing clear. People are always talking about how Linux has problems with devices. And, that's true. Vista, however, at this point in its development anyway, also has a goodly number of hardware problems.

For the most part, both the Vista and MEPIS installations went without any problems. Both operating systems come on DVDs and once you boot the system up and start installing them, your "hardest" job will be setting the proper time.

In the case of Vista, though. I did have one of those "What the heck?" moments. If you look at the Windows setup screen you'll see that it lists both Home and Business as choices, but there's really no difference between them. Or, if there is, you sure can't tell it from this display. I do have to wonder for a moment, too, about anyone who's not sure if they're at home or in the office, but I'll let that pass.


One of those "What the heck?" moments.
(Click to enlarge)

Once both systems are on the machine, though, you're going to quickly find that you can only boot the system into Linux, thanks to the unfriendly Vista BCD.

There are several ways to get around this. For Ubuntu-based systems like MEPIS and Kubuntu, which use the GRUB bootloader, here's how you set it up.

First, you want to switch to root, aka super-user mode. MEPIS enables me to do this with the su command. Most of the Ubuntu family requires you to use the sudo command. For our purposes, changing the bootloader settings in Ubuntu with its sudo settings will work in exactly the same way.

Then, in most of Linuxes, you open up the file /boot/grub/menu.lst with your favorite text editor, not word-processor. In my case, that's vi in a terminal window.


Configuring GRUB to dual-boot Linux and Vista
(Click to enlarge)

Then, you enter the following lines at the bottom of the file...

    title Vista
    rootnoverify (hd0,1)
    savedefault
    makeactive
    chainloader +1

...and then you save and close it.

In my case, Vista is on my first -- and only -- hard drive's second partition, so the root setting is "hd0,1". If it were on my second drive's first partition, it would be "hd1,0".

Now, when you boot your system up, the first thing you'll see is the MEPIS boot screen. If you want to go to Linux, you just leave it alone and off you go. If you want to boot Vista, simply select it, and that will put you into Vista's BCD menu and you'll be on your way to Vista.

If you want to get fancier, say run Vista, XP, Red Hat, Mac OS X, Ubuntu, Solaris, and -- oh, what the heck -- OS/2, on a system, you should get a high-end boot manager editor. At this time, the best I know of, which can also handle Vista's BCD, is EasyBCD 1.52, from NeoSmart Technologies. This is a Windows-only, freeware program.


My Vista desktop
(Click to enlarge)


My MEPIS desktop
(Click to enlarge)

At the end of this, as you can see, I had both Vista Ultimate and SimplyMEPIS 6.01 installed and running successfully on my PC. Well, mostly successfully. For what went right -- and wrong -- with the system's hardware with both operating systems, stay tuned for the next exciting chapter.

Oh, and yes, that is an Internet Explorer icon on the MEPIS window.



Continue to Part 3 here:



Part 3: Hardware Wars



Do you have comments on this story?


Talkback here

NOTE: Please post your comments regarding our articles using the above link. Be sure to use this article's title as the "Subject" in your posts. Before you create a new thread, please check to see if a discussion thread is already running on the article you plan to comment on. Thanks!



Related stories:

(Click here for further information)


Approaching the Linux Desktop
The purpose of this paper is to help organizations evaluate the Linux desktop against their own enterprise needs and discover what benefits the Linux desktop might bring to their organizations.

Migrating To Linux: Application Challenges and Solutions
Several solutions exist to help organizations migrate in an orderly fashion from Windows to Linux desktops. This paper establishes the characteristics of an ideal cross-platform solution and reviews these alternatives in light of this ideal standard. The paper takes a closer look at the pros and cons of various solutions and outlines the business benefits that can be achieved.

Linux Advantages: Publicly Available Information on Linux Software
This paper offers a brief summary of readily-available Linux information to help businesses sort out this widely misunderstood operating system.

Top 5 Strategies for Managing Linux
Despite continuous evolution in the manageability of Linux, a 2006 survey cited manageability concerns as a top reason why organizations are hesitating to adopt Linux. Levanta believes Linux can be as manageable, if not more so, than other operating systems by following key strategies. These strategic recommendations were developed from experiences in numerous customer environments, both large and small.

Why Choose Novell for Linux?
This paper outlines the benefits of switching to the Linux platform and choosing Novell as a high-performance, enterprise solution.

Enterprise Linux Selection Guide
Considering moving your enterprise to the Linux operating system? Since there are so many similar versions, choosing the right one can be tough. This paper offers a clear process to help you make an informed decision and get the features, support, and cost that are right for your business and technical needs.

Overcoming Challenges in Managing Linux
Levanta has created a new administration model with innovative technology that breaks down the barriers to making the most of Linux systems. This paper will provide an in-depth look at the workings of Levanta’s product, the first Linux appliance of its kind.

SUSE Linux Enterprise 10 for Retail Businesses
Discover why major retailers have switched to SUSE Linux Enterprise Desktop in the back office. SUSE Linux Enterprise Desktop 10 is a low-cost desktop that offers a complete set of productivity applications and interoperates seamlessly with the other Windows, Macintosh and UNIX desktops in your store.

Moving to a Linux Desktop
Migrating from Windows to Linux on the desktop can be a substantial undertaking because it has the potential for touching -- and perhaps disrupting -- every user in your organization. Unlike a data center (server and infrastructure) migration that is largely transparent to users, the cultural and administrative transitions and environment readiness required to support a Linux desktop migration are extensive.

Seven Good Reasons to Exchange Exchange
This paper describes seven compelling reasons why you should switch from Exchange to Scalix.

 



Got a HOT tip?   please tell us!

ADVERTISEMENT
(Advertise here)

Resource Library


Popular recent stories:
• Linux an equal Flash player
• Linux, netbooks threaten Microsoft's fat profits
• gOS 3.0 goes gold
• Browser swallows OS
• Lenovo denies ditching Linux
• Lightweight, Linux-compatible browser evolves
• GNOME 2.24 gains "Empathy" IM
• Review: Pardus Linux
• Ubuntu to fund Linux development
• Ubuntu "Intrepid Ibex" available

All-time Classics:
• Choosing a desktop Linux distro
• Banshee -- the next best thing to Linux iTunes
• Running World of Warcraft on Ubuntu
• A simple Linux backup method
• The Best Free Desktop Linux . . . and how to make it better
• Linux-powered Asus Eee PC mini-laptop arrives
• The well-tempered Debian desktop
• Lenovo launches a netbook
• What's the best Linux for beginners?
• Getting to know Puppy Linux
• Xandros 4: The best desktop Linux for Windows users
• VirtualBox: The best virtualization program you've never heard of

Linux-Watch headlines:
• GPLv2 copyright suit targets 14 firms
• Amid controversy, Microsoft launches open source foundation
• As open source surges, Microsoft admits Linux threat
• Open source lobbying group emerges
• Open source Linux device drivers submitted by -- Microsoft?
• Google names Chrome OS partners
• Google's new OS marries Linux and Chrome
• Debian plans draw sharp warning from GNU guru
• OpenSource World announces keynote speakers
• Linux 2.6.30 gets new filesystems


Join our Desktop Linux discussion forums:
•  Moving to Linux
•  Linux/Windows debate!
•  Linux Q&A
. . . and more
Visit the...


BREAKING NEWS

• All-in-one PC has dual-core Atom
• Fedora 13 alpha arrives amid controversy
• Linux summit dissects MeeGo
• Nettop taps Ion 2 GPU
• Debian live CD distro rev'd
• OpenSUSE 11.3 hits second milestone, features KDE 4.4 desktop
• Ubuntu Netbook Remix enlightens ARM support
• RHEL 5.5 advances KVM, WiFi
• Hot-patch service boasts reboot-free server updates
• Linux Mint 8 achieves final KDE version
• LinuxCon opens for registration, paper submission
• Open source nettop designed from survey requests
• Free training webinars feature Linux luminaries
• Second Lucid Lynx alpha said to offer 15-second start-ups
• Ubuntu books span Koala and Lynx distros



Linux Netbooks


Linux smartphones!


news feed

Or, follow us on Twitter...


Home  |  News  |  Articles  |  Forum  |  Polls  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2010 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.