Grub2 won't load some OS's after expanding partitions
Hello,
I recently expanded some partitions on my laptop. And now grub2 will not load two of the five OS's. Here is my laptop's current partition layout: Code:
root@laptop:~# fdisk -l Partitions 6 + 7 are the same size as before. AND all OS's are on the same partition #'s as before I did the expansion. The steps I took were:
After that little bit of a brain fart and correcting the Windows partition ID. Windows, FreeBSD, and Slackware all booted without issue. But when attempting to boot Ubuntu or Suse; I get the error message: Code:
error : you need to load the kernel first But nothing has worked. And all the online searching I've done has gotten nothing. Although I really don't think the problem is with my grub.cfg. Here it is anyway (same as before the partition changes): Code:
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" { Does anyone have any idea what is going wrong ? Thanks; --ET |
Run the command
os-prober then update-grub |
With grub2, update-grub automagically runs os-prober
|
Quote:
|
Hmm; thanks. But there is no update-grub.
The grub on my system only has the following: Code:
root@laptop:~# ls /usr/local/bin/*grub* --ET |
First if you are running grub2 from your ubuntu installation it should respond to the update-grub command. Anyway my suspicitions are the mapping of the partitions has changed. You can check your partition numbers and uuid numbers against those listed in the grub.cfg.
|
Quote:
--ET |
I think you may have corrupted some files then. You might try fsck. If that does not do the job it looks like a repair or new install is the only alternative. I know Suse has a repair option on their dvd that you might try.
|
Well now; this is peculiar.
Slackware, FreeBSD, and Windows all see partitions 6 + 7. But Grub does not. When issuing an "ls" from Grub's command line prompt. I get the following: Code:
sh:grub> ls (It saw them before expanding partitions 1 through 5.) --ET |
Solved it !
It appears that by expanding the first 5 partitions. I pushed partitions 6 + 7 beyond a BIOS / drive limitation. I stumbled across the following at https://help.ubuntu.com/community/Grub2: Code:
error: no such partition And then modify grub.cfg as follows: Code:
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" { Thanks for the replies; --ET |
I had heard of that problem but you are the first I have seen with the problem. The link you listed to ubuntu's tutorial is one of the best and easiest to understand I have seen.
|
Please mark this thread as [SOLVED] in the thread-tools at the top so others may easier find it as reference.
<edit> Uuups, fast work ;) </edit> |
Erk - haven't seen that in 4-5 years. Can't you get a BIOS update ?.
|
All times are GMT -5. The time now is 04:27 PM. |