LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 03-25-2007, 09:49 AM   #1
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Rep: Reputation: 30
How to install Windows in a separate Hard Disk?


I have OpenSuse 10.2 installed in my Hard Disk. I have another Hard Disk which I managed to connect as slave. Now how do I install Windows in that Hard Disk without disturbing anything in the disk where OpenSuse is installed? Is it possible that I will get a Grub option of Windows or Linux while booting where if I choose OpenSuse it will load Suse from hard disk 1 else boot from hard disk 2.

Please suggest steps to enable me setup. Thank you.
 
Old 03-25-2007, 10:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
yep totally possible, and my preferred way of doing things. remove the suse drive, and put the other drive in as master. go install windows and get it working. then put the drives back as you want. then you just need to edit your grub.conf to use the map-drive commands which are used to lie to windows that it is actually still the master drive, which it insists on being. just google for "grub map-drive" and i'm sure you'll find what you want. it's extra configs, but as you're probably aware of, it means that windows has absolutely nothign to do with the linux installation whatsoever, so can't break it.
 
Old 03-25-2007, 10:47 AM   #3
Benanzo
Member
 
Registered: Sep 2005
Location: Seattle
Distribution: Ubuntu, Debian flavors
Posts: 119

Rep: Reputation: 15
I just want to add that I've done this in the past and it is important to unplug the drive with Linux installed because the Windows installer is pretty dumb and I've had numerous problems with trying to get it to install to the correct drive and not mess with my Linux install. I believe it is possible, but not worth the effort. Just save yourself the headache by unplugging the drive, hook the Windows drive to the master channel and be sure to set the jumper. Then install Windows normally. Then hook your Suse drive back up as master and boot into it. Then run the grub stuff so that Grub sees your Windows install and you're set.

Good Luck.
 
Old 03-25-2007, 12:36 PM   #4
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Many many thanks for the suggestions. I will do accordingly. Yes I have to unplug the Suse one because I have already burned my fingers once when trying to install Windows in a partition while having Suse in the other.

Once I have installed Windows then I think I will again have to make the Suse drive as the Primary. Do I need to change the jumper setting again for that, if yes what should be the change? Lastly can you please suggest me any link for "grub map-drive", as I am not too confident in making any changes in the grub conf.

Thanks again. I will report back when I have done it.

Last edited by arindom; 03-25-2007 at 12:44 PM.
 
Old 03-25-2007, 01:05 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
well yes you need to swap masters and slaves for the xp install, so that's jumper terriorty. and literally ANY link on that first page of google results is good enough. the lq one is, of course, the best in our opinion.
 
Old 03-27-2007, 03:53 AM   #6
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
I have been able to load Windows in the other disk. Before loading I ensured the Suse disk is physically disconnected. But then I faced problem. When I reconnected the Suse disk then still Windows is getting loaded. Do I need to change any jumper setting.

For your information let me describe the current jumper settings.

a) The DVD-drive : White jumper in the middle position (123-it's in position 2)
b) Suse Disk : Black jumper at the side position after which the cable connector is starting)
c) Windows Disk : No jumper

Presently I have kept my windows Disk disconnected. Please suggest.
 
Old 03-27-2007, 04:25 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
jumper settings are not standard, totally down to the drive, and there should be a diagram on each drive as to what the settings are. make sure linux is the master, and windows is the slave, don't use cable select.
 
Old 03-27-2007, 07:54 AM   #8
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Being a basic user I do not have much understanding in jumper settings or "cable select". Can you please guide me a little more into the settings. I have both the Hard Disks connected through the same cable. Now what should I do next?

Thanks again for your guidance.
 
Old 03-29-2007, 02:33 AM   #9
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
It seems I am very near to the solution. I need some more help from you.

Choosing Windows from grub menu is taking me to a blank screen where I can only see a square floating box with "?HZ" mentioned in it. Is it something with "out of range" screen settings? I am getting stuck at this place. I have to manually reboot by pressing the reboot button. Then set the date and time again, don't know why and then I can get the grub menu again. This everytime I choose Windows.

There is although no problem in loading to OpenSuse 10.2. I can access my Windows Disk from Suse as well.

So please help me to get over this problem.

For your information here is my /boot/grub/menu.lst file
-----------------------
default 1
timeout 8
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
rootnoverify (hd0,0)
chainloader (fd0)+1

title Kernel-2.6.18.8-0.1-default
root (hd0,1)
kernel /boot/vmlinuz-2.6.18.8-0.1-default root=/dev/hda2 vga=0x317 resume=/dev/hda1 splash=silent showopts
initrd /boot/initrd-2.6.18.8-0.1-default

title Windows XP
rootnoverify (hd1,0)
chainloader +1 (hd1,0)
---------------------------

My /boot/grub/device.map
---------------------------
(hd1) /dev/hdb
(fd0) /dev/fd0
(hd2) /dev/sda
(hd0) /dev/hda1
---------------------------

Please suggest me about further action. Thank you.
 
Old 03-29-2007, 03:32 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
right so it's in the windows section there that you need to map hd0 to hd1 and vice versa.
 
Old 03-29-2007, 06:41 AM   #11
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
DONE

I had to make the following changes in the menu.lst file.

---------------------
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
----------------------

And it's working!!!

I started in the morning by connecting the HD and now it's done.

I want to thank everyone for the support I have received from you especially Chris (acid_kewpie) for your suggestions. I am very happy that finally it's done.

Thanks again for your support.

Last edited by arindom; 03-29-2007 at 06:43 AM.
 
Old 03-29-2007, 06:58 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
cool, well you seemed aware of the benefits in the layout you wanted, and so hopefully the slight cmoplication of the grub config is worth it. this way windows can screw up your boot sectors or anything.
 
Old 03-29-2007, 07:35 AM   #13
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie
cool, well you seemed aware of the benefits in the layout you wanted, and so hopefully the slight cmoplication of the grub config is worth it. this way windows can screw up your boot sectors or anything.

Thanks Chris. But I failed to understand how can windows screw up the boot sectors or you meant windows can't screw up.

Regarding being aware actually I took help from few links about map command. If permitted I can share the link here also.
 
Old 03-29-2007, 08:27 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
yeah, that's not a good typo....read "can't" and yeah show away.
 
Old 03-29-2007, 09:02 AM   #15
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks Chris. It's alright. I understood it.

The link which also helped me regarding map command is here.
 
  


Reply

Tags
disk, hard


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfering hard drive w/ linux from separate computer to dual boot with Windows comp SonicGT Linux - Newbie 1 03-18-2006 02:56 PM
how to install SuSe Linux 9.0 and Windows XP pro in same Hard Disk navin_bvr Linux - General 2 01-18-2006 02:50 PM
Install Linux on Windows and Partition Hard Disk sgaum Linux - Laptop and Netbook 1 03-02-2005 10:59 PM
Install Red Hat linux on separate disk Micik Linux - Newbie 4 12-06-2004 09:58 AM
Copying a windows or linux install to a new hard disk using linux.... some_cs_student Linux - Software 7 05-24-2004 07:17 PM


All times are GMT -5. The time now is 09:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration