Partitioning and Dual Boot Windows 7

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
videogaims
Posts: 4
Joined: 2012-02-19 12:45

Partitioning and Dual Boot Windows 7

#1 Post by videogaims »

I want to partition my debian system so I can install windows 7 along side to dual boot both operating systems.

Here is a picture of what my partitions look like with GParted.
Image

Im looking to take around 150g for my windows 7 partition and leave the rest for my debian system. Can someone tell me how to do this?

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Partitioning and Dual Boot Windows 7

#2 Post by dasein »

So I took your thread title and entered it into Google (along with the keyword solved) and restricted the search to these Debian forums, like so:

http://www.google.com/search?q=partitio ... debian.net

I feel confident that you will find that this question has been answered repeatedly and in detail.

videogaims
Posts: 4
Joined: 2012-02-19 12:45

Re: Partitioning and Dual Boot Windows 7

#3 Post by videogaims »

dasein wrote:So I took your thread title and entered it into Google (along with the keyword solved) and restricted the search to these Debian forums, like so:

http://www.google.com/search?q=partitio ... debian.net

I feel confident that you will find that this question has been answered repeatedly and in detail.
Sorry and thank you, I'm not so good with things like that as you are. But I did use the forum search before making a thread

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Partitioning and Dual Boot Windows 7

#4 Post by dasein »

Yeah, the forum search sucks (as most forum searches do). That's why it's handy to know/learn how to use Google to search any forum (or any site) you wish.

I feel sure that the answer is covered in the existing threads, but if you still have specific questions, post back.

User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

Re: Partitioning and Dual Boot Windows 7

#5 Post by cra1g321 »

I've been dual-booting debian for a while now with windows 7 on a 500GB HDD.

What I do first is load up a gparted live cd, or a linux live-cd which has gparted on it,
then i create a extended partition which will be where my linux related partitions will go,
I position the partition to be at the end or start of the hard drive just by dragging it in gparted,
this leaves me with around 170GB for windows 7 and makes things much neater.

In the extended partition of 300GB, I first create a swap the same size as the amount of RAM, I have (4GB)
then I create my root partition ( / ) which is 25GB and EXT4, then whatever space is left in the extended partition,
I give to my home partition ( /home ) EXT4.

Then on one side of the hard drive im left with the 170GB of empty space / unformatted which is were windows
will be installed.

I then install windows first, get to the partition part, click on the unformatted space, go to options or somthing (cant remember) and click on New, the dvd then creates two partitions (one is system reserved and is only 100MB the other is the actual partition of windows)

Once im done installing windows, I then install debian.
When i get to the partition part in debian i just navigate to the root partition first ( 25GB ) i then assign it to be the root partition ( / ) and I then do the same for my home partition ( /home ). Debian automatically realises that there is a swap partition and automatically sets itself up to you it.

Then i just make sure to install GRUB bootloader at the end of the debian install, then once i reboot, I get a choice between Debian (default) and debian (recovery mode) and the windows 7.

Done :D

** Notes -

The reason I put my linux partitions in a extended partition is because i wanted to have a seperate /home partition, and since Windows 7 creates two partitions, if i was to set the linux partitions up without the extended partition i would get message in gparted saying i've reached a limit on the amount of primary partitions i can have.

No matter what distro I'm using to dual boot with windows, i always install windows first, it makes things alot easier when it comes to GRUB and booting the OS, for example i can just continue to replace my linux partitions with other linux distros and windows will just remain there, and the install cd will always install grub by default anyway.

Here's a screenshot to give you a idea of how my partitions are setup - Image

sda 1 = windows 7 system reserved
sda 2 = windows 7 partition
sda 3 = extended partition
sda 5 = swap partition (linux-swap)
sda 6 = / partition (EXT4)
sda 7 = /home partition (EXT4)


Hope this helps you :)

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: Partitioning and Dual Boot Windows 7

#6 Post by TonyT »

The reason I put my linux partitions in a extended partition is because i wanted to have a seperate /home partition, and since Windows 7 creates two partitions,
Windows 7 only will create two partitions IF the drive contains no partitions to begin with. If you partition the drive prior to running the Win7 dvd, Win7 will use just the one partition you select, i.e. no reserve partition created.

Post Reply