Grub not installing correctly
Recently, I recieved some help from marghorp (see http://www.linuxquestions.org/questi...hreadid=185768 for the full thread) on how to get FC 2 to boot. I quickly tired of the floppy boot disk and how slow it was, so I decided to put grub in the MBR on hdb, my Linux drive. I did this so a) I would not have to worry about the kernel 2.6 hard disk geometry bug that tends to hose XP installs and b) so I could boot with greater speed. I followed the instructions that marghorp gave me, but installed to hdb instead of hda (my XP drive). After booting with the rescue CD, in the shell:
Code:
chroot /mnt/sysimage I then rebooted my computer to see if grub would work. I told the BIOS to boot from IDE-1, my Linux drive. The screen quickly flashed that grub was loading and then went blank, with only the blinking underscore cursor in the upper left-hand corner. After about five seconds, the message Code:
Booting 'Fedora Coce 2.6.5-1.258 ' |
Take a look at the grub.cnf file and see if there is anything missing - check that all the correct partitions are identified there.
(I take it the diskette boot still works?) Simon |
I'm not exactly sure if my grub.conf file is correct. Here is the outputs of /sbin/fdisk -l and the contents of my /boot/grub/grub.conf:
Code:
sh-2.05b# /sbin/fdisk -l Code:
sh-2.05b# cat /boot/grub/grub.conf |
(Boxed code reproduced from original post)
Code:
sh-2.05b# /sbin/fdisk -l Code:
sh-2.05b# cat /boot/grub/grub.conf Try this: 1. copy this file into the same directory with the name boot.conf.old or boot.conf.faulty or some such. 2. replace the kernel id line (kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet) with the following: kernel /vmlinuz-2.6.5-1.358 ro root=/dev/hdb2 3. save the altered file as grub.conf (replacing the old one) 4. reboot The idea here is to tell GRUB that your root partition is *definately* in hdb2. (I had the same problem with two drives where hda1 was boot, hda2 was empty, hda3 was swap and hbd1 was a whole drive of root. making the alteration suggested is what rescued me :) ) Simon BTW: let us know how it went. |
The partition type of your XP partition is WRONG. In fact, fdisk does not even list 44 as a valid type. Dunno how it got that way or how you're gonna fix it w/o reinstalling XP. Here is the fdisk summary for my system that dual boots FC2/XP:
Disk /dev/hda: 40.9 GB, 40982151168 bytes 255 heads, 63 sectors/track, 4982 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 32 257008+ 83 Linux /dev/hda2 33 1278 10008495 7 HPFS/NTFS /dev/hda3 1279 1372 755055 82 Linux swap /dev/hda4 1373 4982 28997325 5 Extended /dev/hda5 1373 2481 8908011 83 Linux /dev/hda6 2482 4982 20089251 83 Linux |
Sorry about the formatting above... I'll try again:
<code> Disk /dev/hda: 40.9 GB, 40982151168 bytes 255 heads, 63 sectors/track, 4982 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 32 257008+ 83 Linux /dev/hda2 33 1278 10008495 7 HPFS/NTFS /dev/hda3 1279 1372 755055 82 Linux swap /dev/hda4 1373 4982 28997325 5 Extended /dev/hda5 1373 2481 8908011 83 Linux /dev/hda6 2482 4982 20089251 83 Linux </code> |
I tryed changing the kernel line to have the root point at /dev/hdb2 instead of LABEL=/, but I still receive the same error as I did before.
About the partition type, I now realize that 44 is an invalid partition type, but to change it to the correct value, I believe that you would have to rewrite the partition table using fdisk, and in the process nuke my XP partition. One thing I wonder about is that I actually have five NTFS partitions on /dev/hda, but fdisk only lists one. Is this another byproduct of the incorrect partition type that fdisk sees? Is the incorrect partition type a byproduct of the 2.6 kernels new hard disk geometry detection? BTW: You use brackets to enclose formatting tags in these forums, not chevrons |
I was having a very similar problem. When I first did the install Grub defaulted to my XP partition and would not boot either OS with the error "Unable to load Operating System" After removing GRUB to be able to boot Windows again I tried installing GRUB to /dev/hdb and that would boot if I said in the BIOS to boot from HD1 in the sense that I got the same problem as you. My XP partition however was 0x7 which is a correct format for NTFS.
Once I ran into your problem I tried some of the solutions given here however I was only able to get Fedora to boot if I changed GRUB to look have all instances of (hd1,0) changed to (hd0,0) and left the line kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet As is. I also remarked out the XP portion of the loader and have not tried to boot it yet. I need to make sure all my XP info is better backed up before I mess with it. It just means I am using the system BIOS to change my boot OS instead of GRUB for now. I will post again if I try this out and things work. I hope this helps. |
All times are GMT -5. The time now is 12:29 PM. |