LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
Member
 
Registered: Jan 2010
Location: Melbourne, Australia
Distribution: MX 18.3
Posts: 32

Rep: Reputation: 2
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: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
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,841

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: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:59 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
Open Source Consulting | Domain Registration