title Second Linux Distro root (hd1,0)
Copy the original grub (with the modified menu.lst that adds the new distribution) back to the grub directory:
cd /mnt/boot cp -a grub.original/* ./grub
This copies not only the updated menu.lst file, but it also restores the original GRUB binary files. The next time you reboot, you should see a menu entry for the original distribution plus the one you added.
To add more distributions, create new partitions, rinse, repeat.
You occasionally may find that you need to reset GRUB after you install a new distribution. Given our sample partitions above, simply do this as root:
grub > root (hd0,0) > setup (hd0)
One last tip: don't forget that when you upgrade a distribution such that it installs a new kernel, you'll have to view the new /boot/grub/menu.lst file for that distribution and use it as the guide to modify /mnt/boot/grub/menu.lst to use the updated kernel.
Linux Journal pays $100 for reader-contributed tech tips we publish. Send you tips and contact information to firstname.lastname@example.org.
Practical books for the most technical people on the planet. Newly available books include:
- Agile Product Development by Ted Schmidt
- Improve Business Processes with an Enterprise Job Scheduler by Mike Diehl
- Finding Your Way: Mapping Your Network to Improve Manageability by Bill Childers
- DIY Commerce Site by Reven Lerner
Plus many more.
- Server Hardening
- Unikernels, Docker, and Why You Should Care
- diff -u: What's New in Kernel Development
- 22 Years of Linux Journal on One DVD - Now Available
- Controversy at the Linux Foundation
- Giving Silos Their Due
- Non-Linux FOSS: Snk
- Don't Burn Your Android Yet
- What's New in 3D Printing, Part III: the Software