LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cant see other distros (https://www.linuxquestions.org/questions/slackware-14/cant-see-other-distros-584941/)

Ezedul 09-15-2007 04:20 PM

Cant see other distros
 
Hey people,

I've recently installed both Ubuntu and Slackware on my comp.
I installed Ubuntu first, and then Slackware hoping Lilo would be able to let me boot into all 3 OS's... Slack, Ubuntu and Windows.
That never happened, and honestly I dont know enough to even try to mess with the Lilo conf chart... I know that if I screw up I can always fix the Windows MBR and just install linux all over again, I dont have a problem with that... but I've done it too many times, and I'd rather find a smart solution instead.

I tried reinstalling Ubuntu again today, and Grub does show all 3 OS's... but I like Lilo better.
I havent logged into Ubuntu yet, since the last time I installed it, and I still dont know if I have access the my Slackware partition, but I can deff not see Ubuntu on Slackware...

Any ideas??

Thanks a lot

witz 09-15-2007 10:31 PM

For the lilo; first you need to restore lilo.Do that by booting up from the slackware
cd,login,and mount the slackware / partition.Then restore lilo by running command:
lilo If you're not comfortable in virtual console, then do that above and reboot.Lilo should start up with slack;then from there get back on slackware and read man lilo.conf and it will explain how to add the other OS's.MAKE SURE that after modifying the /etc/lilo.conf file you need to run again command lilo again.If you don't lilo won't be using the newly modified lilo.conf settings.

Oh and just mount the ubuntu partitions you need to see and you're good to go.;)

dive 09-16-2007 12:40 AM

If you know the partitions where you installed Slackware and Ubuntu it's quite easy. E.g. /etc/lilo.conf:

image = /boot/vmlinuz-2.6.21
root = /dev/hdaN
label = Slack
read-only

image = /boot/vmlinuz-2.6.21
root = /dev/hdaN
label = Ubuntu
read-only

You need only set the root= line to point to the correct partitions and make sure that the image= part points to the correct kernel. Then run 'lilo' as root.

Ezedul 09-16-2007 02:41 PM

I can reinstall lilo, but I still cant mount my ubuntu partition... I've tried everything, and it still wont recognize it.

I dont think I can boot from a partition I cant even see...

*Edit* - I meant, I dont think I can add Ubuntu to Lilo if I'm not able to mount that partition on Slackware... is that possible though? - *Edit*

I've considered just sticking with grub, I found an easy way to manage it, change the countdown, default OS, etc etc... but I still want to be able to mount my ubuntu on Slackware...

Ideas?

Gracias!

BCarey 09-16-2007 02:48 PM

It is very unclear what you want to do. Mounting a partition and booting a partition are not the same thing.

Perhaps you could post your partition table (output of "fdisk -l")

Brian

duryodhan 09-16-2007 10:41 PM

What you should have done is :

Installed slackware. That would install lilo in your MBR.
Install ubuntu. ask it to install grub in the root partition itself (not on MBR).

chainload!

put
label=Ubuntu
other=/dev/hdaX

where hdaX is the partition where you installed ubuntu / grub.

arubin 09-17-2007 09:13 AM

This is all a bit confused.

As I understand if you want to be able to add Ubuntu to you lilo which is set up from Slackware you are going to have to mount your Ubuntu partition somewhere when you are in slackware.

To do this you need to create a mount point as root eg.

Quote:

mkdir /mnt/ubuntu
then, assuming you know which partition ubuntu is on, mount it

Quote:

mount /dev/sda* /mnt/ubuntu
Then you need to edit lilo.conf so that it contains the relative path to your ubuntu vmlinuz, that is /mnt/ubuntu/boot/vmlinuz before running lilo.

Personally I much prefer grub. All you have to do is find menu.lst and edit that.

duryodhan 09-17-2007 11:52 AM

that won't work (unless ubuntu is in primary partition, even still though it will probably not work). What you could try is
cp the ubuntu kernel to your main slack /boot/
and then start that with a proper root=/dev/sdaX which afaik should work

Chainloading is still your best option.


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