[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: grub



Quoting Masoom Siddiqui <siddiqui masoom gmail com>:

> Hi,
>
> I recently had Redhat 7.2 physical machine converted into VMware guest with
> P2V tool vmware converter. When I boot the vm guest it drops me into <grub>
> shell. In the shell if I type "configfile /grub/grub.conf" I get Kernel to
> choose from and it boots normally from there.
>
> Why does boot process drop into grub shell?
>
> I have separate /boot parition...
>
> df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda2             2.0G 1022M  914M  53% /
> /dev/sda1             243M   13M  218M   6% /boot
> none                  503M     0  503M   0% /dev/shm
> /dev/sda7             2.0G   65M  1.8G   4% /tmp
> /dev/sda3             7.9G  929M  6.6G  13% /usr
> /dev/sda5             4.0G  1.1G  2.6G  30% /usr/local
> /dev/sda8              20G  7.1G   11G  38% /var
> Below is my /boot/grub/grub.conf...
>
> cat /boot/grub/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,0)
> #          kernel /vmlinuz-version ro root=/dev/sda2
> #          initrd /initrd-version.img
> #boot=/dev/sda
> default=0
> timeout=10
> splashimage=(hd0,0)/grub/splash.xpm.gz
> title Red Hat Linux (2.4.20-24.7)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.20-24.7 ro root=/dev/sda2
>         initrd /initrd-2.4.20-24.7.img

You might try changing the splashimage line to remove the /boot from it .. since
you have a /boot partition, you don't need it ... so it look more like the
kernel and initrd lines.  I don't know if grub would actually hang on that or
not .. you could also comment the splashimage line out.

Also .. you might try reinstalling grub ...

grub-install /dev/sda

.. or if that doesn't work .. the longer approach is:

grub --batch --no-floppy --device-map=/boot/grub/device.map
--config-file=/boot/grub/grub.conf

Once at the grub prompt, run:

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

HTH,
Barry



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]