LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-12-2019, 05:29 PM   #1
Indyman
LQ Newbie
 
Registered: Mar 2018
Distribution: Slackware-14.2-current
Posts: 5

Rep: Reputation: Disabled
[SOLVED] Dualboot Slackware and FreeBSD on separate drives with grub2 - FreeBSD overrides grub


Hello fellow Slackers,
I want to dualboot Slackware and FreeBSD (I know, I know) using grub2. The OS are on different drives. I installed Slackware and grub, and edited 40_custom with my FreeBSD parameters, then grub-mkconfig -o /boot/grub.grub.cfg. Next I installed FreeBSD 12.0 on a second HD. When I boot I get the FreeBSD bootmanager; it has somehow overwritten or overridden the grub bootloader. When I uninstall FreeBSD the grub menu appears on reboot. So...how do I bypass FreeBSD's bootloader and use grub instead? Did my FreeBSD install over-write the MBR? (sorry forgot to mention I have older hardware and can only use MBR and no GPT; also UFS on FreeBSD). It must not have since I get grub back when I uninstall FreeBSD. There was no option to install FreeBSD without a bootloader. I know I've gotten this to work successfully in the past but can't remember what I did. What am I missing? Can I somehow delete the FreeBSD bootloader? I did quite a bit of searching but couldn't find where people had installed the OSs on separate drives. Thank you! Jim

Last edited by Indyman; 08-13-2019 at 04:37 PM. Reason: marking as solved
 
Old 08-12-2019, 09:02 PM   #2
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, Manjaro (for gaming)
Posts: 104

Rep: Reputation: 88
If you can't boot into Slackware, boot with a slackware DVD and jump start your system using it as your boot loader. e.g. it tells you what to do right above the prompt when you boot with one:

huge.s root=/dev/sd?? noinitrd

Then simply reinstate grub again in the MBR.

grub-install /dev/sda

or whatever your boot device is.

P.S. When booting FreeBSD from lilo or grub I used to just chainload it like a Windows partition so that should work if you've already set that up in grub.cfg, after putting grub's MBR component back.

Last edited by TheRealGrogan; 08-12-2019 at 09:07 PM.
 
Old 08-13-2019, 12:17 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 8,917

Rep: Reputation: Disabled
Probably your BIOS is set up to try to boot first off the drive where FreeBSD is installed and only if that fails on the drive where Slackware is installed. This can usually be changed from the BIOS setup menu.

Last edited by Didier Spaier; 08-13-2019 at 09:43 AM.
 
Old 08-13-2019, 08:43 AM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,266

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
I second check you bios to see if you can change the boot order. If that isn't possible for what ever reason maybe open the case and swap the cables on the drives.
 
Old 08-13-2019, 04:33 PM   #5
Indyman
LQ Newbie
 
Registered: Mar 2018
Distribution: Slackware-14.2-current
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks Everyone,
Turns out it was the boot order in the BIOS(!) Once I changed the boot order to have the Slackware disk boot first, it booted into grub and I was also able to access my
FreeBSD system. The fact that when I removed FreeBSD that the machine booted from grub on the Slackware disk should have indicated to me that the MBR had not been overwritten (good idea though TheRealGrogan). I'm marking this one solved. Thanks again - LQ rocks!!

Last edited by Indyman; 08-13-2019 at 04:35 PM.
 
  


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
Autopart error while trying to create dualboot Windows 8.1 with Fedora 26 on separate drives Thomas. Fedora - Installation 2 09-19-2017 08:55 AM
[SOLVED] Dualboot Fedora and Freebsd with Grub2 LiFo14 Linux - Software 2 11-04-2016 07:55 AM
[SOLVED] Dualboot Fedora and Freebsd with Grub2 LiFo14 Linux - Laptop and Netbook 1 11-02-2016 02:10 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Trouble partitioning slaclware 10.2 azazel x Linux - Newbie 3 12-02-2005 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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