LinuxQuestions.org
Visit Jeremy's Blog.
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 12-27-2002, 02:45 AM   #1
raskita
LQ Newbie
 
Registered: Dec 2002
Location: Jack's Place
Posts: 5

Rep: Reputation: 0
Can't boot Windows


Hi guys...I got problem here.

I got Red Hat Linux running on 40GB hard drive and Windows XP Pro on 20 GB hard drive (dual boot). First I got trouble with GRUB loader, the problem was the same problem like this thread. and I've solved the problem by following the instruction which written on that thread (installing GRUB 0.93).
That problem was solved but new problem comes up. I can't boot my windows XP. After I've chosen Windows XP on OS option screen, there was only sudden screen which came up like this:

rootnoverify (hd0,0)
chainloader +1

Grub Loading Stage2....

And then it came back to the OS option screen. Could someone help me, cause I'm still learning on LINUX, thanks.
 
Old 12-27-2002, 04:24 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Could you copy your grub.conf and write which disk is primary and which is secondary? It looks that now "XP option" is loaded from first drive (primary master or hda). Is it what you mean?
 
Old 12-27-2002, 04:27 AM   #3
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
I've facing a similar problem, Linux on the first hd (60 Gigs) and W98 on the 2nd (20 gigs), (W98 doesn't boot).

title Windows98
rootnoverify (hd1,0)
chainloader (hd1)+1

selecting this, the hd1 boot sector says "can't load operating system" and halts.

Before to install RH 8 (and GRUB) the machine was happy with LILO as bootloader, Mandrake 8.1 on the hd0 and W98 on hd1.
 
Old 12-27-2002, 06:38 AM   #4
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
install LILO instead of grub?
 
Old 12-27-2002, 07:53 AM   #5
raskita
LQ Newbie
 
Registered: Dec 2002
Location: Jack's Place
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Could you copy your grub.conf and write which disk is primary and which is secondary? It looks that now "XP option" is loaded from first drive (primary master or hda). Is it what you mean?
Yesss... you are right. My XP is loaded from the primary master or hda, and The Red Hat Linux 8.0 is loaded from the hdb. I'll look for the grub.conf later since i'm still completely newbie on Linux :P
 
Old 12-28-2002, 09:35 AM   #6
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
You'll find it in the /etc directory. You will need to log on as root to open it up. Just copy the contents into your next post.
 
Old 12-28-2002, 12:35 PM   #7
raskita
LQ Newbie
 
Registered: Dec 2002
Location: Jack's Place
Posts: 5

Original Poster
Rep: Reputation: 0
Too late...I just installed the Linux once again, and now I can't get both Linux and Windows loaded. Now I'm planning to reformat my slave hard drive which contains "crap" linux and reinstall the Red Hat Linux again. All I did was unpluged the hard drive (which has Windows in it) from my system and make the Linux hard drive as the primary master. I was going to format the hard drive through DOS by using DOS boot disk. But now the problem is the DOS can't detect the hard drive, so I can't format the hard drive. It always says "Invalid drive specification". Could you gimme the solution so I can reformat my hard drive. Thanks.

Last edited by raskita; 12-28-2002 at 12:38 PM.
 
Old 12-28-2002, 12:53 PM   #8
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
The reason you cannot start anything is because you unplugged a drive during the install and then reinstalled it. Linux thinks it is on the Primary Master drive (hda) and it isn't. Your boot program has no idea what is going on.

How to fix this:

Plug all of your drives back in. Put the Red Hat install disk in and boot from it. Have it install on the Primary Slave (hdb). When install asks if you want to completely reformat the drive, have it do that (I think it is the first option in the Disk Partitioning portion). Put the boot loader in the MBR of the Primary Master (hda). Use either one--LILO or Grub. Most folks here prefer LILO. Red Hat (and me, for that matter) prefer Grub. Both work.

When it asks you to make a boot disk, DO IT. Don't make any excuses for it--find a floppy and do it. There are many instances where the boot loader doesn't work right the first time and needs a little adjusting. You will need that disk if that happens.
 
Old 12-28-2002, 04:27 PM   #9
mainak
LQ Newbie
 
Registered: Nov 2002
Location: India
Posts: 25

Rep: Reputation: 15
rootnoverify (hd0,0)
chainloader +1

This NEVER works on my system ...

At least GRUB 0.93 boots my Linux but not for WinXP..
but LILO doesnt work for both WinXP or Linux... It gives a screen full of "9" or "1" and rubbish stuff like that... or it hangs my system.
 
Old 12-28-2002, 07:51 PM   #10
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Open up /etc/grub.conf (where you got this information from) and add the command "makeactive" between the other two so it looks like this:

rootnoverify (hd0,0)
makeactive
chainloader +1

If this doesn't work, please tell me how far Grub gets before it crashes.
 
Old 12-28-2002, 09:59 PM   #11
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
How did your system get Grub 0.93 on it? RH 8.0 comes with 0.92.

In re-reading this thread, it occurs to me that my thought that you got information from grub.conf may have been assuming too much. This seems to be the information that you get just before Grub takes you back to the menu. The information in that file is pretty important to our efforts here, so let me walk you through how to get it. I'll assume you are familiar with Windows techniques--many of them are the same in Linux.

1. Boot into Linux and log on as root; use the Gnome desktop. Normally this isn't done, but you have to be root to do what we need to do here.

2. From the Start Menu, highlight Accessories and from its submenu, select "Text Editor". This should bring up gedit, a pretty nifty text editor. If it doesn't, from the Start Menu, select Run Program. Enter gedit in the window and hit OK.

3. In gedit, select the Open File icon (similar to Windows based programs) or use the pull-down menus: File, Open.

4. This will bring up the Open File dialogue box. The cursor starts in the file-to-be-opened box. Type: /etc/grub.conf

5. For now, just select all (Crtl-A) and copy it to the clipboard (Ctrl-C).

6. Switch to this forum and paste it in a post.


To make the changes I recomended, let's first try doing them temporarily.

Restart your computer and when you get to the Grub menu, highlight XP and press "e".

This will take you into the edit mode where you can make a change that will only be for this boot. Use the arrow keys and move the cursor to the beginning of the 'chainloader +1' line.

Press 'o' to insert a new line.

Press 'e' to edit the new line, enter "makeactive" and press Return

Press 'b' to boot

If that works, use the gedit again and make the changes permanently.

If it doesn't, get the error number. It looks like you're getting a Stage 2 error, which means that Grub is trying to start XP but cannot get it to boot.
 
Old 12-29-2002, 01:47 AM   #12
gokulagiridaran
Member
 
Registered: Dec 2002
Posts: 36

Rep: Reputation: 15
You would hav changed the master / slave ...settings.
 
Old 12-29-2002, 01:54 AM   #13
mainak
LQ Newbie
 
Registered: Nov 2002
Location: India
Posts: 25

Rep: Reputation: 15
No... I know Redhat comes with GRUB 0.92 but that version of GRUB always gave the "Error : 28 ..." So after hunting many forums I found out that GRUB 0.92 has some problem with some systems..
So I downloaded GRUB 0.93 from a website and Installed. Though this version did not provide a GUI Login screen but it surely helped me boot into Linux....

Now I tried to put WinXP also into GRUB List but .. even after
Code:
rootnoverify (hd0,0)
makeactive
chainloader +1
My system hangs ... and does not proceed further...
 
Old 12-29-2002, 09:10 AM   #14
raskita
LQ Newbie
 
Registered: Dec 2002
Location: Jack's Place
Posts: 5

Original Poster
Rep: Reputation: 0
Ok...I was a bit desperate and Formated all the hard drives (primary and slave). I installed XP on 40GB hard drive (primary) and RH Linux 8 on 20GB hard drive (slave) with GRUB boot loader. It all turned back like the first time I installed Linux. I can't get into Linux. If I choosed Linux on OS option screen this screen came up:

Booting 'Red Hat Linux (2.4.18-14)'

root (hd1,0)
File system type is ext2fs, partition type 0x83
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
[Linux-bzImage, setup=9x1400, size=0x11154a]

Error 28: Selected item cannot fit into memory

Press any key to continue...

If I placed Linux boot disk into the floopy drive, The Linux starts loading but only until the word:

Kernel panic: No init found. Try passing init= option to kernel

Now I'm planning to start all over again (start from formating all the hard drives) and I'm going to put LILO as the boot loader. See if that would work.
 
Old 12-29-2002, 10:34 AM   #15
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Give LILO a try

You're wasting your time reformatting the hard drives. Something went wrong in the Red Hat install and you just need to do that again. When you get to the formatting portion, tell it to format the entire drive and let it determine its own setup on that drive. Your post lists the file system as ext2. This is probably Grub interpretting an ext3 file system as ext2 (ext3 is ext2 with journalling added--a very good improvement). Just to make sure, though, Red Hat will default to ext3--don't change that.

Grub and LILO take two very different approaches to booting. Often times if one isn't working, the other will, so give it a try.

Good job making the boot disk--it is a shame it didn't work. Continue that good habit when you try LILO.

You didn't mention--does XP load?

For both of you, if LILO doesn't work, our next step is walking you through using the NT boot loader (which is, admittedly the most populart way)

Last edited by deadbug; 12-29-2002 at 10:36 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 01:53 PM
How do I dual boot Linux and Windows XP from Windows boot file andyri Linux - Newbie 4 08-04-2004 11:09 PM
Linux/Windows dual boot with Windows re-install dhowell1129 Linux - Newbie 6 04-25-2004 05:21 AM
On Windows and LInux dual boot - why install Windows first? yanar99 Linux - Newbie 13 12-18-2003 10:20 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM

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

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