22c32
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I've done a preliminary search for this on google and here on this forum. I would like to set-up a dual boot between Slackware and FreeBSD 9.0. I've successfully done this several times before with earlier versions of FreeBSD. With sysinstall in FreeBSD 8.x it allows you to opt out of installing the FreeBSD boot loader which is what I would like to do with FreeBSD 9.0. I want LILO to boot-up FreeBSD which I will set-up in lilo.conf on my Slackware partition.
Does the BSDinstaller have the option of allowing me opt out of installing the FreeBSD boot loader? Thank you in advance for any and all replies. Edit: added later. I've decided to opt for a full install of FreeBSD 9.0.
__________________
hitest FreeBSD 9.1 Last edited by hitest; October 9th, 2011 at 23:48. Reason: Addition |
|
#2
|
|||
|
|||
|
To answer your question: no. And from my point, this is a setback.
|
|
#3
|
||||
|
||||
|
There may actually be a way to do it through the bsdinstall partition editor, but I don't know. The "shell" option for partitioning would allow using fdisk(8), bsdlabel(8), and boot0cfg(8) manually.
|
|
#4
|
|||
|
|||
|
And what's the point of having a new a shinny thing while you need to manually do stuff that were so nicely done in the past by an older and worst installer than the current.
I think the whole idea is to have something better, and not something better only for someone or some things. |
|
#5
|
||||
|
||||
|
sysinstall(8), despite ongoing maintenance, was broken in several ways. One particular bug was that when told not to mess with the MBR, it still sometimes did. bsdinstall is still in its infancy. As such, it's a good time to request features.
Two things to note: * bsdinstall isn't meant to be a feature-for-feature replacement for sysinstall. * sysinstall is still on the 9.0-BETA images, and I suspect it will still run if you select "Shell" when booting. |
|
#6
|
||||
|
||||
|
Quote:
It looks like FreeBSD 9.0 will soon be released. If sysinstall is absent I will explore manual options for setting up a dual boot. I suspect it is too late to request that sysinstall still be included as an optional installer choice? That is, BSDinstall could be the default, and you could have dropping to a shell and sysinstall. If that is not possible then perhaps an addition to the handbook detailing how to leave the MBR untouched using fdisk and a shell prompt? I know for most FreeBSD users this will not be an issue, but, there are Linux users out there like me who also run FreeBSD. Thank you. George
__________________
hitest FreeBSD 9.1 |
|
#7
|
||||
|
||||
|
I really doubt sysinstall would be offered as an alternate installer. Right now, it's vestigial. So concentrate on discovering how to do things with bsdinstall, or getting features added.
GPT complicates the multi-boot thing. I'm pretty sure boot0 can't handle it at all. So it's not just a lack of the feature in bsdinstall, but also new technology (GPT) obsoleting old stuff. |
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
hitest (October 13th, 2011) | ||
|
#8
|
||||
|
||||
|
Quote:
I appreciate your insights!
__________________
hitest FreeBSD 9.1 |
|
#9
|
|||
|
|||
|
I take it (re)installing lilo after installing FreeBSD would work, or not?
|
|
#10
|
||||
|
||||
|
It would depend on how the disk is set up. If LILO can handle GPT, or if the FreeBSD install uses MBR, probably.
|
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
hitest (October 13th, 2011) | ||
|
#11
|
|||
|
|||
|
If one can't choose with bsdinstall to leave MBR untouched, then FreeBSD is (at least in one aspect) just like Windows.
|
|
#12
|
||||
|
||||
|
Now, now, let's not say things we'll regret later. bsdinstall approaches partitioning in three ways. There's auto, which sets up a GPT partition scheme on a whole disk, or tries to create additional partitions in unused space on the drive. There's manual, which lets you set up whatever you want, including not just MBR but also APM and VTOC8, among others. And there's the shell, where you can do anything you like with any programs.
There's a new chapter on bsdinstall in the Handbook. It's not really polished yet, but we've been working hard on it. Installing VirtualBox and booting one of the later FreeBSD-9 beta or RC images is an easy way to try it, also. Remember that FreeBSD is yours, too, and problem reports and suggestions help to improve it not just for you but for everyone. |
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
hitest (October 14th, 2011) | ||
|
#13
|
||||
|
||||
|
Quote:
I am happily running FreeBSD 9.0 beta three. I would like to run a dual boot again. Thank you for responding to my queries!
__________________
hitest FreeBSD 9.1 |
|
#14
|
||||
|
||||
|
I'll think about a dual-boot section. The short version would be
1. Install other OS and a multi-boot loader like grub, leave unpartitioned space on the drive. 2. Install FreeBSD in unpartitioned space. |
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
hitest (October 14th, 2011) | ||
|
#15
|
||||
|
||||
|
Quote:
__________________
hitest FreeBSD 9.1 Last edited by DutchDaemon; October 15th, 2011 at 02:44. |
|
#16
|
|||
|
|||
|
Ok I think I've got it working. First I tried installing grub2 from slackware but that failed miserably. So then I tried from inside FreeBSD using this guide:
http://www.isysop.com/installing-gru...pt-partitions/ Now the patches mentioned there are already active in the grub2 port so you can ignore those and concentrate on editing /usr/local/etc/grub.d/40_custom and running grub-mkconfig. For some reason it wasn't working and spat out errors such as 'no such partition' or 'UUID doesn't exist' (when I tried using UUID). To try to find why UUID wasn't working I installed sysutils/e2fsprogs so I could have a look at blkid. Anyway for whatever reason it started working with just partition numbers after that so I'm wonder if one of those tools helped. So this is my /usr/local/etc/grub.d/40_custom with entry for FreeBSD boot loader and slackware: Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "FreeBSD /boot/loader" --class freebsd --class bsd --class os {
insmod ufs2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 4e926d83ecd1db78
kfreebsd /boot/loader
}
menuentry 'Slackware' --class slackware --class gnu-linux --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,2)'
linux /boot/vmlinuz root=/dev/sdb2 ro
}
|
|
#17
|
|||
|
|||
|
Just a note about what I did from that howto:
Code:
# grub-install --modules=part_gpt /dev/ad0 Code:
# grub-mkconfig -o /boot/grub/grub.cfg /usr/local/etc/grub.d/40_custom will contain the extra OS's and FreeBSD boot loader if req'd Last edited by DutchDaemon; October 15th, 2011 at 02:45. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#18
|
||||
|
||||
|
I was wondering if an addition will be included in the Handbook on how to set-up a dual boot with Linux or other OSs when FreeBSD 9.0 is released? I very-much appreciate slackhead's contribution in this area.
I am not trying to rush the process, I am just curious(I will wait). FreeBSD 9.0 beta 3 functions perfectly for me as a stand alone OS. I would like to be able to dual boot Linux/FreeBSD again. Thank you for your support!
__________________
hitest FreeBSD 9.1 |
|
#19
|
||||
|
||||
|
Probably not by me, but others could be working on it. A separate article on multi-booting might be more appropriate.
|
|
#20
|
||||
|
||||
|
Quote:
__________________
hitest FreeBSD 9.1 Last edited by DutchDaemon; October 23rd, 2011 at 01:55. |
|
#21
|
|||
|
|||
|
This should have said /dev/ada.
Last edited by DutchDaemon; October 25th, 2011 at 00:47. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BsdInstall FreeBSD-9.0-BETA2 | leoandru | Installing & Upgrading | 9 | October 27th, 2011 11:26 |
| 9.0 Beta 2: bsdinstall and ZFS on Root | roddi | Installing & Upgrading | 3 | September 17th, 2011 23:03 |
| IPFW question, and lastcomm question | Ofloo | Firewalls | 0 | August 14th, 2011 12:30 |
| bsdinstall - testers wanted | joel@ | Installing & Upgrading | 37 | April 21st, 2011 19:05 |
| [Solved] question about pre setup for jails - buildworld question | pgmrdlm | General | 9 | May 14th, 2010 16:39 |