cant boot
i am using fedora5 but can't boot
wat i've done is root (hd0,5) kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet but it says file not found... though partition is recognised correctly... do i need to modify grub.conf ??? how to do that??? pl help!! |
Quote:
You can either edit the grub entries right when it tries to boot or you can boot via a live-cd and then change the grub configuration file. The file is most likely located in /boot/grub. File name can be either menu.lst or grub.conf. |
Actually it is quite easy to solve.
press "c" to get a Grub prompt if you have not already done it. Ask Grub where is the partition that has grub.conf by Code:
find /grub/grub.conf Code:
find grub.conf My guess is you may have a problem with /etc/fstab. I don't like Fedora's way of addressing its root by a label in a hard disk and change it to the standard device name, as used in every other Linux, in all the Red Hat I have. |
by "cat" command u mean i just enter cat and then i can edit grub.conf right?
thanks btw |
Yep
This is the way you can get Grub to display the way it boots every system so that you can manully boot each one yourself if you want to alter the paramters. Also Grub obeys the "tab" key so if you type Code:
kernel /boot/vmlinuz- Code:
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 |
ok il do that in the time i tried to find
/grub/grub.conf but it said file not found and the same result for find vmlinuz ??? anyway will post after trying again... |
fedora uses /etc/grub.conf
|
Deleted temporary
|
kernel wasn't found and this was the output of grub.conf
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,7) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=1 timeout=5 splashimage=(hd0,7)/grub/splash.xpm.gz #hiddenmenu title Fedora Core 5 (2.6.15-1.2054_FC5smp) root (hd0,7) kernel boot/vmlinuz-2.6.15-1.2054_FC5smp ro root=LABEL=/1 rhgb quiet initrd boot/initrd-2.6.15-1.2054_FC5smp.img title Windows XP rootnoverify (hd0,0) chainloader +1 |
deleted temporary...as in?
|
Could you post the output of fdisk -l (run this as root)
Note that the root (hdX,Y) entry must point to the partition which contains the /boot directory. This might not be the same as where the kernel will try to mount the root (/) of the filesystem |
i had tried it but said unrecognized command
could u pl tell the exact command as i am a newbie just fdisk -l didnt work |
Life must be kind to me as I seem to have plenty of grub.conf
I got 31 /boot/grub/grub,conf 97 /boot/grub/menu.lst 31 /boot/etc/grub.conf I always install a Linux in a single partition and so my /boot is a subdirectory of / in every case. That is why my /boot/grub/grub is the same as another user's /grub/grub.conf stored in a dedicated /boot partition. Also I also edit menu.lst and disregard grub.conf. In the above it would suggest whever we have /etc/grub.conf we should have /grub/conf as a symbolic link (and also menu.lst). I know Grub cannot read a LVM and that is why every Red Hat must have a separate /boot partition (unless you do not use LVM and use a single partition like me). The /boot partition is always non-LVM. Therefore Grub cannot access the /etc/grub.conf, as it will be inside the LVM, and must boot according to the grub.conf stored in the /boot partition or directory. ------------------------- kanishk, You have to do a Code:
sudo fdisk -l Code:
[root@localhost ~]# grub |
Quote:
At least two ways to do it: su to get root access, then fdisk -l or sudo fdisk -l On some systems you might have to use /sbin/fdisk (or do "su -" to actually become the root user) |
All times are GMT -5. The time now is 07:34 AM. |