Re: Dual Boot Grub2 (Ubuntu) GRUB (PCLINUXOS)
Many, many thanks to oldfred for this tip. His advice worked great in my similar situation: a Linux dual-boot, with Lucid Lynx on /sda and PCLinuxOS Phoenix (Xfce edition) on /sdb. As in VTPoet's case, I could not boot PCLOS from the main GRUB2 menu. (Although there was an entry in the menu, it had picked up incorrect partition information.)
Originally Posted by oldfred
My PCLOS installation's root partition is located on /sdb10 [(hd1,10) in GRUB2 notation]. That was identified correctly; however, there was a mistake in the final line of the stanza:
As oldfred noted, the (hd1,9) is notation from Legacy GRUB and it is not required here ...
initrd (hd1,9) /boot/initrd.img
In case this will help someone else in the future, here are the steps I followed to fix this. I'm relying on memory, but I believe that this information is accurate:
1. I rebooted the computer to get to the main GRUB2 menu.
2. I found the entry for PCLOS which had been created by GRUB2's osprober. I chose "e" from the menu to edit this entry.
3. I scrolled down to the line containing initrd (hd1,9) /boot/initrd.img and deleted the "(hd1,9)" portion from it.
4. I typed Control-X [?] to try and boot the entry.
5. Joy! It booted successfully.
6. I decided to try editing the menu entry for a permanent fix. To do this, I first used gedit to copy the originally created PCLOS stanza from /boot/grub/grub.cfg. (I saved it to a temporary file in my /home folder).
Note: I did not edit grub.cfg in any way; I only copied the relevant PCLinuxOS entry from it.
7. Again using gedit, I opened the 40_custom script file found in /etc/grub.d/
8. I pasted the PCLOS GRUB2 stanza which I'd just copied into the 40_custom file.
9. I deleted the "(hd1,9)" partition reference from the initrd line and saved the file.
10. I updated GRUB2 by typing in a Terminal.
11. I rebooted the machine to double-check whether a new custom entry had been added for PCLinuxOS, and whether it booted correctly. Yay! It did.
HTH. Kudos to oldfred for his GRUB2 knowledge.
Registered Linux User # 442201
AMD Athlon (K7) 950 MHz, 1GB RAM, /hda Maxtor 40 GB, /hdb Seagate 250 GB