LinuxQuestions.org
Help answer threads with 0 replies.
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 06-15-2003, 02:16 AM   #1
cyberzen
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Rep: Reputation: 0
Installing linux on 2nd Harddisk


Here's my dilemma, I got 3 harddisks, the first harddisk is running windows xp, the 2nd one is for my data, and the third 1 is blank. I been trying to install redhat 9 linux on the 3rd harddisk without success.

I do not want grub to take over windows xp bootloader, so what I did was to create install grub into the root section and not in the MRB.

Now when I edit my BIOS to boot from the 3rd HD, I just get a grub word and nothing else, it doesn't seem to load linux. I then have to press alt del to reboot. I did not elect to create a boot disk as my floppy is toasted. Can anyone offer some suggestions?
 
Old 06-15-2003, 11:59 AM   #2
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
Your problem may be your BIOS. In some bioses, the "boot from harddrive X" really means "Rearrange all my drives so the drive I want to boot from looks like the first drive" Which will naturally break grub, since grub was configured to look on the third drive for linux, but its now the first drive.

In your case, I suggest you try http://www.winimage.com/bootpart.htm

This will let you add a "Linux" entry to NTLDR's options, to make it boot grub on the third drive. Then you won't even have to mess with the BIOS to decide how you want to boot.

Additionally, your RH cdrom (I assume you used a cdrom since your floppy is toasted) doubles as a rescue disc. Just boot from it, and at the very beginning you should be given a rescue option.
 
Old 06-15-2003, 01:03 PM   #3
cyberzen
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I looked at the boot part url, and it said that i should have :

"The only thing I highly suggest is : your active partition on your first hard disk must be a FAT16 primary partition. This may be a small partition"

but my primary harddisk is NTFS, so will boot part mess up my windows boot loader?
 
Old 06-15-2003, 01:06 PM   #4
cyberzen
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Also another thing is that when i boot up the linux rescue mode, i cant seem to locate my GRUB.conf file. Is that due to a limitation in rescue mode?
 
Old 06-15-2003, 01:14 PM   #5
cyberzen
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
What I had originally tried to do was make a FAT32 partition on my first harddisk, and boot linux in rescue mode and try to write the linux.bin file to the FAT32 partition,, and then copy that file to windows and have the windows bootloader boot the file.

However as I am a total newb to linux, I did not know how to mount the fat32 partition.
 
Old 06-15-2003, 01:26 PM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
i believe you need to create a linux bootsector to put in your root windows directory, then point to it in c:\boot.ini file. (edit: that's how i am doing it with win2k, and it is working fine.)

these instructions shows how to do it with LILO, but they could probably be modified easily for grub.

How to dual-boot Windows NT/2000/XP and Linux using NTLDR
http://jaeger.morpheus.net/linux/ntldr.php

Last edited by synaptical; 06-15-2003 at 01:31 PM.
 
Old 06-15-2003, 01:30 PM   #7
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Each harddisk has a MBR, so overwritting the MBR on Hard Disk 1 is want you want to avoid. Try disconnecting Hard disks 1 and 2, and then install RH 9 and install grub to the MBR.
 
Old 06-15-2003, 01:45 PM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Quote:
Originally posted by Bigun
Each harddisk has a MBR, so overwritting the MBR on Hard Disk 1 is want you want to avoid. Try disconnecting Hard disks 1 and 2, and then install RH 9 and install grub to the MBR.
you definitely want to avoid overwriting the MBR on hd1, but you don't need to disconnect the hard disks to do that. ime that can cause a lot of problems of its own. just install grub to the boot partition of your linux disk ( go through install again, or grub-install /dev/hdxx where hdxx is your boot linux partition), then dd the info to a linux.bin file ( dd if=/dev/hdxx of=linux.bin bs=512 count=1 ).

copy that linux.bin file you just made to your root windows directory, then change the windows boot.ini file by adding the appropriate line to the end, e.g., c:\linux.bin="My Linux OS"

done!
 
Old 06-15-2003, 02:02 PM   #9
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Either would work, I only suggested my way as a bar of saftey to make sure the MBR on disk 1 isn't overwritten. Which ever way is more comfortable to you.
 
Old 06-15-2003, 03:25 PM   #10
cyberzen
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I still need to know how to mount the FAT32 partition so that I can transfer than .bin file to windows, got no floppy
 
Old 06-15-2003, 03:31 PM   #11
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Quote:
Originally posted by cyberzen
I still need to know how to mount the FAT32 partition so that I can transfer than .bin file to windows, got no floppy
where do you stand now? i.e., what can you boot into?
 
Old 06-15-2003, 05:12 PM   #12
cyberzen
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Thx for all the help guys, I was finally able to mount my FAT32 partition after finding out where it was using fdisk -l after that I just mounted my fat32 hd then copied the linux.bin to that partition and then copied that linux.bin to my c: and then edited boot.ini. all seems to be working fine now
 
  


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
fstab mounting 2nd harddisk dannyk1 Linux - General 3 11-24-2005 01:15 AM
installing redhat linux 9.0 and windows xp on SATA harddisk radha_it Linux - General 1 01-02-2005 07:36 AM
install fedora core 2 on 2nd harddisk arthurf Linux - Software 1 07-18-2004 10:37 AM
Partioning laptop harddisk for installing linux bapata Linux - Software 2 06-19-2002 01:48 PM
installing SuSe Linux on 2nd (windows 98) HDD camtheoz Linux - General 1 05-16-2002 03:58 PM

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

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