The officially official Devuan Forum!

You are not logged in.

#1 2018-08-25 02:22:37

astheroth
Member
From: Puerto Montt, Chile
Registered: 2018-07-29
Posts: 5  
Website

Dualboot Devuan with FreeBSD

Well, Days ago I decided to give the Jump  from Linux Mint 17.03, my main distro since 2015 to Devuan ASCII.  In my last configuration I had installed FreeBSD, Windows7, and Haiku alongside Mint. To Install Devuan I decided to format all the HD and then adding the other OS. My first one was FreeBSD, but Devuan grub says it doesn't recognize the filesystem.

At the moment my /etc/grub.d/custom_40


menuentry 'FreeBSD' --class freebsd --class bsd --class os {
        insmod part_msdos
        insmod ufs2
        set root="(hd0,msdos1,bsd1 >)"
        kfreebsd /boot/loader
}


Perhaps the fourth or fifth combination I tried hmm

Another important data.

Making

fdisk -l

gives:

#  fdisk -l
Disk /dev/sda: 298 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x9b3fc34f
Disposit.  Boot      Start     End      Sectors    Size Id System
/dev/sda1  *             64 201326655 201326592    96G a5 FreeBSD
/dev/sda3         201820158 625141556 423321399 201,9G  5 Extended
/dev/sda5         461301760 467159039   5857280   2,8G 82 Linux swap / Solaris
/dev/sda6         467161088 625141556 157980469  75,3G 83 Linux

Any idea? I think that devuan's grub doesn't support UFS but, I am not sure


<<Lupus est homo homini, non homo, quom qualis sit non novit>>

Offline

#2 2018-10-09 09:49:43

Devuman
Member
Registered: 2018-02-27
Posts: 1  

Re: Dualboot Devuan with FreeBSD

Offline

#3 2018-10-09 10:56:55

HextorBRX
Member
Registered: 2017-08-20
Posts: 78  

Re: Dualboot Devuan with FreeBSD

Hello

Read 12.2.1. The Boot Manager: https://www.freebsd.org/doc/handbook/bo … ction.html
I have done this but it was a while ago and it is all blurry now. I can tell you this:
1. Install Devuan first without GRUB
2. Then, install FreeBSD with boot0
This ought to do it. It is fairly easy as long as you don't install GRUB.

Offline

#4 2018-10-09 12:27:41

MiyoLinux
Member
Registered: 2016-12-05
Posts: 736  

Re: Dualboot Devuan with FreeBSD

I dual-boot Devuan and FreeBSD...well, actually I multi-boot several Devuan-based distros and FreeBSD. The way that I did it may be unconventional though...

I reformatted my hardrive with all of the partitions that I knew I wanted. I formatted the partition that I wanted to use for FreeBSD as fat32 (which was /dev/sda3). I then installed my main OS on /dev/sda2 (/dev/sda1 is swap). I also used Grub.

Installed FreeBSD on the fat32 partition, and rebooted to my main OS. Added the following to the file /etc/grub.d/40_custom

menuentry "FreeBSD" {
set root='(hd0,3)'
chainloader +1
}

Notice the (hd0,3) above...the 3 is the number of the partition that I installed FreeBSD on...your partition number may vary.

After adding that to the file, I saved and closed it. Then I ran...

update-grub

Rebooted, and FreeBSD was listed in the Grub. smile

This worked well for me, but I don't know if it's the best method. tongue

Edited to add: I also chose UFS for my FreeBSD install rather than ZFS.

Last edited by MiyoLinux (2018-10-09 12:31:15)


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#5 2018-10-10 06:31:46

astheroth
Member
From: Puerto Montt, Chile
Registered: 2018-07-29
Posts: 5  
Website

Re: Dualboot Devuan with FreeBSD

Thank you smile


<<Lupus est homo homini, non homo, quom qualis sit non novit>>

Offline

#6 2018-10-10 16:01:55

Ogis1975
Member
Registered: 2017-04-21
Posts: 39  

Re: Dualboot Devuan with FreeBSD

Hello astheroth. Check this nice tutorial: Dual booting Linux and FreeBSD. Good luck!

Offline

Board footer