22c32 [Solved] BSDinstall question - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old October 8th, 2011, 21:52
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default BSDinstall question

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
Reply With Quote
  #2  
Old October 12th, 2011, 18:05
da1 da1 is offline
Member
 
Join Date: Sep 2009
Location: Berlin,DE
Posts: 659
Thanks: 24
Thanked 48 Times in 44 Posts
Default

To answer your question: no. And from my point, this is a setback.
Reply With Quote
  #3  
Old October 12th, 2011, 18:46
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

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.
Reply With Quote
  #4  
Old October 12th, 2011, 18:50
da1 da1 is offline
Member
 
Join Date: Sep 2009
Location: Berlin,DE
Posts: 659
Thanks: 24
Thanked 48 Times in 44 Posts
Default

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.
Reply With Quote
  #5  
Old October 12th, 2011, 19:04
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

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.
Reply With Quote
  #6  
Old October 13th, 2011, 15:23
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default

Quote:
Originally Posted by wblock@ View Post
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.
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
FreeBSD 9.1
Reply With Quote
  #7  
Old October 13th, 2011, 15:55
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

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.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
hitest (October 13th, 2011)
  #8  
Old October 13th, 2011, 16:40
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default

Quote:
Originally Posted by wblock@ View Post
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
FreeBSD 9.1
Reply With Quote
  #9  
Old October 13th, 2011, 19:04
slackhead slackhead is offline
Junior Member
 
Join Date: Jun 2010
Posts: 15
Thanks: 1
Thanked 5 Times in 3 Posts
Default

I take it (re)installing lilo after installing FreeBSD would work, or not?
Reply With Quote
  #10  
Old October 13th, 2011, 21:14
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

It would depend on how the disk is set up. If LILO can handle GPT, or if the FreeBSD install uses MBR, probably.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
hitest (October 13th, 2011)
  #11  
Old October 13th, 2011, 22:25
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 302
Thanks: 22
Thanked 40 Times in 30 Posts
Default

If one can't choose with bsdinstall to leave MBR untouched, then FreeBSD is (at least in one aspect) just like Windows.
Reply With Quote
  #12  
Old October 13th, 2011, 23:26
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

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.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
hitest (October 14th, 2011)
  #13  
Old October 14th, 2011, 04:33
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default

Quote:
Originally Posted by wblock@ View Post
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
FreeBSD 9.1
Reply With Quote
  #14  
Old October 14th, 2011, 06:23
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

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.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
hitest (October 14th, 2011)
  #15  
Old October 14th, 2011, 12:13
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default

Quote:
Originally Posted by wblock@ View Post
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
FreeBSD 9.1

Last edited by DutchDaemon; October 15th, 2011 at 02:44.
Reply With Quote
  #16  
Old October 14th, 2011, 14:04
slackhead slackhead is offline
Junior Member
 
Join Date: Jun 2010
Posts: 15
Thanks: 1
Thanked 5 Times in 3 Posts
Default

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                                     
  }
This will give 3 menu choices of plain FreeBSD, FreeBSD /boot/loader and Slackware.
Reply With Quote
The Following 2 Users Say Thank You to slackhead For This Useful Post:
hitest (October 14th, 2011), wblock@ (October 16th, 2011)
  #17  
Old October 14th, 2011, 17:12
slackhead slackhead is offline
Junior Member
 
Join Date: Jun 2010
Posts: 15
Thanks: 1
Thanked 5 Times in 3 Posts
Default

Just a note about what I did from that howto:

Code:
# grub-install --modules=part_gpt /dev/ad0
edit /usr/local/etc/grub.d/40_custom

Code:
# grub-mkconfig -o /boot/grub/grub.cfg
grub-mkconfig will pick up FreeBSD automatically.
/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
Reply With Quote
The Following 2 Users Say Thank You to slackhead For This Useful Post:
hitest (October 14th, 2011), wblock@ (October 16th, 2011)
  #18  
Old October 22nd, 2011, 15:56
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default

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
Reply With Quote
  #19  
Old October 22nd, 2011, 17:17
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,760 Times in 1,457 Posts
Default

Quote:
Originally Posted by hitest View Post
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.
Reply With Quote
The Following 2 Users Say Thank You to wblock@ For This Useful Post:
hitest (October 22nd, 2011), slackhead (October 24th, 2011)
  #20  
Old October 22nd, 2011, 17:44
hitest's Avatar
hitest hitest is offline
Member
 
Join Date: Nov 2008
Location: B.C., Canada
Posts: 171
Thanks: 44
Thanked 12 Times in 12 Posts
Default

Quote:
Originally Posted by wblock@ View Post
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
FreeBSD 9.1

Last edited by DutchDaemon; October 23rd, 2011 at 01:55.
Reply With Quote
  #21  
Old October 24th, 2011, 19:54
slackhead slackhead is offline
Junior Member
 
Join Date: Jun 2010
Posts: 15
Thanks: 1
Thanked 5 Times in 3 Posts
Default

Quote:
Originally Posted by slackhead View Post
Code:
# grub-install --modules=part_gpt /dev/ad0
This should have said /dev/ada.

Last edited by DutchDaemon; October 25th, 2011 at 00:47.
Reply With Quote
  #22  
Old October 25th, 2011, 10:22
slackhead slackhead is offline
Junior Member
 
Join Date: Jun 2010
Posts: 15
Thanks: 1
Thanked 5 Times in 3 Posts
Default

Sorry I was correct the first time, it is ad0.

Last edited by DutchDaemon; October 25th, 2011 at 16:56.
Reply With Quote
The Following User Says Thank You to slackhead For This Useful Post:
hitest (October 25th, 2011)
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

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


All times are GMT +1. The time now is 10:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0