LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [B]A unusual grub problem[/B] (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bb%5Da-unusual-grub-problem%5B-b%5D-492540/)

snowball0916 10-15-2006 04:24 AM

[B]A unusual grub problem[/B]
 
Hello,all.
These day ,Imet a problem.
One day,when I start my PC,I found it enter into a grub command line.Then I used the fdisk /mbr in dos to unintall grub.And then reinstall the Fc5 x86_64.After a few use ,I met the same problem. I did use the FC-5-x86_64-rescuecd.iso.And I found that /boot/grub/menu.lst was blank.
I have try some methods but it did't help.

caffeinebot 10-15-2006 10:50 AM

Firstly, I donīt know if fedora creates a whole new boot partition and installs the kernel there, and mounts the directory or if it just instals the kernel in /boot directory (anyone else know the answer to this?)

Regardless if you used the rescue disc, are you sure that you didnīt look in the rescue disks grub/menu.lst file?
When you boot into the rescue disc Show me the output of:
$mount
-
I find it surprising that something is writing over your menu.lst because.. that shouldnīt happen.

snowball0916 10-16-2006 03:01 AM

Hi,caffeinebot
I recorded the imformation,I hope you can help me:
sh-3.1#mount
/proc on/proc type proc(rw)
/dev on/dev type tmpfs(rw)
/dev/pts on/dev/pts type devpts(rw)
/sys on/sys type sysfs(rw)
none on /tmp type ramfs(rw)
none on /tmp type/ramfs type ramfs(rw)
/proc/bus/usb on/proc/bus/usb type usbfs(rw)
/tmp/loop0 on/mnt/runtime type squashfs(ro)
/selinux on/selinux type selinuxfs(rw)
/dev/sda9 on/mnt/sysimage type ext3(rw,data=ordered)
/tmp/proc on/mnt/sysimage/proc type proc(rw)
/tmp/sys on /mnt/sysimage/sys type sysfs(rw)
/dev on /mnt/sysimage/dev type tmpfs(rw)
/selinux on/mnt/sysimage/selinux type selinuxfs(rw)

sh-3.1#vi /boot/grub/menu.lst



That's the imformation,can you tell me what to do?
Thank you,
snowball0916

snowball0916 10-16-2006 11:02 PM

I will wait you answer.

caffeinebot 10-17-2006 01:19 AM

Are you dual booting?

snowball0916 10-17-2006 03:58 AM

What's the dual booting means?

caffeinebot 10-17-2006 07:47 AM

Are you running another operating system alongside grub?
Regardless, try:
Booting from the FC5 disc
Entering the linux resuce mode F(5)
At the prompt: type chroot /mnt/sysimage
At the prompt that follows type grub-install --recheck
Then restart and see if your grub configuration has been fixed.

snowball0916 10-17-2006 10:09 AM

When I typed the first command,it appeard imformations like this:
boot:chroot/mnt/sysimage
Could not find kernel image:chroot/mnt/sysimage

caffeinebot 10-17-2006 10:38 AM

Sorry, I should clarify further:
Boot from the FC5 disc
Enter the linux resuce mode F(5)
At the first prompt where it asks you for a particular type of kernel, just use the default by pressing enter.
Now try:
At the system (not boot) prompt: type chroot /mnt/sysimage
At the system prompt that follows type grub-install --recheck
Then restart and see if your grub configuration has been fix

snowball0916 10-17-2006 11:42 PM

Bad news!
I tried it ,but my grub configuration still hasn't been fixed.
So caffeinebot ,what I gona do?

snowball0916 10-19-2006 05:19 AM

It really drive me crazy!

caffeinebot 10-19-2006 08:07 AM

Are you running another operating system beside linux?

snowball0916 10-19-2006 08:31 AM

Yes,Windows XP.

snowball0916 10-20-2006 12:30 PM

Is that any problem?

snowball0916 10-22-2006 04:14 AM

I find many grub passage but that didn't help me a lot.
where are you caffeinebot?


All times are GMT -5. The time now is 07:38 AM.