LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   unable to access fedora from grub command line (https://www.linuxquestions.org/questions/fedora-35/unable-to-access-fedora-from-grub-command-line-861575/)

linuxwhacko 02-09-2011 04:28 AM

unable to access fedora from grub command line
 
i recently did some changes to my hard disk partiton
and now linux is in hd0,6

when i booted my pc,i got the grub commmand line interface
so,I think that i need to edit grub.conf in fedora 14
then at cmd i did this:

grub> root (hd0,6)
grub> kernel (hd0,6)/vmlinuz
file not found

now what to do ?

Fedora
Release 14(laughlin)
Kernel linux 2.6.35.10-74.fc14.i686
Gnome 2.32.0

windows7+fedora 14

prodev05 02-09-2011 04:34 AM

Your entry is wrong. It should be link the below mentioned.

grub> root(hd0,1)
grub> kernel /boot/vmlinuz.x.y.z ro root=/ // Once entered you will get the Hex value This will load the kernel
grub> initrd /boot/initrd.x.y.z.img // Once entered you will get the Hex value This will extract the symbol table and others
grub> boot This will boot the operating environment

if this works. Append the same entry in the grub.conf :)

linuxwhacko 02-09-2011 08:09 AM

i tried your method prodev05 but doesn't seem to work
so ,i tried this:

root (hd0,6)
kernel /boot/vmlinuz-2.6.35.10-74.fc14.i686 ro root=/dev/sda7
boot

the fedora 14 started
then,i edited the grub.conf file located in /boot/grub/grub.conf
and changed the entry to hd0,6

#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/sda6
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.10-74.fc14.i686)
root (hd0,6)
kernel /boot/vmlinuz-2.6.35.10-74.fc14.i686 ro root=UUID=c8b581f6-32ad-4957-9ba5-f4ae05720c44 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.35.10-74.fc14.i686.img
title Fedora (2.6.35.6-45.fc14.i686)
root (hd0,6)
kernel /boot/vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=c8b581f6-32ad-4957-9ba5-f4ae05720c44 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
nomodeset
initrd /boot/initramfs-2.6.35.6-45.fc14.i686.img
title Other
rootnoverify (hd0,1)
chainloader +1



and then rebooted

still i get the grub command line interface

what shall i do to get the gui interface ?

wmakowski 02-11-2011 11:18 PM

From what you describe it sounds like your kernel isn't being found.

Try the following at the grub command prompt
Code:

find /boot/vmlinuz-2.6.35.10-74.fc14.i686
If grub finds it, the command will return (hdX,P) where X is the harddrive number and P the partition number.

If it is not found we'll need to take a closer look at how your hard drive is partitioned. One possibility, if you have a separate boot partition use the find command without /boot in front of the kernel file name. Also are you certain of the UUID on the root partition? You can locate that using the tune2fs command.


All times are GMT -5. The time now is 05:09 PM.