LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2014, 04:47 AM   #1
StuartK24
LQ Newbie
 
Registered: Jan 2010
Location: Brisbane, Australia
Distribution: Mint 17
Posts: 23

Rep: Reputation: 0
How to install dual boot Debian?


I want to install Debian alongside Windows 7. I have made 3 install disks of Debian 7.6 amd-64 and now want
to know the next install step. I have shrunk the windows partition with in-built Windows partition manager to make space for Debian. The rest of the hard drive remains unformatted. I was going to just boot from disk 1 and start installing. However, I have recently read a horror story in a letter to the editor of a computer mag here in Australia. Some poor guy who has tried to install Debian alongside Win 7 only to have Debian write over the boot record of Win 7, making it unrecoverable.
How can I avoid this happening? Do I have to somehow create a partition for grub or lilo and install that first before installing Debian? And do I install the swap disk first as well?
Any advice would be greatly appreciated.
 
Old 08-10-2014, 05:02 AM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,646
Blog Entries: 8

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
You will need to choose the manual mode when partitioning and install Debian onto the target partition. The default /, swap, /home scheme is the easiest to use. The boot-loader is the last step of the installation. I have never dual-booted with Windows, so must leave advice in this area to someone else.

Last edited by Randicus Draco Albus; 08-10-2014 at 05:03 AM.
 
Old 08-10-2014, 05:12 AM   #3
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 42.2
Posts: 1,171

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
I'm dual booting Debian with Windows 7. What I do is let the installer install Grub on the MBR (usually /dev/sda or whatever your HDD is named; DO NOT MISTAKE IT WITH /dev/sda1, that's most likely the Windows partition or another system partition).

I agree with using manual partitioning and selecting the free space for Debian. You just have to make sure that your Windows and/or system partition(s) are not marked for formatting (partitions marked for formatting show an 'F' in the Debian installer's partitioning summary).

In regards to the swap partition, I usually put it at the end.

Something else: it's a good idea to use 3 partitions; one for the root file system (/) other for /home and the other for swap. Ths way if you need to reinstall, you will only need to format /, and your user settings and files will remain untouched in /home.

Good luck!
 
Old 08-10-2014, 09:44 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Since you already created free space you also have the option to choose "Guided Install To Largest Contiuous Free Space", which will format the unallocated space on drive leaving evrythin else other than mbr untouched.
 
Old 08-10-2014, 10:03 AM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,454

Rep: Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798Reputation: 1798
I tend to agree with EDDY1. You could create separate root and home partitions but without knowing your drive size I couldn't say whether or not that would be an efficient use of the space as you have to guess how big your root and home partitions are going to be and that can be more difficult than it may at first seem. Then there's the odd occasion where a hidden configuration file in your home partition causes issues with a new install and you end up chasing your tail re-installing thinking you got it wrong before finally working it out (can you tell I've had these issues before?).
Your data should always be backed up anyway to a backup you can verify and recover from easily so loss of data during a reinstallation ought not to be a problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot Debian and Gentoo - need to install Gentoo ZebraIzToronto Gentoo 2 02-08-2011 11:25 AM
NetInst Install problems Winxp Debian Dual boot blackterror Debian 4 10-21-2008 03:25 PM
Debian and Slackware Dual Boot - Which to Install First? swampdog2002 Slackware 8 02-05-2008 06:15 AM
Ubuntu 8.03a3 New Install: GRUB Error 21 after new dual-HDD, dual-boot install tvdxer Ubuntu 1 01-29-2008 01:08 PM
Install dual boot debian on raid1 issue linuxstarved Linux - Enterprise 1 01-12-2007 02:37 AM


All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration