How to dual-boot Debian 6 and Windows 7

Debian How to dual-boot Windows 7 and Debian 6 is the latest in the series of articles on dual-booting Windows 7 and Linux and BSD distributions. None has been written for a BSD distribution, but with PC-BSD 8.2 scheduled to be released early next week, expect one to be written for it.

When attempting to dual-boot Windows and a Linux or BSD distribution, one of the most important decisions you will have to make is where to install the bootloader. You can install it in the Master Boot Record (MBR) of the hard disk, or in the boot partition of the Linux or BSD installation.

Because upgrading Windows tends to overwrite the boot loader, if it is installed in the MBR, the best location for installing the bootloader is the boot partition or, if you are installing to a second hard disk, the MBR of the second hard disk. Doing that will ensure that nothing you do on Windows will affect the Linux or BSD installation.

If you follow the recommended method, you will always be presented with the Windows boot menu any time you (re)boot the computer. You may then boot into Windows or Debian. You will still have access to GRUB’s boot menu.
debwin38

Note: This tutorial assumes installation on a computer with a single hard drive, and an existing installation of Windows 7. If you are installing a fresh copy of Windows, it is best to leave some free space, enough to install Debian.

To begin, download a suitable installation of Debian 6. If you need help choosing, read Debian 6 installation and disk partitioning guide.

To reduce reduce the number of images used, this tutorial begins at the step where disk detection starts. Select “Manual.” Continue.
debwin

Here, the installer shows existing NTFS partitions. As you can see, there is no free, or unallocated space. In order to install Debian 6, therefore, it will be necessary to resize /dev/sda2, the main Windows partition. To do that, scroll to that partition and double-click it, or highlight it and click Continue.
debwin1

Scroll to “Resize partition …” Continue.
debwin2

This is true size of the partition. The installer tells you the upper and lower limit that you can go.
debwin4

For this tutorial, I decided that 100 GB is all I need for the Windows partition. Continue.
debwin5

Now that there is free space, we can now proceed to partition that space for Debian 6. Select it, then click Continue.
debwin6

Scroll to “Create a new partition.” Continue.
debwin7

By default the /boot partition on Debian 6 is allocated a disk space of about 250 MB. Most Linux distributions use 500 MB. I think 250 MB will do just fine. Continue.
debwin8

Related Posts

9 tips for improving WordPress performance If you run a blog powered by WordPress, you should already know that tweaking it to improve the performance is not a one-shot deal. You have to keep t...
How to integrate Prey into the security posture of your Linux PC Prey is a cross-platform (Android, Linux, iOS, Mac OS X, and Windows desktop) anti-theft tracking software that, when installed and activated on a sup...
How to install Ubuntu 14.04 on encrypted MBR partitions This tutorial shows how to install Ubuntu 14.04 on encrypted MBR partitions. It is only slightly different from Manual full disk encryption setup guid...
How to install Linux Mint 10 on a btrfs file system Linux Mint 10 is the first version of Linux Mint with built-in support for the B-tree File System (btrfs). Btrfs is one of the newest file systems in ...
How to delete boot managers from a UEFI boot menu This short tutorial shows how to delete boot managers from a UEFI boot menu. It might not apply to all computers, but if your computer is anything lik...
ProtonMail and Subrosa: Encrypted communication for the privacy-conscious ProtonMail and Subrosa are two separate communications services that's attempting to offer users a platform for secure, encrypted communication. They ...

We Recommend These Vendors and Free Offers

ContainerizeThis 2016 is a free, 2-day conference for all things containers and big data. Featured, will be presentations and free, hands-on workshops. Learn more at ContainerizeThis.com

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


54 Comments

  1. Very, very useful tut. Thanks!

  2. Hi, thanks for this simple and practic explanation. Last night I did this step by step and when I was asked to reboot, the message “grub rescue unknown files” appeared. Now, I’m not really sure what this means.

    As I said, I followed step by step this tutorial and installed grub on /boot. Can you help me out?

    Thanks!

  3. LordFarquad

    So.. following the tutorial, at the “Install the base system” stage, I get the following error:

    Debootstrap Error
    Invalid Release file: no entry for contrib/binary-amd64/Packages.

    I hit continue and see “Failed to install the base system The base system installation into /target/ failed.

    Pretty much dead in the water. Any ideas?

  4. I’ve tried to install Debian 7 next to Windows 7 with this tutorial. It crashes when trying to install Grub on (hd0,5). (Doesn’t go further, simply stops.) Any help?

  5. Amazing one…. brother you rocksss

    Thank you very much……!!!

Leave a Comment

Your email address will not be published. Required fields are marked *

*