2009年3月31日星期二

GRUB related issue for SLSE 10

Background :

1. Since SLES 10 use a newer method for device mapping, new cloned OS cannot recognize orinignal device id. It cause new cloned OS cannot be boot.

Solution :

a. Boot from CD and choose installation.

b. When you reach the following screen :

1. New Install

2. Update

3. Other option

Choose "other option" and then choose "Boot from installed OS".(It may be different from actual wording, but it should be similar)

c. run the following command to reset the grub menu

grub-install /dev/sda

d. change directory to /dev/disk/by-id and record the new device id

e.g. scsi-SATA_SAMSUNG_HM250JIS0TVJD0Q219790-part3

c. modify the /boot/grub/menu.lst with the new device id

e.g. kernel /vmlinuz root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HM250JIS0TVJD0Q219790-part3 vga=0x314 acpi=off resume=/dev/sda2 splash=silent showopts

d. reboot the server and it should be ok.

REMARKS :

we need to change all device id in /etc/fstab to /dev/sdx before we clone the OS. Otherwise, no linux parition cannot be found

If really linux partition cannot be found, you may

a. boot rescue mode
b. fsck /dev/sda1
c. fsck -y /dev/sda3
d. mount /dev/sda3 /mnt
e. modify /mnt/etc/fstab
f. mount /dev/sda1 /mnt
g. grub-install --root-directory=/mnt /dev/sda
h. modify /mnt/boot/grub/menu.lst

沒有留言: