SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm quite fond of FreeBSD 6.1 and would like to run it on my Slackware box. I usually run one OS at a time, but, I'd like to set-up lilo to boot both Slackware 11 (when released) and FreeBSD 6.1. I plan to delete my current install of Slackware 10.2 and set-up a swap partition, a partition for Slackware 11 and one for FreeBSD 6.1. Here's a copy of my present lilo.conf for Slackware 10.2.
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only
# Linux bootable partition config ends
I'm a novice in setting up a dual boot in Slackware. Does anyone have any tips on how to edit my liloconf?
Thank you for any and all answers.
Hi, that's an easy one.
I've had many "linux" distros running on the same drive as FreeBSD. Just remember FreeBSD needs a primary partition. Another thing to consider is the distros you plan using. (Gentoo's previous release autoinstaller wiped out my partition table, i heard new release is better). With Slackware there's nothing to worry about.
Check the FreeBSD FAQ
After editing your /etc/lilo.conf type /sbin/lilo to add changes.
An example of my previous FreeBSD install, adjust as needed.
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only
Thanks for your help guys, much appreciated:-)
If I create another primary partition for FreeBSD would it be called /dev/sda3? Thanks for the code mannyslack:-) Do I put your code right at the end of my lilo conf?
1 If I create another primary partition for FreeBSD would it be called /dev/sda3?
2 Do I put your code right at the end of my lilo conf?
1 I'd rather not answer since i'm not familiar at all with sda drives
2 Yes, any order is ok, an easy one is to place first the one you want to defaul. Just edit to suit your partition, don't copy/paste mine. Make sure you check the links above about the FAQ
Here's a copy of an old /etc/lilo.conf
Code:
...# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda9
label = Slackware
read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /mnt/gentoo/boot/vmlinuz
root = /dev/hda5
label = Gentoo
read-only
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# FreeBSD
other=/dev/hda4
table=/dev/hda
label=FreeBSD
ps. i don't remember if you need to add your FreeBSD partition to /etc/fstab but i'm almost sure you don't. In previous post i should have said gentoo installer wiped my partition table because it couldn't read FreeBSD slices, but it's solved now (i think)
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only
# Linux bootable partition config ends
# FreeBSD
other=/dev/sdb2
table=/dev/sdb
label=FreeBSD
Okay, I've been tooling around with Slackware 11.0 for a bit and am ready to try installing FreeBSD 6.1. I've got two SCSI drives set-up on this system. Drive sda is my Slackware system. Drive sdb is where I'd like to install FreeBSD 6.1. How does this look for my liloconf file? I'm assuming sdb2 would be the bootable BSD partition.
What do you think?
Have you considered installing VMware Server on your Slackware box and creating a FreeBSD virtual machine? Virtual machines are more convenient than dual boot.
Have you considered installing VMware Server on your Slackware box and creating a FreeBSD virtual machine? Virtual machines are more convenient than dual boot.
That's a cool idea:-) Do you have a link to VMware Server that would work for Slackware?
Thank you everyone for your excellent help:-)
I've just finished setting up my dual boot Slackware 11.0, FreeBSD 6.1 system. Your suggestions were very helpful mannyslack, they pointed me in the right direction for modifying my liloconf file.
In the end I decided to re-size my sda2 root slackware partition. I did this by booting my computer with an Ubuntu 6.06 CD then re-sizing the partition with Gparted which worked flawlessly, creating room for BSD. I then used Gparted to create another partition.
I then booted my BSD install disks and installed FreeBSD 6.1 to the newly created partition. After the install I booted into Slackware and modified my lilo conf, then ran /sbin/lilo
Here's my liloconf:
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only
# Linux bootable partition config ends
# FreeBSD
other=/dev/sda3
table=/dev/sda
label=FreeBSD
I can now boot either Slackware or BSD with lilo:-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.