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 am having issues getting Grub2 to work to allow me to dual boot with Slackware 14.1 . Here is info from the terminal I hope this helps sort it out as I have freebsd listed in the menu but when I select it the computer just reboots.
Quote:
bash-4.2# os-prober
No volume groups found
/dev/sda1:unknown Linux distribution:Linux:linux
/dev/sda3:Slackware Linux (Slackware 14.1):Slackware:linux
bash-4.2#
I edited the /etc/grub.d/40_custom file and added this
Quote:
menuentry "FreeBSD" --class freebsd --class bsd --class os {
insmod ufs2
insmod bsd
set root=(hd0,1)
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw
set kFreeBSD.hw.psm.synaptics_support=1
}
There are some variations if I am doing something wrong please let me know its frustrating me bigtime I have done all the standard updating steps for grub like when I add a new kernel etc to no avail please help cheers
I run both FreeBSD and Slackware, but not on the same machine. My next step would be to install the Slackware Grub loader. See here. From there try to add FreeBSD.
For troubleshooting, I've set up a camera to capture the screen as FreeBSD boots.
Which did you install first, Slackware or FreeBSD?
I run both FreeBSD and Slackware, but not on the same machine. My next step would be to install the Slackware Grub loader. See here. From there try to add FreeBSD.
For troubleshooting, I've set up a camera to capture the screen as FreeBSD boots.
Which did you install first, Slackware or FreeBSD?
HTH.
-JJ
I sorted it but using a camera is a smart idea I oten use my smartphone camera to catch the text on my linux startups if I need to +1 to ingenious thinking as the text does scroll really fast.
You
might also give Grub's vanilla chain loader a try. I recall once using
Grub to dual boot with OpenBSD and the OpenBSD specific Grub loader
didn't work while the chain loader did. (If I were better I would have
debugged that.) I'm now dual booting Slackware and OpenBSD using Lilo
using its chain loader which works perfectly.
The problem with using Grub is, Grub usually doesn't work with FreeBSD without patches. PC-BSD got it to work somehow with 2.02beta2(?) I think, but they also have a special 40-custom file as well.
Because of this, Grub isn't well suited for usage with FreeBSD even if you use the Slackware or BSD/ports version. The Slackware version is actually still 2.00 so it doesn't detect UFS2 or ZFS well. 2.02beta2 is supposed to have some better ability to detect ZFS and UFS2 partitions, but I haven't heard too much on the subject, even around FreeBSD's mailing list.
The best, and actual recommended FreeBSD option, is to use the FreeBSD default boot0 bootloader which will do the work for you better than Grub will.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by thirdm
I'm now dual booting Slackware and OpenBSD using Lilo
using its chain loader which works perfectly.
Same here, but I installed FreeBSD.
Lilo doesn't work with zfs (according to PC-BSD documentation).
I don't know about ufs2, but with ufs Lilo works ok.
I might have to try boot0 instead of Grub I have also tried Lilo but to no use either it had no issues with Slackware but when it come to finding my freebsd partition it doesn't exist.
I think it would be helpful to know exactly how your disk(s) is partitioned and where and how FreeBSD is installed?
If you installed FreeBSD to GPT (often the default if you're using the whole disk with auto partitioning) then boot0cfg is not going to be much use. For GPT, multi-booting is going to be harder. I believe that grub2, installed in Linux, should be able to chainload to FreeBSD's bootloader, rather than you trying to bootstrap directly to the kernel.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by caveman86
I might have to try boot0 instead of Grub I have also tried Lilo but to no use either it had no issues with Slackware but when it come to finding my freebsd partition it doesn't exist.
If you installed FreeBSD in a primary partition with ufs (or ufs2 according to ReaperX7),
it would work like this, just like a windows partition configuration.
In my case, I installed to a usb hard disk (/dev/sdb) in a second primary partition.
When I boot FreeBSD I get that 'mountroot>' prompt. My first idea was that some usb module
was missing, but the problem was partitions naming. I just enter 'ufs:da0s2' (something like
this) and FreeBSD boots ok.
Slackware64 is installed in the first primary partition (/dev/sdb1) with Lilo installed
at the MBR of /dev/sdb.
This machine is a notebook with Vista in /dev/sda , so Vista always boots when the usb hd
isn't plugged in.
With the usb hd plugged in, Lilo takes control.
All this is with old MBR, I don't have experience with GPT or Lilo with EFI.
If he used ZFS then LILO won't work period. He'll have to use a patched Grub2 or boot0. Grub2 even with 2.02~beta2 still has issues detecting ZFS properly, even when built with ZFS support with BSD or Linux (ZFS-On-Linux), and PC-BSD has a heavily patched Grub2-2.02~beta2 implementation. The native FreeBSD port has issues as well.
For this, boot0 is often the most recommended bootloader to use for FreeBSD installs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.