LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-28-2004, 09:38 AM   #1
jwijesundra
Member
 
Registered: Jun 2004
Posts: 52

Rep: Reputation: 15
Avoid overwriting bootloader


Right now I am running with two hard drives, one is being used for linux. I want to install Windows XP on the other, how can I do this without overwriting the bootloader and removing access to Linux, also I want to share files between windows and linux what's a good way to do that?

The following is my grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/hde11
# initrd /initrd-version.img
#boot=/dev/hde
default=2
timeout=1
splashimage=(hd0,4)/grub/splash.xpm.gz
title Fedora Core (2.6.6-1.435.2.3)
root (hd0,4)
kernel /vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ hdg=noprobe vga=788 rhgb quiet
initrd /initrd-2.6.6-1.435.2.3.img
title Fedora Core (2.6.7)
root (hd0,4)
kernel /vmlinuz-2.6.7 ro root=LABEL=/ hdg=noprobe selinux=0 vga=788 rhgb quiet
initrd /initrd-2.6.7.img
title Fedora Core (2.6.6)
root (hd0,4)
kernel /vmlinuz-2.6.6 ro root=LABEL=/ hdg=noprobe selinux=0 vga=788 rhgb quiet
initrd /initrd-2.6.6.img
title Fedora Core (2.6.5-1.358)
root (hd0,4)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ hdg=noprobe vga=788 rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Other
rootnoverify (hd0,0)
chainloader +1
 
Old 07-28-2004, 09:58 AM   #2
Joubert79
Member
 
Registered: Jul 2004
Location: Manchester, UK
Distribution: Gentoo
Posts: 46

Rep: Reputation: 15
The following worked for me.

Plugged up the windows (to be) drive as the primary master. Unplugged the Linux drive completely for peice of mind, cos I don't trust windows more than I'd like to throw it. Installed Windows.

I then whipped the cables back round so that the linux drive was the primary master and windows was on the secondary master. Booted up to linux as usual and configured a grub option to load windows for the next reboot.

For sharing files you might look into creating a separate FAT partition for both to access. I've not done this though.
 
Old 07-28-2004, 10:05 AM   #3
jwijesundra
Member
 
Registered: Jun 2004
Posts: 52

Original Poster
Rep: Reputation: 15
hey thanks for the reply, but I'm kinda incompetent when it comes to hardware. I know how to disconnect the first hard drive, but how do I set the other as master?
 
Old 07-28-2004, 10:06 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
If there's only one hard drive, it's automatically the master..
 
Old 07-30-2004, 04:36 AM   #5
jwijesundra
Member
 
Registered: Jun 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Hey guys, need ur help again. I disconnected the hard drive with Linux and installed Windows and it is working fine. But I don't konw how to configure GRUB to load windows. My grub.conf is give in my initial post. The hard disk containing windows is /dev/hdb and the boot partition is d: according to windows.
 
Old 07-30-2004, 05:16 AM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Having windows on the slave drive involves re-mapping the drives so that windows behaves as though it is on the master instead of the slave drive. Do a search of the Linux - Newbie forum for "grub multi boot system". In your search options, de-select case-sensitive if it's selected (the post title isn't consistent in the use of caps). There is an excellent example of the code you need to add to grub.conf.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Arrays overwriting variables in c george_mercury Programming 4 12-31-2004 06:20 AM
Redhat 9 overwriting /etc/fstab? dmancine Linux - General 2 08-24-2004 05:24 PM
Overwriting Redhat9 With Suse9 happyman Linux - Distributions 2 04-08-2004 11:37 AM
Windows Overwriting MBR Need help.. Nukem Linux - General 2 04-07-2004 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:32 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