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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-16-2003, 03:27 AM
|
#1
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Rep:
|
Help with Grub in MBR and /boot partition!
Hi guys. Well, I got my self into a problem. and I need some one to help me sort it out.
I'll tell you guys exactly what I did....and I know it's going to sound stupid, so don't ask me why I did it, hehe.
Anyway, here it is:
I had redhat 7.2 on this machine. So I brought my RH 9.0 cd's from that laptop, and I inteded to upgrade Redhat. So, I booted the intall CD's, and clicked on upgrade, blah, blah. Then I selected the packages, and I also selected to get the bootloader, grub, updated, etc.... Then, right before it began copying and upgrading the system, I got an error on Screen
It said that my /boot partition did not have enough space, only 3 megs left.
So, I got a little puzzled, and I thought...well why the heck are you telling me this, if I want you to upgrade my linux installation and not the /boot partition. And the partition in which all my files are in is just /
So, I went into windows, and used PartitionMagic to erase /boot
After I did that, I again rebooted with the RH 9.0 cd's. Installation went smooth!
then, I reboot, and my Grub loaded is gone!....crap I thought to myself, I shouldn't have erased the /boot partition.
Anyway, I remember about the option if I wanted to upgrade or make a new bootloader.
So, I went again to the CD's, and rebooted with the installation disc. So, I clicked again on upgrade. And then this time I selected to install a New Grub in my computer. However, it seems that originally I had Grub install in the first partition of my drive. And this time I went to install it, I installed it in the Master Boot Record.
So, the problem that I am getting, is that now, when I boot my computer I get 1 grub and a certain configuration.
But when I go to /etc/grub.conf
the input in there is completely different from that of the new grub in the MBR
So, my question is, where is this MBR grub??, how can I edit it?, and where should I put my
vmlinuz files, once I upgrade my kenerl?, because if I update the grub that I find in the /etc folder, nothing happens to the grub in the MBR. And I'm not sure what to do now!
I would appreciate for some help, thank you guys!!!
zLinuxz 
|
|
|
|
11-16-2003, 06:57 AM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
/boot/grub/grub.conf
|
|
|
|
11-16-2003, 11:07 AM
|
#3
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
yes, I did try that one too. And that still is a different GRUB than the grub that I'm booting from when I start up my computer!, what to do!
|
|
|
|
11-16-2003, 07:03 PM
|
#4
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
can anyone else help pleazzz? I really need to get this working properly.  Thanks
|
|
|
|
11-17-2003, 09:58 AM
|
#5
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
any other ideas guys?, I would appreciate it
|
|
|
|
11-17-2003, 10:04 AM
|
#6
|
|
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Rep:
|
Mine is in /boot/grub/menu.1st. I'm not sure but yours may be too.
Hope that helps.
I know it's weird but I didn't make the darn thing, I just kept diggin till I found it.
Later

|
|
|
|
11-17-2003, 10:13 AM
|
#7
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
do you just Edit that with a text editor?
|
|
|
|
11-17-2003, 10:20 AM
|
#8
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
I just check it, and it gives me the same output as the OLD grub.
And what I cannot find is the NEW grub configuration, nor can I find where the hell did Redhat 9, installed the 2.4.20-6smp kernel!!!
There is nothing in /boot in regard to this, that is why I'm so puzzled!!, ERRRR.
I hope someone can help more, 
|
|
|
|
11-17-2003, 10:22 AM
|
#9
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
Also, guys
I noticed that in the OLD grub, it said that /root was in (hd1,0)
And in the new grub, that now I have to use to boot, it says that /root is in (hd1, 5)
What is the 5?????, I suspect that it is in there were the grub configuration, and the kernel, has been placed. But how to get there??
Please help, 
|
|
|
|
11-17-2003, 10:28 AM
|
#10
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
Oh, and there is something interesting that I must share with you guys. While looking in the /etc folder, I found the file lilo.conf.anaconda
Which oddly has the CORRECT configuration of the current grub I'm booting. Here is the output:
prompt
timeout=50
default=linux
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
restricted
message=/boot/message
lba32
image=/boot/vmlinuz-2.4.20-6bigmem
label=linux
initrd=/boot/initrd-2.4.20-6bigmem.img
read-only
append="root=LABEL=/"
image=/boot/vmlinuz-2.4.20-6smp
label=linux-smp
initrd=/boot/initrd-2.4.20-6smp.img
read-only
append="root=LABEL=/"
image=/boot/vmlinuz-2.4.20-6
label=linux-up
initrd=/boot/initrd-2.4.20-6.img
read-only
append="root=LABEL=/"
other=/dev/sda1
optional
label=DOS
I wonder that the heck this means?, considering I don't have lilo installed.
What to do guys?
I also remind you guys, that NONE of these kernels appear in the /boot folder!!, that is why I'm going crazy with this!!, where is the grub and the kernels I am booting from??
Last edited by zLinuxz; 11-17-2003 at 10:30 AM.
|
|
|
|
11-17-2003, 11:10 AM
|
#11
|
|
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Rep:
|
When I install Mandrake, lilo is installed then I chose to change it to Grub. That may be what Redhat has done. It won't erase those lilo files, it just adds the Grub files.
That make any sense.
I'm not sure, but I think when you erased, what ever, the /boot partition you also deleted the kernel. It won't boot without that. You may have to reinstall to get that back or compile another one and say a prayer during the boot.
Windoze has command.com and such and that is pretty similiar to the Linux kernel. Delete that and it is dead.
Somebody correct me if I am wrong here.
Later

|
|
|
|
11-17-2003, 11:42 AM
|
#12
|
|
Senior Member
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216
Original Poster
Rep:
|
yes. But see, I am still able to boot. And I'm botting this kernel which the new Redhat upgrae installed, 2.4.20-6smp
And that is what I'm looking for. Because where ever is it that that is, I will also find the correct Grub, I believe and hope.
And I can't seem to be able to find it, So I'm very puzzleddddd
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|