LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-04-2012, 11:44 AM   #1
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,873

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Dual boot Slack 32 bit and Slack 64 bit on two drives - lilo config?


I had a dual boot setup working using grub 1 on sda mbr. I was using Magia 2, and gurb 1 for booting Magia on sda1 and Slackware 13.37, 64 bit on sdb1. I could boot either system.

For a number of reasons, I decided to get rid of Magia, and install Slackware 14, 32 bit version in Magia's place.

Before I formatted sda1, I installed lilo on the mbr on sdb, configure lilo. To make that work, I have to hit F12 during the BIOS startup, select the second drive as the boot drive, then lilo on sdb takes over and I can boot Slackware 13.37 64 bit.

I'm now trying to boot both slackware installs from lilo on the mbr on hda. I can boot sda1, the new install of Slackware 14, but can not get my older Slackware on sdb1 to boot form sda mbr.

Here is my current ( last attempt ) of lilo.conf from sda1.

Code:
boot = /dev/sda
compact        # faster, but won't work on all systems.
  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16
  bmp-timer = 65,27,0,255
append=" vt.default_utf8=0"
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x32k
vga = 790
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware14-32
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-custom-3.2.7
  initrd = /boot/initrd.gz
  root = /dev/sdb1
  label = Slackware13-37
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Right now I get a 'not found' type message. That leads me to believe lilo is looking in the /boot directory for kernel name vmlinuz-custom-3.2.7 ( my 64 bit kernel on sdb1 boot dir. )

My question is how to get lilo on sda to look in the /boot dir in sdb1 for the correct kernel and initrd.gz files?

All the How to's I have found think dual booting is a linux system and a windows system. They don't help much.

I also tried lilo.config expert mode. I'm no expert at lilo. Simply put, that didn't work, it did not pick up the name of the kernel I'm using on the 64 bit system.

Your help is always appreciated.
 
Old 10-04-2012, 11:53 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
when you run /sbin/lilo what is the feed back. or is there a error
 
Old 10-04-2012, 01:24 PM   #3
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,873

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
I just re-ran lilo, here are the results.

Quote:
root@duelie:~# lilo
Warning: LBA32 addressing assumed
Added Slackware14-32 *
Fatal: open /boot/vmlinuz-custom-3.2.7: No such file or directory
As you can see, the kernel on sdb1 /boot dir is not seen, hence my question in post #1.

One thing I thought of trying is to copy the kernel and initrd.gz files to the /boot dir on sda1. I have no idea if this would work, or if other files like the system.map would be required as well. I thought this might also cause problems for maintenance.

In the not too distant future, I want to update the 64 bit system to version 14 as well. I want to get the 32 bit version working and configured in the short term.
 
Old 10-04-2012, 01:44 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,393

Rep: Reputation: 187Reputation: 187
mount the second hard drive installation (say /mnt ) and edit lilo.conf to
Code:
image = /mnt/boot/vmlinuz-custom-3.2.7
  initrd = /mnt/boot/initrd.gz
rerun lilo
The way you have it now lilo is pointing to your 1st drives /boot

This will work too.
Quote:
copy the kernel and initrd.gz files to the /boot dir on sda1

Last edited by colorpurple21859; 10-04-2012 at 01:56 PM.
 
1 members found this post helpful.
Old 10-04-2012, 03:13 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Before I formatted sda1, I installed lilo on the mbr on sdb, configure lilo.
go in to bios set up make sure your drive are in sync with the lilo. because lilo is looking for at sdb1 /boot/vmlinuz. but if your bios have it set as a different drive then this will cause it lilo was mapped for the other drive.
most likely sdb is sda now to lilo let me know. or you may just pop in supper grub or a puppy linux and sort it out. let me know.
 
Old 10-04-2012, 03:19 PM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,393

Rep: Reputation: 187Reputation: 187
Chainloading is another way to go. You may have to reinstall lilo from the slackware64 back into it's MBR with both hard drives attached to work.
 
Old 10-04-2012, 03:44 PM   #7
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,873

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
colorpurple21859

Took your first suggestion in post #4, it worked like a charm. Thank-you.

I think chain loading would work also, just a little to windoze like.

This is what lilo.conf looks like now.

Quote:
image = /mnt/sdb1/boot/vmlinuz-custom-3.2.7
initrd = /mnt/sdb1/boot/initrd.gz
root = /dev/sdb1
label = Slackware13-37
read-only
 
Old 10-04-2012, 05:55 PM   #8
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
why not just copy the kernel image and the intrd image to your sda1 /boot folder then tell it sdb1 is root then run /sbin/lilo because thats what it will look for the /etc/fstab that has worked for me many times.

Quote:
image = /mnt/sdb1/boot/vmlinuz-custom-3.2.7
initrd = /mnt/sdb1/boot/initrd.gz
root = /dev/sdb1
label = Slackware13-37
read-only
If that works great

Last edited by Drakeo; 10-04-2012 at 06:17 PM.
 
Old 10-04-2012, 08:50 PM   #9
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,393

Rep: Reputation: 187Reputation: 187
I Chainload most of the time. It makes it easier when I'm doing a lot of distro hopping/testing
 
  


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
Dual-boot Slack/Ubuntu-install slack over XP-help with weird partition layout & lilo? linus72 Slackware 2 05-23-2009 11:03 AM
Dual Boot problem with 32-bit vist a and 64-bit Fedora 10 Ranti Linux - Newbie 8 04-03-2009 10:07 PM
[SOLVED] HP Proliant DL380G6 dual boot 32-bit and 64-bit RHEL5.0 sekhar_vgt Linux - Server 1 11-05-2008 10:56 AM
Q: how to create dual boot disk with ubuntu 32-bit and 64-bit maxreason Ubuntu 4 08-07-2008 12:11 PM
Lilo config can't boot slack Mojojo Slackware 8 07-02-2003 03:38 PM


All times are GMT -5. The time now is 03:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration