LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2013, 05:47 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Rep: Reputation: 29
Booting three distros on the same HDD


Hi guys,

i want to tri boot these three distros for different reasons

Debian
slackware
centos

i have installed centos on one partition
then i installed slackware on the second one
i did not install lilo when slack asked me to
but now its only booting to centos

do i need to add the relative info in my /etc/grub.conf file?

can someone please just give me a few guideines...would appreciate it

thanks
 
Old 10-28-2013, 06:14 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,090
Blog Entries: 3

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
first thing is what versions of centos. if I was you if grub legacy edit the /boot/grub/menu.lst
to boot that partitions you have your distro's. if your in grub 2 then run the update on grub2 and see if it
finds your /boot/vmlinuz on the other partitions and writes it in for you. Hit and miss a lot of time.
 
Old 10-28-2013, 07:04 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Original Poster
Rep: Reputation: 29
Hey drakeo thanks for replying
Centos 6.4 i think its grub 0.93
Should i upgrade grub? Would i need to reinstall the os's?
How do you uograde grub? Will i just google it and follow some tutorial?

Also...lastly...does it matter where each distro is installed? Would they all perform equally well regardless of partition etc...i want to use debian as my desktop system for gimp etc...should that be installed somewhere specific for performance etc?

Again thanks for your reply

Last edited by sigint-ninja; 10-28-2013 at 07:11 PM.
 
Old 10-28-2013, 09:16 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
If you have not yet installed Debian, you could select to install its Grub2 bootloader to the master boot record. It should detect CentOS as well as Slackware and create a menuentry in the grub.cfg file so all three are on the menu when you boot. If you would rather use the CentOS Grub Legacy bootloader, you would then need to install the Debian Grub to its partition.
 
Old 10-29-2013, 02:39 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,090
Blog Entries: 3

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
now tell me your hard drive setup and we can configure it to boot slackware.
Quote:
#
# Start GRUB global section
#timeout 30
#color light-gray/blue black/light-gray
splashimage (hd0,0)/boot/grub/splash.xpm.gz
# End GRUB global section
# Linux bootable partition config begins
title Slackware /sda puppy
configfile (hd0,6)/boot/grub/menu.lst

title Slackware /sdb
configfile (hd1,0)/boot/grub/menu.lst

title Slackware 13.37 (/dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=791
# Linux bootable partition config ends
# Linux bootable partition config begins
title Slackware 13.37 initrid (sda1)
root (hd0,0)
kernel /boot/vmlinuz-generic-2.6.37.6 root=/dev/sda1 ro resume=/dev/sda4 splash=silent vga=791
initrd /boot/initrd.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
title slack31.1(/dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 ro resume=/dev/sda4 splash=silent vga=791
# Linux bootable partition config begins
title slack13.1 initrd(/dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz-generic-3.2.26 root=/dev/sda3 ro splash=silent vga=791 acpi=on resume=/dev/sda4
initrd /boot/initrd.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
title 12.2 slk on (/dev/sdc1)
root (hd2,0)
kernel /boot/vmlinuz root=/dev/sdc1 ro vga=791
# Linux bootable partition config ends
# Linux bootable partition config begins
title 12.2 initrd (/dev/sdc1)
root (hd2,0)
kernel /boot/vmlinuz-generic-smp-2.6.33.4-smp root=/dev/sdc1 ro resume=/dev/sda4 splash=silent vga=791
initrd /boot/initrd.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux on (/dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 ro resume=/dev/sda4 splash=silent vga=791
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux on (/dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz root=/dev/sda5 ro splash=silent vga=791 resume=/dev/sda4
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linuxslk initrd on (/dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-generic-smp-3.2.7-smp root=/dev/sda5 ro splash=silent vga=791 acpi=on resume=/dev/sda4
initrd /boot/initrd.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux on (/dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz root=/dev/sda6 ro splash=silent vga=791 acpi=on resume=/dev/sda4
# Linux bootable partition config ends
this is a snippet of one of my grub/menu.lst study it. remember grub 2 is different if I was going to run grub 2 I just stick with Lilo.

Last edited by Drakeo; 10-29-2013 at 02:41 AM.
 
Old 10-29-2013, 09:31 AM   #6
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by Drakeo View Post
now tell me your hard drive setup and we can configure it to boot slackware.

this is a snippet of one of my grub/menu.lst study it. remember grub 2 is different if I was going to run grub 2 I just stick with Lilo.
do you prefer lilo to grub 2? why?...what are the reasons?...does it really matter...

i will study the snippet and if i have any questions i will post again...thanks
 
Old 10-29-2013, 11:36 AM   #7
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
The last OS installed will take over the boot loading. So go head and install Debian, once you are done with the Debian installation the other OSs will be listed on its GRUB menu from where you can select any of them with the up and down arrow keys on your keyboard.

Good luck to you
 
Old 10-29-2013, 06:01 PM   #8
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Original Poster
Rep: Reputation: 29
hi TroN-0074,

that worked perfectly...i just installed debian and on finishing it located cent and slack...and all are booting...
slack is listed about 8 times...why i dont know...guess i can just edit the menu.lst file and remove the extra entries?

im still going to look at what the previous guy said, as it would be useful to understand exactly how this all works in case i have to troubleshoot booting problems etc? or is this not too important?

on a different note i put my /usr/home directory on a separate partition (thinking it would be smart)
but now i cant get menus on my desktop (Debian) and cant create shortcuts, seems like a permissions thing as when i tried to copy from folder to folder (shared apps to desktop) i got a permissions problem

any help appreciated
 
Old 10-29-2013, 09:03 PM   #9
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Hey I am glad you were able to boot the other OSes. Sure it will be good if with time you become familiar with the booting process of your computer. But dont rush things, Linux can be overwhelming if you try to learn too much in too little time. Remember to enjoy your system as you go learning.

A common home partition is good so you can share that drive space among all your operating system but keep in mind that if you create the same user for all of them it can become really messy so perhaps creating a different user acount for each OS can be benefitial, same thing with root password, create different root password for each OS.

Heck, I would even format each root partition with a different format, except for the home partition ofcourse and sure the swap partition. so you could do something like

15GB root partition for CentOS formated perhaps in ext3
15GB root partition for SlackWare formated perhaps in ext4
15GB root partition for Debian formated perhaps in Btrfs
2 GB swap partition share among all OS
the rest of your drive for /home formated perhaps in ext4

you can move partition around after installation if you want to edit your home partition too and sure you can also edit your users accounts with 'useradd' 'userdel' commands you could also modefy your menu entries en GRUB but like I said take it easy.

If you reformat one of partition you have already created all the files in that partition will get delete so think about it if you wish to test any other format supported by Linux.

Take care and good luck to you.
 
Old 10-31-2013, 05:05 AM   #10
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Original Poster
Rep: Reputation: 29
Thanks for the info...busy installing now...awesome
 
Old 11-01-2013, 10:33 AM   #11
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,090
Blog Entries: 3

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Quote:
do you prefer lilo to grub 2? why?...what are the reasons?...does it really matter...
As Far as security goes lilo is the way. Pat has gone into detail why the older well thought out bootloader has not fallen to security breaches.

But as far as handling multiple machines with people that forget to run lilo after a kernel update has found them selves working to get back in.

I my self have put grub on many of the Slackware machines for my friends because they been locked out with out a boot disk. Trust me when you look at Grandma just
wanting to watch her favorite soap opera website, and could careless about lilo. At the same time she is so proud she can run slackpkg to upgrade all. grub 2 is a mess as far as I am concerned it is built for things the average person has no need for. And the security on it could be better. The more you do to a small bootloader that makes it bigger. Make your chance for things to break a little bigger .

Last edited by Drakeo; 11-01-2013 at 10:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Problem. Windows and ubuntu on internal hdd. Centos on External USB hdd faisal59 Linux - Distributions 1 07-17-2013 09:19 AM
Recover HDD after booting from DSL formatted my HDD chessmad00 Linux - Newbie 3 05-07-2012 05:39 PM
Multiple bootable distros on one portable hdd? GustavTheMushroom Linux - Newbie 1 09-03-2007 04:14 PM
Multiple bootable (live) distros on one portable hdd? GustavTheMushroom Linux - Software 8 09-03-2007 11:06 AM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 04:47 AM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration