Computers Plus

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 9 May 2008

Dual Boot Windows and Linux: Single and Multiple Hard Drives

Posted on 21:08 by Unknown

The internet is full of technical articles, many of which are way too complicated for the average computer user who just wants to solve a simple problem. If you pay close attention, the internet is also a place where the “gurus” spend a lot of time yelling for help in discussion boards and forums. So don’t feel bad, nobody has all the answers.

So you want to dual boot Windows and Linux on the same computer—it is really quite easy. I only have enough room here to tell you the most common way to do this on a single hard drive or using multiple hard drives. Obviously then, there are many ways to get the job done, but there are some critical things you should know. Let’s start with some critical information.

Windows and Linux: Same Hard Drive
The windows operating system MUST occupy the master boot record (MBR). Linux, on the other hand does not have to. In this scenario, you must install windows first! After Windows has been successfully installed, then you can install Linux. This is critical! The Linux “boot loader” is called GRUB. When you install Linux—MAKE SURE YOU DO NOT INSTALL THE LINUX BOOT LOADER TO THE MBR.

Configure the Windows Boot Loader: A Two Step Process
It is also possible to use GRUB to dual boot Windows and Linux on the same drive but this is a bit more complex—the Windows boot loader will get the job done. In the following commands, you will create a copy of the Linux boot sector and then save it in a file in the top level directory under Windows (C:\).

Step 1: Linux
From the shell in your Linux installation (boot from your installation disks):
Execute the following shell command, replacing /dev/hda3 with the location of your Linux boot partition.

shell# dd if=/dev/hda3 of=/bootsect.lnx bs=512 count=1

Copy the new file—bootsect.lnx—to a floppy disk and reboot to Windows.

Step 2: Windows
Copy bootsect.lnx to C:\ in Windows. Then execute the following command at the DOS prompt.

C:\> attrib -H -R -S \boot.ini

Edit boot.ini so that the first two lines are:
[boot loader]
timeout=30

After the last line, add:
c:\bootsect.lnx=“Start Linux”

That’s it, you are done! Reboot your machine and you will see a menu allowing you to select either Windows or Linux. Congratulations.

Windows and Linux: Two Hard Drives
This is also quite easy. In this case, you will boot to the Linux drive. We will add Windows to the Linux boot loader (i.e., GRUB). GRUB is my favorite boot loader.

Edit the /boot/grub/grub.conf file. One of the very first lines should contain:

timeout=30

After the last line add:
title Start Windows
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1

Reboot your machine to the Linux drive and you will see a menu allowing you to select between Linux or Windows. Nice work!
This article is obviously short and does not include any explanations of how these commands work. There are variations on what I have shown here depending on your hardware setup, but I believe that these are the most common and should get the job done nicely. I would be happy to direct you to additional resources if this does not work for you.

Copyright © 2005 Majella.us

About the author:
David Picella is a Family Nurse Practitioner and PhD Student at UW Milwaukee. He is the founder of The Saint Gerard Fertility Care Center in Duarte, CA, which promotes morally acceptable scientific breakthroughs in reproductive medicine.
Email ThisBlogThis!Share to XShare to Facebook
Posted in linux, operating system, software, windows 95 | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Top 55 Tips for Search Engine Optimization (SEO)
    Here is The Top 55 SEO tips for beginner, newbie, or new webmaster.. Search engine optimization or SEO pertains to the the way you optimi...
  • Troubleshooting and Maintaining Your Laptop Battery
    Troubleshooting and Maintaining Your Laptop Battery The actual life of a laptop battery will vary with computer usage habits. For most use...
  • How to Send a Fax from Your Computer
    So how can you send a fax from your computer using the Internet or email? We are in the days of an easy lifestyle where we can do everythin...
  • How to Clean Your Computer Motherboard (Mainboard)
    If you have not done the inspection mentioned in the previous article - How to Clean your Case, now is the time to do so. Look at the blades...
  • A Comparison: Using Registry Repair Tools Versus Local Computer Repair Shop to improve PC performance
    What do you think is a more effective way of repairing your PC system registry files? Taking it into your local computer repair shop or dow...
  • Linux Versus BSD
    If you compare Linux and OpenBSD in their desktop environment features, Linux offers more applications than OpenBSD; but in a server solutio...
  • Computer Tips : 23 Easy Ways To Speed Windows Xp
    Computer Info, Tips and Tricks about the Operating System.. ( Windows XP ) Since defragging the disk won't do much to improve Windows X...
  • Driver Data
    Your PC has a number of hardware components that need to communicate with each other and with the programs you’re using. This can get tricky...
  • Buy Quality Computer Hardware Online
    Computer hardware means the physical part of a computer. No software or program can do anything without proper hardware. Moreover the succes...
  • DVD Repair, Scratched DVDs and Unfinalized DVDs recovery tips and tricks
    Simple and (hopefully!) free procedures to handle unsuccessfully finalized DVDs, damaged DVDs or DVDs that have not been burned correctly by...

Categories

  • adware
  • adwatre
  • and Panda Antivirus
  • anti spam
  • antivirus
  • antivirus info
  • audio
  • backup
  • bed sector
  • bios
  • Bit Defender
  • boot
  • bsd
  • buy
  • case
  • cd
  • centre
  • clean up
  • cleaner
  • compare
  • component
  • computer
  • computer definition
  • computer description
  • Computer Drivers
  • computer info
  • computer info centre
  • cookies
  • cpu
  • ddr
  • ddr1
  • ddr2
  • defragment
  • describsion
  • desktop
  • detect
  • device
  • devices
  • disc drives
  • dos
  • downgrade
  • download
  • driver
  • dvd
  • ebook
  • email
  • error
  • external
  • faster
  • firewall
  • flash
  • format
  • free antivirus
  • Free Download
  • game
  • graphics card
  • guide
  • hard disk
  • hard drive
  • hardisk
  • hardware
  • helps
  • infect
  • infected
  • info
  • information
  • install
  • internet
  • junk
  • Kaspersky
  • keyboard
  • laptop
  • link exchange
  • linux
  • mac
  • mainboard
  • malware
  • McAfee Virusscan
  • memory
  • microsoft
  • modem
  • monitor
  • motherboard
  • mouse
  • multimedia
  • Norton Antivirus
  • notebook
  • office
  • online
  • operating system
  • optimize
  • overclock
  • Panda Antivirus
  • paper
  • patition
  • pc
  • PDA
  • performance
  • peripherals
  • photo
  • photoshop
  • picture
  • Power Supply
  • powerpoint
  • printer
  • problem
  • processor
  • programs
  • protect
  • ram
  • reboot
  • registry
  • removable drive
  • remove
  • repair
  • restore
  • scanner
  • sdram
  • search engine
  • secrets
  • security
  • seo
  • SEO Tips
  • service
  • simm
  • slow PC
  • software
  • soundcard
  • sp3
  • speed up
  • spyware
  • system
  • tips
  • tools
  • top
  • top 10
  • Trend PC-cillin
  • tricks
  • trojan
  • troubleshoot
  • turorials
  • update
  • upgrade
  • vga card
  • video
  • virtual PC
  • virus definition
  • viruses
  • website
  • windos xp
  • windows 95
  • windows 98
  • windows me
  • windows vista
  • windows xp
  • worms

Blog Archive

  • ►  2011 (1)
    • ►  September (1)
  • ►  2009 (12)
    • ►  November (1)
    • ►  September (1)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (4)
  • ▼  2008 (98)
    • ►  December (4)
    • ►  November (8)
    • ►  October (5)
    • ►  September (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (4)
    • ▼  May (18)
      • The Hard Disk Guide
      • Formatting A Hard Disk
      • Hard Disk Optimizing Tips
      • When Should I Clean My Windows Vista Registry?
      • Speed Up Windows Vista - 5 Effective Steps
      • How To Correct A Continually Rebooting Computer
      • Dual Boot Windows and Linux: Single and Multiple H...
      • Download AVG Anti-Virus Free Edition 8.0
      • How to Clean Your Computer Motherboard (Mainboard)
      • How to Clean Your Computer Case
      • How to Clean a Printer
      • How to Clean your Mouse
      • How to Clean your Keyboard-Part 2
      • How to Clean your Keyboard - Part 1
      • How to Clean the Registry
      • How to Clean Disc Drives
      • A Comparison: Using Registry Repair Tools Versus L...
      • Computer peripherals – to accelerate the performan...
    • ►  April (24)
    • ►  March (18)
    • ►  February (11)
Powered by Blogger.

About Me

Unknown
View my complete profile