grub

urgrue urgrue at bulbous.org
Mon Oct 11 12:42:33 UTC 2010


Did you do a cold or hot clone?
If it was cold, you sometimes need to do a few fixes to get your old
install to realize it's on different hardware.

I recommend you boot from a rescue CD, mount your install, chroot into
it, and run grub-install --recheck /dev/sda.

I had to do these steps to get my P2V:d linux to find it's disks: In
/etc/modprobe.conf:
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsih
alias scsi_hostadapter2 mptscsih
And, create a new initrd:
cd /boot
mkinitrd -v -f initrd-1.2.3.4.img initrd-1.2.3.4
replace 1.2.3.4 with your kernel version of course.

You can also try, in the grub shell, to type your boot commands manually
(in other words the three lines after the "title"), maybe you'll get an
error message.
You can also try changing the scsi controller type in the VM settings,
but I doubt this is your problem because I think you won't even get to
grub if its wrong.

Good luck.




On Wed, 22 Sep 2010 17:00 -0400, "Masoom Siddiqui"
<siddiqui.masoom at gmail.com> wrote:
> 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
> 
> device map ...
> cat device.map
> (hd0)   /dev/sda1
> 
> Regards
> -masoom
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 




More information about the redhat-list mailing list