BSDinstall question

Installing and upgrading FreeBSD.

BSDinstall question

Postby hitest » 08 Oct 2011, 20:52

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
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby da1 » 12 Oct 2011, 17:05

To answer your question: no. And from my point, this is a setback.
da1
Member
 
Posts: 738
Joined: 02 Sep 2009, 09:35
Location: Berlin,DE

Postby wblock@ » 12 Oct 2011, 17:46

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 [man=8]fdisk[/man], [man=8]bsdlabel[/man], and [man=8]boot0cfg[/man] manually.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby da1 » 12 Oct 2011, 17:50

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.
da1
Member
 
Posts: 738
Joined: 02 Sep 2009, 09:35
Location: Berlin,DE

Postby wblock@ » 12 Oct 2011, 18:04

[man=8]sysinstall[/man], 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.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby hitest » 13 Oct 2011, 14:23

wblock@ wrote:[man=8]sysinstall[/man], 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.


Thanks for the replies! I have not as of yet attempted to invoke sysinstall in FreeBSD Beta 3 as I did a full install. I previously had good luck with sysinstall in that when I directed it to leave the MBR untouched...it did for me(thanks for the information regarding the MBR bug).
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
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby wblock@ » 13 Oct 2011, 14:55

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.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby hitest » 13 Oct 2011, 15:40

wblock@ wrote: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.


Thank you wblock@,

I appreciate your insights!
hitest
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby slackhead » 13 Oct 2011, 18:04

I take it (re)installing lilo after installing FreeBSD would work, or not?
slackhead
Junior Member
 
Posts: 15
Joined: 15 Jun 2010, 11:23

Postby wblock@ » 13 Oct 2011, 20:14

It would depend on how the disk is set up. If LILO can handle GPT, or if the FreeBSD install uses MBR, probably.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby pkubaj » 13 Oct 2011, 21:25

If one can't choose with bsdinstall to leave MBR untouched, then FreeBSD is (at least in one aspect) just like Windows.
pkubaj
Member
 
Posts: 378
Joined: 02 Jun 2010, 21:49

Postby wblock@ » 13 Oct 2011, 22:26

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.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby hitest » 14 Oct 2011, 03:33

wblock@ wrote:There's a new chapter on bsdinstall in the Handbook. It's not really polished yet, but we've been working hard on it.


Yes. I've read that chapter, it is very good. Thanks for the link! I know you guys are extremely busy as the new release approaches, but, it would be very helpful if an addition or a hint could be put into the new handbook detailing how to go about setting up a dual boot between other OSs and FreeBSD 9.0.
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
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby wblock@ » 14 Oct 2011, 05:23

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.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby hitest » 14 Oct 2011, 11:13

wblock@ wrote: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.


Thank you, wblock@! I appreciate that a lot. :)
hitest
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby slackhead » 14 Oct 2011, 13:04

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-grub-on-freebsd-with-gpt-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: Select all
#!/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                                     
  }


This will give 3 menu choices of plain FreeBSD, FreeBSD /boot/loader and Slackware.
slackhead
Junior Member
 
Posts: 15
Joined: 15 Jun 2010, 11:23

Postby slackhead » 14 Oct 2011, 16:12

Just a note about what I did from that howto:

Code: Select all
# grub-install --modules=part_gpt /dev/ad0


edit [FILE]/usr/local/etc/grub.d/40_custom[/FILE]

Code: Select all
# grub-mkconfig -o /boot/grub/grub.cfg


[FILE]grub-mkconfig[/FILE] will pick up FreeBSD automatically.
[FILE]/usr/local/etc/grub.d/40_custom[/FILE] will contain the extra OS's and FreeBSD boot loader if req'd
slackhead
Junior Member
 
Posts: 15
Joined: 15 Jun 2010, 11:23

Postby hitest » 22 Oct 2011, 14:56

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
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby wblock@ » 22 Oct 2011, 16:17

hitest wrote: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?


Probably not by me, but others could be working on it. A separate article on multi-booting might be more appropriate.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby hitest » 22 Oct 2011, 16:44

wblock@ wrote:Probably not by me, but others could be working on it. A separate article on multi-booting might be more appropriate.


That sounds good to me! Thank you, wblock@. :)
hitest
User avatar
hitest
Member
 
Posts: 235
Joined: 16 Nov 2008, 17:13
Location: B.C., Canada

Postby slackhead » 24 Oct 2011, 18:54

slackhead wrote:
Code: Select all
# grub-install --modules=part_gpt /dev/ad0



This should have said [FILE]/dev/ada[/FILE].
slackhead
Junior Member
 
Posts: 15
Joined: 15 Jun 2010, 11:23

Postby slackhead » 25 Oct 2011, 09:22

Sorry I was correct the first time, it is [FILE]ad0[/FILE].
slackhead
Junior Member
 
Posts: 15
Joined: 15 Jun 2010, 11:23


Return to Installing & Upgrading

Who is online

Users browsing this forum: trh411, troberts and 1 guest