LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-25-2013, 12:40 PM   #1
waddles
Member
 
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
dual booting Slackware to Ubuntu


Have Slack on hard drive and using Lilo to attempt to chain boot. The Ubuntu uses Grub and I do not know if it uses MBR or /root. When I test lilo.conf settings:
other = /dev/sdc1
table = /dev/sda
label = Ubuntu
to boot Ubuntu I get: a warning about the table and to use lilo -P fix
but when I run lilo -P fix -t -v I get:
Warning: The partition table is *NOT* being adjusted.
Fatal: First sector of /dev/sdc1 doesn't have a valid boot signature
The first sector has shows bootable. I had modified the install after having used a VFAT 1-st sector so it is ext4 now.
Can someone explain why am turning in circles here as I apparently have no idea what is expected as a boot signature. Does this have anything to do with Ubuntu using grub and Slack using Lilo or where Ubuntu puts the loader?

Last edited by waddles; 03-25-2013 at 12:42 PM.
 
Old 03-25-2013, 01:19 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 116Reputation: 116
I had trouble getting a triple-boot of Slackware, Ubuntu, and Linuxmint working with either LILO or GRUB. In the end it was easy once I switched to SYSLINUX (extlinux). Sorry I don't have that system running anymore (it's a test box) to show the config file. I used the SYSLINUX that was part of Slackware which is a bit dated but worked.

It may be possible to this with GRUB and LILO via chain booting to the secondary system.
 
Old 03-25-2013, 07:40 PM   #3
michaelslack
Member
 
Registered: Feb 2013
Location: Sydney
Distribution: slackware
Posts: 94

Rep: Reputation: 35
I am not certain but I thought that you could just bypass grub completely and boot ubuntu with lilo directly.

For instance, your lilo.conf might look like (this is modified from /etc/lilo.conf_example provided in slackware-14.0)

Code:
image = /boot/vmlinuz-2.6.32-2-generic
	label = "slackware"
	root = /dev/sda2
	read-only
	initrd = /boot/initrd.img-2.6.32-2-generic


image = /address/of/ubuntu/kernel-image/relative/to/its/root
	label = "ubuntu"
	root = /dev/sdb1
	read-only
	initrd = /address/of/ubuntu/initrd/relative/to/its/root
Am I missing something? I suspect there is more going on here than meets the eye...

Michael
 
Old 03-26-2013, 12:02 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by michaelslack View Post
I am not certain but I thought that you could just bypass grub completely and boot ubuntu with lilo directly.

For instance, your lilo.conf might look like (this is modified from /etc/lilo.conf_example provided in slackware-14.0)

Code:
image = /boot/vmlinuz-2.6.32-2-generic
	label = "slackware"
	root = /dev/sda2
	read-only
	initrd = /boot/initrd.img-2.6.32-2-generic


image = /address/of/ubuntu/kernel-image/relative/to/its/root
	label = "ubuntu"
	root = /dev/sdb1
	read-only
	initrd = /address/of/ubuntu/initrd/relative/to/its/root
Am I missing something? I suspect there is more going on here than meets the eye...

Michael
In theory you should be able to. But the configuration to do so is more complex since more than one device is involved that holds a kernel and initrd image. One thing I did with my SYSLINUX install was to copy the needed files all into one common boot partition, manually. That may help for LILO, since you can configure everything as a single device.
 
Old 03-26-2013, 06:53 PM   #5
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,241

Rep: Reputation: 196Reputation: 196
I use on the same machine Slackware Linux and Linux Mint. (I suppose that Linux Mint and Ubuntu behave similarly.) I donít like GRUB at all so I use LILO to choose the system. That requires tricky method of the installation of GRUB in Linux Mint.

I keep Linux Mint on /dev/sda1 and Slackware Linux on /dev/sda2. I install Mintís GRUB on /dev/sda1 and Slackwareís LILO on /dev/sda.

First I start Mint.

GRUB2 refuses to be installed on the beginning of the partition instead of MBR:

grub-install /dev/sda1
Code:
    /usr/sbin/grub-bios-setup: warning: File system `ext2' doesn't support embedding.
    /usr/sbin/grub-bios-setup: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
    /usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
(GRUB2 lies in the above message because I donít use ext2 at all.)

So I need GRUB Legacy instead:

apt-get remove grub-pc
apt-get install grub
update-grub


Now I can install GRUB:

grub-install /dev/sda1
Code:
    Probing devices to guess BIOS drives. This may take a long time.
    Searching for GRUB installation directory ... found: /boot/grub
    Installing GRUB to /dev/sda1 as (hd0,0)...
    Installation finished. No error reported.
    This is the contents of the device map /boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.

    (fd0)/dev/fd0
    (hd0)/dev/sda
Then I run Slackware using the following /etc/lilo.conf:

Code:
boot = /dev/sda
compact
append=" acpi_osi=Linux apm=1 pcie_aspm=force vt.default_utf8=1 resume=/dev/sda4 acpi_sleep=s3_bios,s3_mode"
prompt
timeout = 50
vga = 791
image = /boot/vmlinuz-generic-smp-3.2.29-smp
  initrd = /boot/initrd.gz
  root = /dev/sda2
  label = slack-generic
  read-only
image = /boot/vmlinuz
  root = /dev/sda2
  label = slack-huge
  read-only
other = /dev/sda1
  label = mint
Finally I rerun LILO:

lilo

That works.
 
  


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
Deleting Windows forever, dual-booting Ubuntu and Slackware. lupusarcanus Linux - Newbie 1 12-24-2009 07:58 AM
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard *BSD 2 11-09-2009 12:55 PM
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard Linux - Newbie 1 10-22-2009 11:07 PM
dual booting: Slackware and Ubuntu gawain Slackware 7 12-23-2006 07:59 AM
Dual-Booting Ubuntu/Slackware Mario87 Ubuntu 2 12-05-2006 06:21 PM


All times are GMT -5. The time now is 08:03 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration