The officially official Devuan Forum!

You are not logged in.

#1 2018-12-29 14:48:37

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Dual Boot FreeBSD and DEVUAN ?

Hello,

The host is a notebook Acer, i386, with two major operating systems, as follows.

I have the following partitions:
- /dev/sda1 with Devuan Stable (16GB, installed and bootable)
- /dev/sda2 with FreeBSD (~900GB, installed, works, but boots with chainloader)
- /dev/sda3 with Swap (the rest).

Both systems are working as they should.

Grub is working and it is on the first partition.
Grub (on Linux Devuan /dev/sda1) is intended to allow to boot both operating systems. 

Which Grub content would you recommend to boot FreeBSD for  /boot/grub/grub.conf (/dev/sda1) ? 

For Linux, it works since grub does the job, i.e. a regular linux / initrd.
I considered using the chainloader +1 for BSD, but maybe it could be better idea.

Thank you for your inputs

menuentry 'FreeBSD Unix Operating System on sda2' { 
	insmod utf
	set root=(hd0,2)
	chainloader +1
}

menuentry 'Rescue OS (Devuan GNU/Linux sda1)' --class devuan --class gnu-linux --class gnu { 
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	echo	'Loading Linux 4.9.0-6-686-pae Rescue System ...'
	linux	/boot/vmlinuz-4.9.0-6-686-pae root=/dev/sda1 rw 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.9.0-6-686-pae
}

Last edited by spartrekus (2018-12-29 15:07:51)

Offline

#2 2018-12-29 17:55:25

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Dual Boot FreeBSD and DEVUAN ?


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

Board footer