1

I created a Centos Live 5.4 Bootable USB drive. I used this to install Centos on a HP Netbook.

When the system goes to write the Grub boot loader to disk, it wants to write the boot loader to the usb drive (/dev/sda), not the hard disk (/dev/hda). I do have the option of writing the boot loader to /dev/hda, (not to the mbr!) but when I reboot I get an load error and the Grub prompt.

How can I get Centos booting from the hard disk instead of using the USB key.

Scott Pack
  • 14,717
  • 10
  • 51
  • 83
Rick
  • 203
  • 2
  • 9

2 Answers2

2

If you used whole hard disk for centOS, it might be possible to fix your grub.

From shell prompt, try this command below

#grub-install --recheck /dev/hda

After that exit to reboot.

If grub-install does not work for you, you can try to fix it manually from grub prompt. From grub prompt

grub> root (hd0,0)

Assumed that you've installed your boot on your first partition. Otherwise replace the last '0' with appropriate number. After that

grub> setup (hd0)

Then exit and reboot.

user40424
  • 296
  • 2
  • 3
0

Did you check the partitions on the hard disk first? Last time I worked on a netbook, it had a hidden partition for system recovery. You may need to wipe this out first.

Melvin
  • 63
  • 3