Solution of “RHEL6 can’t boot without u disk after system be deployed”

We must plug in U disk after RHEL6.5 had been installed to server, otherwise the server

can not boot on the next time. The reason is that GRUB information had been installed to

MBR of U disk rather than local disk, if you plug off the u disk, the server can’t boot because

there is no boot information in local disk.


Solution:
reinstall grub to MBR of localdisk, and edit /boot/grub/grub.conf.

[root@localhost~]#grub

Grub>root(hd0,0) ## (hd0,0) means the first partition of first disk.

Grub>setup(hd0)

Grub>quit

 

or you can use “Grub-install” command:

If there exist an independent /boot partition, you can execute the following command.

[root@localhost~]#grub-install /dev/hda(or sda)

If only / partition,and there is no independent /boot partition,you can execute

“grub-install–root-directory=/boot/dev/hda(or sda)”

After GRUB installed ,you also need to edit file “/boot/grub/grub.conf”,modify boot information

to “(hd0,0)”.

Leave a Reply