LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-15-2009, 03:16 PM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
Installing win7 on a second hard disc.


Hi!
I have two sata HDs. One of these has Debian an Winxp installed. Grub is the bootloader. Grub resides in MBR (on the same disk). Now that I've added that second disk, I would like to test win7 on it.

What I would like to do is to be able to choose -at boot time (maybe in bios setup)- between booting from the disk containing win7 or from the disk containing Grub with winxp and Debian.

I thought that when installing win7 it would let me choose the disk where to install it and here is where the problem arises:

Win7 installer detects my partitions and lists them as if they were not on different disks. What would happen if I choose to install win7 on the partition I want to (second disk, partition1)? Will win7 create a new bootloader?

Now I am a little confused and don't want to keep on going not being sure the results are what I expected.

What steps should I follow to install win7 on the second hard disc not affecting the disc with winxp, debian and grub letting me choose between these two Operating Systems?

Thank you!
Glore2002.-
 
Old 08-15-2009, 05:11 PM   #2
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
as a workaround you could install win7, let it install the bootloader, put in the debian installation-disk, choose >advanced>rescue, answer some questions (language, keyboard, etc, it seems as if the installation-process would start), and then choose to reinstall grub. You`d have to edit /boot/grub/menu.lst afterwards, as it will only add the entry for debian. as said: a workaround.
greetings
 
Old 08-15-2009, 05:47 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
How about disconnecting the HDD with winxp, debian and grub while you install W7? I think grub can swap HDD ordering during boot so W7 would "find itself" on the first HDD, as it was when installed.
 
Old 08-16-2009, 12:20 AM   #4
JanVYW
Member
 
Registered: Apr 2007
Posts: 45

Rep: Reputation: 16
I don't think you can do what you want. Windows probably only recognises the other disk as a partition because it is a physically different disk. The problem is that Windows does not recognise anything else. It has to sit in specific early physical tracks on the first partition. GRUB (and LILO) do recognise other systems, so as long as you install Linux after Windows, they recognised that Windows exist and allow you to load it. Windows can't do the same (no, we're not cutting rivals out or just ignoring other systems - it just works out that way, so why change it?). You must have GRUB as your initial boot and you must have Windows on your initial partition thinking it is all there is. Or you write your own pre-loader.
 
Old 08-16-2009, 03:24 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Would grub's map command work? AIUI it can be used to swap HDD ordering in the BIOS so it would work if W7 uses te BIOS to determine the HDD order (as opposed to Linux which ignores the BIOS an enumerates the HDDs directly).
 
Old 08-16-2009, 05:26 AM   #6
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
Quote:
Originally Posted by catkin View Post
How about disconnecting the HDD with winxp, debian and grub while you install W7? I think grub can swap HDD ordering during boot so W7 would "find itself" on the first HDD, as it was when installed.
That's what I always do. I always make sure I disconnect the hard drives I'm not installing the OS onto. If I then want the new OS in grub I can always manually edit it in, that way it ensures there are no MBR woes.
 
Old 08-16-2009, 09:03 AM   #7
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by mushroomboy View Post
That's what I always do. I always make sure I disconnect the hard drives I'm not installing the OS onto. If I then want the new OS in grub I can always manually edit it in, that way it ensures there are no MBR woes.
I think this is what I am going to do to make sure win7 doesn't affect anything else.

After installing it. What should I modify in Grub to let my system boot from win7 too?

I really appreciate your help friends.

Glore2002.-
 
Old 08-16-2009, 12:40 PM   #8
JanVYW
Member
 
Registered: Apr 2007
Posts: 45

Rep: Reputation: 16
GRUB has to be Disk 1 from start-up. If it can be told to then look at both disks for operating systems and not just its own, you're in.
 
Old 08-16-2009, 02:31 PM   #9
milomak
Member
 
Registered: May 2009
Posts: 147

Rep: Reputation: 18
Quote:
Originally Posted by glore2002 View Post
I think this is what I am going to do to make sure win7 doesn't affect anything else.

After installing it. What should I modify in Grub to let my system boot from win7 too?

I really appreciate your help friends.

Glore2002.-
you should be able to copy the same entry as for Windows XP, but obviously chaing the drive/partition references
 
Old 08-16-2009, 03:06 PM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
See GRUB Tutorial - Windows is installed on a non-first hard disk (Swapping). Just in case W7 doesn't use the BIOS for HDD ordering and does need to find itself on the same (first) HDD it was installed on, you could keep you options open by having a small partition on the W7 HDD for GRUB.
 
  


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
Installing packages on a different hard disc? thedp Linux - Newbie 2 04-26-2008 07:37 PM
installing linux in SATA hard disc bijeshep Linux - Hardware 12 04-09-2007 05:58 AM
Installing Linux on second Hard Disc maldini1010 Linux - Hardware 11 03-14-2005 02:03 PM
Locating Disc 2,3,4,5 later after installing 1 Redhat disc lava Linux - General 1 03-22-2003 01:13 AM
Trouble installing to hard disc martismo Linux - Newbie 5 10-02-2002 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:13 AM.

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