LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-12-2004, 01:13 PM   #1
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
GRUB boots after wondows loader...?


I've tried using linux rescue to get into GRUB and I received a message saying "access denied". I'm installing dual operating systems on my computer, W2k & Fedora Core, on separate hard drives. Any advice? Thanks in advance.

Last edited by fedora_os; 09-12-2004 at 08:39 PM.
 
Old 09-12-2004, 01:29 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
could u post the procedure u were following and at what point did u get what type of error msgs

regards
 
Old 09-12-2004, 02:20 PM   #3
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I'm new to linux, so I need all the help I can get. Ok, I was able to get into grub by typing "grub" after getting into linux rescue. I haven't been able to figure out what to do next...
 
Old 09-12-2004, 02:48 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Ok, sounds like something happened to your comp and you need to fix something.

1. typing linux rescue from cd #1 will try to mount your / onto a partition so that you can do maintenance. I don't know exactly which part you are stuck on but it should be self-explanatory from the help screens. So, perhaps you may need to explain more on this part. Like what do you see? Do you see a prompt of any sort? Is the screen black? Can you type? Any message on the screen that you are stuck on?

2. Another attempt to fix your comp without linux rescue is to go to single user mode (init 1). Ok, so you reboot your machine and GRUB shows you which kernel it's going to load within its 10 second delay. Immediately press 'e' and then pick the one that shows "kernel" and type 'e' again. Now you are shown the kernel line, go to the very end, add a space, and append the word "single" (without quotes). Now press 'b' and it will boot to single user mode.

Let us know if you need more help. Good luck!

-twantrd
 
Old 09-12-2004, 03:32 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Fedora rescue will mount your / under /mnt/sysimage. If for some reason your Grub got wiped you could try to reinstall it. To do so you first need to change root to the system root (not the one you use throught the rescue CD) You can do that by typing "chroot /mnt/sysimage". Provided you haven't got a seperate /boot partition you should now be able to invoke 'grub-install' (if not you may need to mount the /boot partition first). In order to install Grub to the MBR you should add the parameter '/dev/hda' (check the man pages if in doubt).
 
Old 09-12-2004, 04:10 PM   #6
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the responses everyone. I apologize for being so vague. I'll try to be more specific.

Here's where I'm at...

Grub is fine & seems to be working properly. I went throught these steps (I think I found them on this web site):

"From here you can try to find out which drive grub thinks is first and which is second in the boot order. Try typing "kernel (hd" and then pressing tab:

grub> kernel (hd<tab>

You should see the possible completions that grub can find. Drive 0 (hd0) could be either C: or L: (in FC1, hda or hdb) depending on your partitions. If you post your partition layouts for both physical drives and which cables and IDE channels they are connected to, it would help us. The output should look something like this:

grub> kernel (hd
Possible disks are: hd0 hd1

grub> kernel (hd

So now add a character (0, 1, 2, whatever you want to try). Here is what I see:

grub> kernel (hd
Possible disks are: hd0 hd1

grub> kernel (hd0,<tab>
Possible partitions are:
Partition num: 0, Filesystem type vfat, partition type 0x0a
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type unknown, partition type 0x83

grub> kernel (hd0,0)/<tab>
foo sandbox junk.txt

Using this method, you can explore your drives using grub and see where files live and which drives contain the data you want.

The problem we are looking for is this, what looks like (hd0) in grub at boot time, might look like (hd1) in grub when the system is up and running (i.e. start grub and do the same thing from within Linux and see if the drives have been reordered). This would account for the problem you see where installing grub to the MBR is actually installing it elsewhere.

Now that you can find your Linux partitions using grub, let's try to boot your FC1 Linux installation.

Use the command 'configfile' and the tab completion to try and locate the grub.conf or menu.lst file. It should be in the 'boot' directory on your root Linux partition, or on it's own partition if you created a separate partition for boot.

grub> configfile (hd1,0)/grub/menu.lst

Press an arrow key before the timeout expires so we can examine the entries.

Highlight your FC1 entry and type 'e'. This will allow you to edit the entry and view the hard drive that it is trying to boot from. You should see some entries like this (after pressing 'e' once).

root (hd0,9)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 hdd=ide-scsi
initrd /boot/initrd-2.4.22-1.2115.nptl.img

In this example, the root drive is (hd0). If this doesn't match where you found the menu.lst file, then you will want to change it. You can use tab completion to help find the vmlinuz-2.4.22-1.2115.nptl file, your kernel, and make sure that root is set to be the drive where the kernel is found. For example, if you find the menu.lst on (hd1,0) and the kernel there too, set root to (hd1,0).

Press 'e' while 'root (hd0,9)' is highlighted and edit it to read 'root (hd1,0)'. Then press enter and you'll see all the entries again. Then, since the root is now properly set, you should be able to press 'b' to boot.

Your Linux installation should now boot."

Is anyone familiar with these steps? The problem seems to be the "menu.list". It did not show up when I entered "grub> configfile (hd1,0)/grub/menu.1st" command (it responded with "file not found"). Might this be due to faulty installation or am I looking in the wrong place? From reading these directions, it should be in the same place as the kernel vmlinuz file. If it is in a different place, is there a way to find it?

Last edited by fedora_os; 09-12-2004 at 04:35 PM.
 
Old 09-12-2004, 04:58 PM   #7
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
One more thing...

I didn't install grub on the MBR, I read in more than one place you shouldn't do that because it can't load win2k.
 
Old 09-12-2004, 07:35 PM   #8
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Okay, I found the "menu.lst" file & it seems to be setup correctly. From what I understand, I now must copy "linux.bin" onto a floppy, then boot into windows & copy it onto C:\

Then I edit C:\boot.ini

Do I need to edit anything in the grub.config file? How do I go about that?
 
Old 09-12-2004, 10:10 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

grub can be installed on MBR and it loads win2k, i have nben doing the same
also the loadlin file u r talking about
u need to use one bootloader
either grub
to boot linux+windows using grub

or loadlin --boot windows +linux using windows bootloader

to edit the grub.conf

vi /etc/grub.conf
will openup the grub.conf configuration in ur vi editor in linux

regards
 
Old 09-12-2004, 10:38 PM   #10
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
what's the vi editor?
 
Old 09-12-2004, 11:23 PM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
vi editor is a simple editor
i meant to say that u ned to open up ur /etc/grub.conf in any editor
vi editor is one of them

regards
 
Old 09-12-2004, 11:58 PM   #12
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Yes, it worked, thanks. Now how do I save the edits to the grub.config file?
 
Old 09-13-2004, 12:00 AM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

using the vi editor u need to use

press
ESC,
then
:wq

will write the changes and exit from that grub.conf file


regards
 
Old 09-13-2004, 12:23 AM   #14
fedora_os
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, now do I copy the linux.bin file to a floppy, then save it to my windows c drive? How do I go about that?

Thanks for your help.
 
Old 09-13-2004, 12:55 AM   #15
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hey

thats waht i told u earlier
u do not ned to go for loadlin
either go for loadlin or grub

regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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