LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   grub not booting the correct device (https://www.linuxquestions.org/questions/linux-server-73/grub-not-booting-the-correct-device-4175479841/)

colorpurple21859 10-13-2013 08:23 AM

what does grub.conf look like, if it had
Code:

root (??,??)
then it is for grub legacy. If it had
Code:

set root=(??,??)
then it is grub2. grub2 looks for grub.cfg not grub.conf

InventiousTech 10-13-2013 08:26 AM

Yep it's like so:
Code:

root (hda0,0)
So, how do I update to grub2?

colorpurple21859 10-13-2013 08:33 AM

This should create a grub.cfg and put it in the right location.
Code:

grub-mkconfig -o /mnt/boot/grub/grub.cfg
Not sure which grub update-grub will try and use.

voleg 10-13-2013 12:44 PM

Sorry repeating advise.

Since you reinstall with default layout, it is follows:
First partition is mounted as /boot
Second partition is LVM; It may include more than one LV, but all of them resides
on same second partition hidden by LVM.

Look on my very first advise, do copy-paste, and be happy

InventiousTech 10-15-2013 12:42 PM

Ok, so I finally got it working. I decided to re-install CentOS because I had installed 5.9 i386, but because it was 32 bit, it wouldn't let me allocate more than 2GB of memory to my minecraft server, so I downloaded and burned a liveDVD of CentOS 5.9 x86_64 (6.4 gives a blank screen at the gui installer). I installed the new one, but this time, I switched the drive order so that c0d0 was first, and lo and behold there was an option to install grub on the MBR. So I selected it, and everything went fine, grub now automatically loads CentOS. Anyway, if anyone is wondering, I think the issue is that I originally installed grub from the liveDVD, so it's system analysis incorrectly detected the DVD as the main OS, and when that wasn't there at boot, it just went to a grub prompt. Thanks for all the assistance, this seems like a very helpful forum.


All times are GMT -5. The time now is 08:47 PM.