LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-16-2003, 04:43 PM   #1
beginner16
Member
 
Registered: Nov 2003
Posts: 33

Rep: Reputation: 15
My first installation(Red Hat) and I almost lost everything-HELP


hi.Im total beginner
I nearly lost all of my data and now I need someone to explain to me
why this happened

On my PC I have 3 partitions and on each there is OS installed.
Now I wanted to add Red Hat linux 9.Here is how I did it:
-First I told Red Hat to automatically partition my drive
-I selected 'Remove all Linux partitions on this System'
-As bootloader I've choosen Grub
Since I already have OSs on my system,Linux Setup should detect them,
but since it only detected partition running Win98(it named it DOS),
I added the other two manually.

-I named Win2k OS located on D partition Win2kD and OS located on E partition Win2kE(In Linux Setup I made this one to boot by default).

-Then I installed linux and rebooted and up comes GRUB and gives me a choice of which OS to start .

I could start Linux,but when I tried to start Win2kE it wrote:

BOOTING Win2kE
BOOTNOVERIFY(H0,5)
CHAINLOADER +1

"and after I pressed enter"

BOOT failure
Insert Boot diskette in A:

Same happened when I tried to run Win2kD.

But when I started DOS(Win98)I was again presented with option as to which OS to load(I think it was
windows bootloader) and then it worked

So can someone explain to me what happened?Why couldn't I start those two OSs?
And why did only pressing DOS enable me to start Win2kE and WinkD?

thank you very much
 
Old 11-16-2003, 04:55 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Ok, yeah. you need to configure grub yourself to load these other operating systems.
boot linux, and post the contents of the file /boot/grub/grub.conf config file, we can go from there.

also, in linux, we reference the drives by there address, not a letter.

hda = primary master
hdb = primary slave
hbc = secondry mater
hdd = secondry slave.

and reference different partitons by numbers, not by letters

hda1 would be the first partiton on primary mater
hda2 would be partiton 2 on primary master, right...

i also need to know what disks and what partitons each NON linux operating system is install to in order to config your grub file.

post as much of what ive asked as you know how to do, and we can go from there.
 
Old 11-16-2003, 05:01 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
found this on google, might help.
http://www.linuxmigration.com/quickref/kernel/grub.html

if not, just post the info like i asked, and some1 should show u what changes to make.
 
Old 11-16-2003, 05:30 PM   #4
beginner16
Member
 
Registered: Nov 2003
Posts: 33

Original Poster
Rep: Reputation: 15
hiya

Well I'm ashamed to say but I didn't remember all the details.
I bought Linux for Windows Administrators book and just followed the author's instructions(thought he used Red Hat 7.3)
I'm only on page 50 and so far author didn't mentioned master or slave names.As far as names go,if I remember correctly Win2kE was reffered to as dev/hda3 and I then named it Win2KE

But there are few things Id like to point out:
-First,though Im not 100 percent shure,I picked LILO as default booter (but I might have been sloppy and picked Grud instead)

-While in setup I've got a warning to make Boot disk cos it might not be able to boot(Im talking about actual warning here)

Can you tell me why when pressing on DOS(Win98),the old(windows?)booter appeared?

Last question-how do I uninstall Linux and still be able to boot other OSs?

Since I don't want to take your time I will try to go to the link you provided and figure it out for myself

thank you
 
Old 11-16-2003, 08:16 PM   #5
mintedice
LQ Newbie
 
Registered: Oct 2003
Distribution: Suse 9.0
Posts: 6

Rep: Reputation: 0
To boot up yr machine in win2K again you need to boot from the win2k CD and select.
1. Select System recovery console
2. Fixmbr <enter>
3. Fixboot <enter>

this will repair the MBR and boot loader to win2K bootloader again. Note : Your linux is still intact as yr other OSes.
 
Old 11-16-2003, 08:31 PM   #6
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
first of all, don't worry, your data isn't gone (the bootloader is probably pointing to the wrong partitions). second, use mintedice's solution only as a last resort (that process will reload the windows bootloader). i have noticed that redhat's detection of other os's is rather sloppy.

ok, so now my suggestion is to edit your grub config on boot. when the system boots, you will see some options below your list of os's. you press a key (not sure which one, but if you read the screen, you can figure it out) and you can edit the boot commands. what you want to change is (hd0,5) under the windows load commands to like (hd0,1) and keep changing those until you get the right partition and windows boots. when you get the right partition, boot linux and edit /etc/grub.conf (you need to be superuser, so type "su" and enter the password, then use "gedit /etc/grub.conf" to edit the file) to match the partition you discovered during messing around with the grub configuration in grub. that will make your bootloader configuration changes permanent. good luck.

Last edited by zero79; 11-16-2003 at 08:39 PM.
 
Old 11-16-2003, 08:45 PM   #7
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
since it seems that you are giving up, you may want to try knoppix (www.knoppix.org) to get somewhat familiar with linux before going for a full on install. knoppix is a live cd distribution which means that the entire os runs off of the cd without installing anything to your hd.

linux does have a high learning curve. but it can be worth the effort. don't give up because of one small issue.
 
Old 11-16-2003, 08:45 PM   #8
beginner16
Member
 
Registered: Nov 2003
Posts: 33

Original Poster
Rep: Reputation: 15
hiya

I But I should mention that I if I press DOS it brings up the windows bootloader and from there I can start any OS.But I still wonder why it can't detect Win2KE and WinkD directly?

Anyways,could this be the reason?...during the installation of Linux I got a warning message:"Boot partition may not meet booting constraints for your arhitecture"

thank you so much for taking the time
 
Old 11-16-2003, 08:53 PM   #9
beginner16
Member
 
Registered: Nov 2003
Posts: 33

Original Poster
Rep: Reputation: 15
oh,I just read your last post.I don't plan on giving up

bye
 
Old 11-16-2003, 09:05 PM   #10
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
good, glad you're not throwing in the towel.

follow my first post and you should be able to directly boot both your windows os's from grub. you will need to create two entries in grub.conf, one for each partiton. it should look like this:

title Windows 2000 D
rootnoverify (hd0,0)
chainloader +1
title Windows 2000 E
rootnoverify (hd1,2)
chainloader +1
title Fedora Core (2.4.22-1.2115.nptl)
root (hd1,0)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hda=ide-scsi rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img

you will have to fiddle around with the (hd#,#) with the method i described in my first post. the first two entries are examples for your windows os loaders and the last entry is the linux loader for my system. what happened with the DOS entry is that it must point to the windows boot loader located on one of your partitions already. redhat just likes to call any windows partition dos. once you have everything set up correctly, you will no longer need the DOS entry.

as for your other question: the install process will always say that. there was a limit with older hard drives where the bootloader could not be placed beyond a certain point and still work correctly. if you have current hardware (built within the last 3 years or so) you should be fine.
 
Old 11-16-2003, 09:30 PM   #11
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
That's because your win98 and two win2000s is only sharing one bootloader, which resides on the first bootable partition(system partition) which in most cases is the win98 partition if you installed it first before installing win2ks, the bootloader does not need to be installed in the boot patition(where your winnt/windows folder is) itself.
In order to directly boot win2k/xp from grub it has to support loading the winNT kernel. Currenty its not supported and I doubt it will any time soon, if ever.

I actually thought of an idea of doing this(booting multiple win2k/xp directly in grub) few days ago, I couldn't get it to work properly but it could be due to the fact that my operating systems sees the disk drive order differently from bios. Its quite simple, I basically use a simplistic kernel that loads a floppy disk image as its initrd, it worked with standard dos/pcdos bootdisks, for some reason its not correctly detecting my drives when I use a win2k/xp bootdisk. If you want to try this method just post a reply, I'll be back checking out the forums again in a few hours.

Last edited by Demonbane; 11-17-2003 at 12:01 AM.
 
Old 11-16-2003, 09:43 PM   #12
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
hmmm, demonbane may be right...i've never tried setting up linux and two separate windows (nt) os's on the same system. the only way to do it may be how you have it set up now where grub loads the windows boot loader which is used to select exactly which version of windows to boot. you may still want to try to use my suggestions to see if you can get it to work anyway. peace.
 
Old 11-19-2003, 08:38 AM   #13
beginner16
Member
 
Registered: Nov 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you all for helping me out
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed Red Hat 9 but Lost Win XP renalmirol Red Hat 16 06-07-2005 10:24 AM
Lost USB support on Red Hat Enterprise VanEs Linux - Newbie 1 10-14-2004 02:04 PM
Lost Login Account on Red Hat 9, How do I get it back? g0d Linux - Newbie 10 02-28-2004 06:37 PM
lost fat partitions during red hat 9.0 install illtbagu Linux - General 3 07-30-2003 11:52 PM
Lost Connectivity DSL Static IP Red Hat 6.2 aimstr8 Linux - Networking 7 05-01-2002 03:09 PM


All times are GMT -5. The time now is 02:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration