How to dual-boot Debian 6 and Windows 7

On Linux, you cannot create more than four primary partitions. And since we already have two primary partitions (for Windows 7), the installer will by default want to create the first and subsequent Debian partitions as logical partitions. The partition numbers will, therefore, start at 5. The boot partition, which is the first one we are creating, will be /dev/sda5. Note this carefully, because GRUB will be installed on this partition for reasons that I will explain when we get to that step. Continue.


On this screen, select the file system and mount point for the new partition. Then scroll to “Done setting up the partition.” Continue.

With /boot created. you can now create other partitions. For this tutorial, I am going to create LVM partitions similar to those used in manual LVM configuration guide for Debian 6. That tutorial also explains, in detail, the steps involved in setting up LVM. If you are not familiar with the steps, you might want to consult that article.

Select the free space and click Continue.

Scroll to “Create a new partition.” Continue.

Since this partition will be used as a Physical Volume for LVM, it is okay to use all available space on the disk. Continue.


This is what the installer will present to you. However, you do not want to use it as a standard partition. So, scroll to “Use as.” Continue.

Related Posts

Configure LVM in Mandriva Linux Free 2009 Mandriva Free is one of the editions of desktop Linux distros published by Mandriva, the French Linux solutions provider. The others being Mandriva ...
How to change the default route in Linux This is just a short article that shows how to change the default network route in Linux. Before I show how to do it, hoping that it helps somebody, l...
Using Apache SparkR to power Shiny Applications Editor: This is part 1 of a multi-part article published by SparkIQ Labs, a Big Data outfit based in Kampala, Uganda. The objective of this blog ...
Dual-boot Windows 7 and Kali Linux This article is a step-by-step guide on how to dual-boot Windows 7 and Kali Linux on a single hard disk drive (HDD). Kali Linux is what used to be Bac...
How to build your own phone company with WebRTC and Node.js I'm reposting this article because it's very cool and anybody can try it and probably succeed on their first attempt. the title of the original ar...
Best IDEs for Octave, Python and R Code-wise, I've been getting my hands dirty with some digital grease over the past few months, and it's been fun. Most of the fun has resolved around ...

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

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.


  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?


  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 *