how to fix grub problem?
hi guys,
i just wanna ask how to fix my grub problem? my problem is, when i start my computer and boot to grub i cant see the grub menu and only grub show me the grub command promt. like this: Quote:
i enter the following command: Quote:
thank you all |
There is a file called "/boot/grub/menu.lst". This is the file grub reads to give you a boot menu. If the file exists, with entries in it:
root hd(0,0) kernel <path to kernel i.e. /boot/kernel-2.6.8> initrd <path to initrd i.e. /boot/initrd-2.6.8> If grub can't read /boot/grub/menu.lst there is a problem. You can edit the boot parameters in the grub command prompt by typing them at the prompt. When you have typed them all in(hit enter in between boot parameters), hit "b" and it should boot. If you don't know exactly what to put in the boot parameters, type "root" and hit tab. All the grub partitions that are bootable will show up. You pick the one you want. Then type "kernel", tab and the list of kernels will show up. Pick the one you want to boot with. Then do initrd. When you are done, hit "b". |
thank for your help but when im using the root
root hd(0,0) Error 11: Unrecognize device string. and when im using the kernel and initrd kernel + tab Error 1: Filename must be either an absolute pathname or blocklist kernel /boot/kernel-2.6.8 + tab Error 12: invalid Device requested initrd with the same error. |
i cant find also the /boot/grub/menu.lst
but when i try to find: find /boot/grub/stage1 /boot/grub/stage1 please help me this is my 4 days trying to recover my files and run my computer. thank you, a little help for me and a big thank for you. |
Quote:
it is: root (hd0,0) then the other commands can also work and: kernel (hd0,0)/TAB --> will list what is there (note the slash - you need to write path names...you can omit (hd0,0) but do not omit the slash.) |
sorry guys didnt work. i think a have a problem.
if im trying to use the command: root (hd0,0) Filesystem type is ext2fs, partition type 0x83 about the kernel kernel (hd0,0)/tab will be automatic change to kernel (hd0,0)/lost+found i think i deleted all the boot files. there is nothing on this partition. can i remove and create again my first partition? and install grub? if i try to use the rescue command: fdisk -l /dev/hda1 * 1 13 104391 83 linux /dev/hda2 14 9729 78843990 8e Linux LVM look guys i think i have my boot partition. and if i try to find my grub settings find /boot/grub/stage1 /boot/grub/stage1 how come its ok but when i need to boot in my fedora core it loads only the grub command promt. thank you guys for helping me here. |
could you give the output of these commands, when you are in rescue mode?
Code:
mount I'm not familiar with LVM and how it works - but I think you had the /boot (dev/hda1 ?) partition not mounted, when you installed grub - thats why it is empty. |
Quote:
The comment about BIOS drive makes me wonder if you have a BIOS setting problem. You might want to check that your IDE mode is set (in your BIOS) to "compatable" rather than "enhanced," since Fedora sometimes has problems with "enhanced" mode. When you get the grub> prompt, you could try to do the install by hand: Code:
|
chroot /mnt/sysimage
mount /dev/VolGroup/LogVol00 in / type ext3 (rw,defaults) /dev/proc on /proc type proc (rw,defaults) /dev/sys in /sys type sysfs (rw,defaults) ls - /boot drwxr-xr-x 3 root root 4096 Mar 7 16:42 boot drwxr-xr-x 3 root root 4096 Mar 10 02:16 grub chroot /mnt/sysimage mount /dev/VolGroup/LogVol00 in / type ext3 (rw,defaults) /dev/proc on /proc type proc (rw,defaults) /dev/sys in /sys type sysfs (rw,defaults) ls - /boot drwxr-xr-x 3 root root 4096 Mar 7 16:42 boot drwxr-xr-x 3 root root 4096 Mar 10 02:16 grub ls -l /boot/grub drwxr-xr-x 3 root root 4096 Mar 9 06:03 boot drwxr-xr-x 1 root root 30 Mar 10 02:17 device.map drwxr-xr-x 1 root root 7476 Mar 10 02:16 e2fs_stage1_5 drwxr-xr-x 1 root root 7300 Mar 10 02:16 fat_stage1_5 drwxr-xr-x 1 root root 6612 Mar 10 02:16 ffs_stage1_5 drwxr-xr-x 1 root root 6612 Mar 10 02:16 iso9660_stage1_5 drwxr-xr-x 1 root root 8096 Mar 10 02:16 jfs_stage1-5 drwxr-xr-x 1 root root 6772 Mar 10 02:16 minix_stage1_5 drwxr-xr-x 1 root root 8980 Mar 10 02:16 reiserfs_stage1_5 drwxr-xr-x 1 root root 512 Mar 10 02:16 stage1 drwxr-xr-x 1 root root 101704 Mar 10 02:16 stage2 drwxr-xr-x 1 root root 6952 Mar 10 02:16 ufs2_stage1_5 drwxr-xr-x 1 root root 6228 Mar 10 02:16 vstafs_stage1_5 drwxr-xr-x 1 root root 8764 Mar 10 02:16 xfs_stage1_5 Quote:
sbin dev home lost+found misc net proc sbin srv tmp var boot etc live media mnt opt root selinux sys usr Quote:
root (hd0) Filesystem type unknown, using whole disk setup (hd0,0) Error 17: Cannot mount selected partition. thats it. |
Try to create a GRUB boot floppy, and see if you can boot your system from it:
1) Boot the rescue CD 2) Place a blank floppy in your floppy drive 3) If the floppy was mounted, unmount it. (e.g., umount /media/floppy.) Code:
# mke2fs /dev/fd0 |
ok w8 i will search for a floppy drive..
you have an other options? |
Hopefully, you ment a floppy disk, not drive! :)
The point is to see if the problem is in the HDs boot sector. If you can boot from a floppy, then I'd suggest looking at your BIOS "virus protection" settings, which may be interfering with GRUB changing the information in the boot sector. (Not, actually, too likely, since you do get the GRUB prompt, whic implies that GRUB was, in fact, installed on the HD.) But a sucessful floppy boot will validate the install. Oh, you should do the chroot before you make the floppy, so you get the settings for your installiation, not the rescue disk's settings. Edit: Have to go walk the dog now, back in a hour or so. |
EDIT: no!, because i never use the floppy, thats why i need to find my floppy drive.
mke2fs /dev/fd0 it is successfull but when im trying to do this next command. got error. mount /media/floppy mount cant find /media/floppy in etc/fstab or etc/mtab |
mount -t ext2 /dev/fd0 /media/floppy
the directory /media/floppy needs to exist - and you need to be root for this. |
Quote:
Edit: If jomen's comment wasn't clear, you need to do (as root) Code:
# mkdir /media |
All times are GMT -5. The time now is 01:58 AM. |