Author Topic: Can we have a GRUB that chainloads ALL partitions?  (Read 375 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Can we have a GRUB that chainloads ALL partitions?
« on: January 22, 2013, 06:45:33 AM »
I have more than 6 bootable partitions on my laptop and more than 4 on my desktop.
I keep 1 PCLinuxOS and 1 Windows partition constant on both computers, but I keep re-installing / changing the remaining partitions at will.
I have a separate partition of about 50 MB on both computers.

My question is :
Can I install only GRUB to this partition and use it to chainload all other partitions including my main PCLinuxOS install?
In this case nothing will affect the main GRUB in whichever way I play around with installations on partitions.
If something happens, I only need to edit 1 menu.lst file.

Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1916
  • Certified Windows Hater
Re: Can we have a GRUB that chainloads ALL partitions?
« Reply #1 on: January 22, 2013, 06:55:06 AM »
I have a similar setup but I wanted to try a different approach. :)

http://www.pclinuxos.com/forum/index.php/topic,112575.0.html

Yes you can do that.
You must install each installation's Grub at the boot sector of the partition of that installation.
Then add an entry for each one, similar to this:

Code: [Select]
title Linux name
root (hd0,0)
chainloader +1

Changing the number on (hd0,0) to reflect the number of each partition.

http://www.pclinuxos.com/forum/index.php/topic,93301.msg783615.html#msg783615
« Last Edit: January 22, 2013, 07:22:48 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10667
  • MLUs Forever!
Re: Can we have a GRUB that chainloads ALL partitions?
« Reply #2 on: January 22, 2013, 10:26:31 AM »
You can have as many chainloader boot entries as you like.

I have had over 20 such boot stanzas at one time ......  difficult to go through the list to find exactly what I wanted  :D

Quote
title Linux name
root (hdX,Z)
chainloader +1

Change the X to choose the HDD
Change the Z to choose the partition on that drive.

I used a slightly different approach eventually.

I had only the chainloader entries for each disk in the menu.lst for that disk.
That helped keep the entries down to a manageable number in each.

The only edit you should need to make to the main menu.lst is if you add another partition to the disk.

Be sure you install Grub to the boot sector of each partition that holds an OS.

« Last Edit: January 22, 2013, 10:28:44 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT