213ed Installation of FreeBSD onto a Logical Partition - Page 4 - 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
  #76  
Old May 22nd, 2009, 01:50
jessa_jr jessa_jr is offline
Junior Member
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default try this tomorrow

@Panarchy

I will try this tomorrow and I'll give you feedback if I can boo it using easybcd.

Thanks.
Reply With Quote
  #77  
Old May 22nd, 2009, 10:04
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Thumbs up

I know it's different to the usual setup, but no need to scare your system!

Reply With Quote
  #78  
Old May 22nd, 2009, 13:50
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

Lovely. I just tried Asus' BIOS update tool in vista 64, which it supposedly supports: In short, it doesn't, and I need to rescue or replace my MB. This might cause some delays.
Reply With Quote
  #79  
Old May 23rd, 2009, 04:59
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default

*beep**beep**beep**beep*, I mean damn!

That's terrible!!!

Whenever I do BIOS upgrades I always put it on a USB then reboot and do it that way. You may still be able to recover with that method. I think press F2.

Good luck!
Reply With Quote
  #80  
Old May 23rd, 2009, 11:33
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

It is a bit annoying, yeah - good thing I also have a laptop.
I've tried the most obvious recovery things - but it doesn't seem too keen on working. Will try a few things today, or it's downtown to buy a new MB.

(I'll RMA this one if I do, then use it to build a server or something when I get it back.)
Reply With Quote
  #81  
Old May 24th, 2009, 02:28
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default

RMA? Is that warranty?

Excellent

Keep us informed!
Reply With Quote
  #82  
Old May 24th, 2009, 03:12
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

RMA. Essentially, I send it in and will most likely get it back after they fix it - if that's not possible, they usually send a new identical one. So yes, warranty. (2 years and 2 months into a 3 year warranty, if I'm not mistaken.)

Anyway, I bought another MB - a P5Q-E. Time will show how it works with FreeBSD (some people have had problems with the sata controllers; some claim it works fine); for now I'm just happy I didn't have to reinstall vista.

This means I have a working 64-bit OS for my VMs again, so I'll try to finish tomorrow. An annoying segfault bug in grub2 just got fixed in SVN as well, which is a bonus.

Last edited by Djn; May 24th, 2009 at 03:36.
Reply With Quote
  #83  
Old May 25th, 2009, 01:40
jessa_jr jessa_jr is offline
Junior Member
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default @neogrub still dont work after a x times of boot kernel panic

@Panarchy

I still dont get it when I install the neogrub in the easybcd and It keep installing in the xp partition not in the root partition of the freebsd? How will I do it?

After a couple times of reboot I experience kernel panic I cant boot in any os. This is the second times it happen to me after installing the freebsd in the logical drive. I cant use also gparted it will just shutdown. The solution I did in the first is doing a master-slave hd in my other pc box and format using symantec partition manager. I will try this again because I run out of time yesterday.

Hope you can help me.

Thanks.
Reply With Quote
  #84  
Old May 25th, 2009, 08:08
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

One issue: If FreeBSD is indeed in a logical partition, it isn't enough to chainload it. You actually have to make grub load and start the FreeBSD kernel for you - so you need a grub that understands BSD-style partitions, UFS, and FreeBSD kernels. I know GRUB2 does (that's why I use it), but I can't talk for neoGRUB.
Reply With Quote
  #85  
Old May 26th, 2009, 07:52
jessa_jr jessa_jr is offline
Junior Member
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default grub2 installation

So that means I cannot use the easybcd to load it, if I will install grub2 to the root partition and call the partition using easybcd do you think I can load it.

How will Im going to install grub2 to load it.
Reply With Quote
  #86  
Old May 27th, 2009, 00:05
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

If you can install grub2 onto any partition, then yes; that should work.
One option would be to create a small ext3 partition with a linux boot CD, and install grub2 onto that from there - slightly messy, but I would expect it to work.

Alternatively, if you have a linux isntalled already you can do it from there, and to that partition.
There's also the possibility that grub2 might compile and work on freeBSD with an UFS partition, but I honestly don't know. I've been way busy, so I can't promise looking at it very soon ...
Reply With Quote
  #87  
Old May 27th, 2009, 10:16
jessa_jr jessa_jr is offline
Junior Member
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default ubuntu and fedora installed

@DJN

I have fedora kde and ubuntu installed on my pc but I dont know what to do, If you can just put me to the right direction maybe you can help me out.

Thanks.
Reply With Quote
  #88  
Old May 30th, 2009, 00:25
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default

Oh, you already have the Linux's installed?

Well that makes things much simpler. In fact, I have the same Linux's as you installed.

Simply PATCH the latest GRUB2 with the FreeBSD 64-bit patch, (which I requested, thanks again Bean), then install it within the BootSector of your Linux partition(s).
Reply With Quote
  #89  
Old June 14th, 2009, 04:01
fbsduser's Avatar
fbsduser fbsduser is offline
Junior Member
 
Join Date: Mar 2009
Posts: 46
Thanks: 1
Thanked 1 Time in 1 Post
Default

Neogrub is based on vanilla grub 0.9x hence it won't work for BSD on a logical partition.
Reply With Quote
  #90  
Old June 17th, 2009, 22:23
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default NeoGRUB

I thought that NeoGRUB was based off of Grub4DOS?

Also, Djn, do you have a working computer now?

I'd really like to see the finished tutorial

Thanks,

Panarchy
Reply With Quote
  #91  
Old June 18th, 2009, 08:24
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

I do, yes - what I've been lacking lately is time and energy. I'll see what I can do.
Reply With Quote
  #92  
Old June 19th, 2009, 07:44
jessa_jr jessa_jr is offline
Junior Member
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Still cant do it

@panarchy,

I still cant do it instead I just install it in the primary partition and I have a quad boot machine xp, vista, opensolaris and freebsd using easybcd. I will install ubuntu, fedora, opensure, windows seven and macos this weekend and hope dont messed it.

But if sir DJN can make a good tutorial for us I will try it again to have a running freebsd in the logical partition.

@fbsduser

Thats why I cant make it run using easybcd. Thanks for the comment.
Reply With Quote
  #93  
Old June 20th, 2009, 02:39
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default

Can't GRUB2 -> with FreeBSD 64-bit patches -> be installed onto the FreeBSD Logical Partition?

In which case it could be chainloaded through the BCD [EasyBCD], GRUB4DOS, GRUB1, GRUB2 or NeoGRUB, right?

Thanks Djn, really looking forward to a complete tutorial.

Panarchy
Reply With Quote
  #94  
Old July 24th, 2009, 03:18
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

I'll have to dig up the relevant virtualboxes and finish this soon. x)
First, though - I think I'll see if I can build and install grub2 from FreeBSD; that would make things a touch cleaner.
Reply With Quote
  #95  
Old July 24th, 2009, 14:35
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default

Okay, looking forward to it's completion!

Thanks!
Reply With Quote
  #96  
Old December 2nd, 2009, 15:35
xelalien xelalien is offline
Junior Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about implementing the steps used in this guide?

First, installing FreeBSD on a primary, then backing up the disk first (for other OS installations), then restore the BSD disk image into a logical drive, then editing the PT (using ptedit), and setting up the bootloader (GRUB4DOS)...

What do you think?
Reply With Quote
  #97  
Old December 6th, 2009, 21:56
Panarchy Panarchy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 74
Thanks: 6
Thanked 1 Time in 1 Post
Default

Well for one the GRUB4DOS Bootloader doesn't support ZFS partitions or calling the FreeBSD bootloader.

However, now that a module has been written for GRUB, one can use that instead of the FreeBSD bootloader, which can be easily chainloaded and booted from logical partitions, through your method or Djn's.

On that note, Djn, did you finish the guide?

Regards,

Panarchy
Reply With Quote
  #98  
Old August 9th, 2011, 22:38
nearsourceit's Avatar
nearsourceit nearsourceit is offline
Junior Member
 
Join Date: Jun 2009
Location: Hamilton, Ontario
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Djn View Post
Code:
Fixit# newfs /dev/ad0s1s3a
Fixit# newfs -S /dev/ad0s1s3d
Fixit# mkdir /dest
Fixit# mount /dev/ad0s1s3a /dest
Fixit# mkdir /dest/usr
Fixit# mount /dev/ad0s1s3d /dest/usr
Fixit# exit

You'll want to do
Code:
newfs -U /dev/ad0s1s3d
to enable soft-updates, -S is to specify sector size, and will give you an error if you do not provide it the expected size parameter.
Reply With Quote
  #99  
Old July 22nd, 2012, 10:54
nox@ nox@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Posts: 66
Thanks: 1
Thanked 38 Times in 14 Posts
Default

Quote:
Originally Posted by Djn View Post
So far, so good:
[...]
Oh, and a curious virtualbox/FreeBSD bug: I use a PS/2 keyboard but have a USB one plugged in. Inside vbox, the ps/2 one stops working when the kernel has booted.

edit:
Code:
root (hd0,7)
freebsd /boot/kernel/kernel
freebsd_loadenv /boot/device.hints
set FreeBSD.vfs.root.mountfrom=ufs:ad0s7
boot
That, in grub2, works. Now, to set up a reasonable grub.conf.
Btw I just found that grub2 won't boot FreeBSD/amd64 9.1 nor head kernels and got a patch for grub 2.00 (or bzr) by one of the grub developers:
http://paste.debian.net/180121/
[Edit: paste expired so I mirrored the patch here: http://people.freebsd.org/~nox/tmp/g...e_180121.patch. This (or a similar) patch meanwhile also has been committed to grub2 bzr.]

Mailing list thread is here: http://lists.freebsd.org/pipermail/f...ly/068924.html

(The sysutils/grub2 port will hopefully be updated soon.)

HTH,
Juergen

Last edited by nox@; August 25th, 2012 at 16:58. Reason: Mirrored the patch
Reply With Quote
Reply

Tags
freebsd, installation, logical, logical partition, partitioning

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
Mounting fat32 extended, logical partition RobertWade System Hardware 4 June 4th, 2011 10:08
Installing FreeBSD on a logical partition nikhilbhardwaj Mobile Computing 9 May 26th, 2011 10:32
FreeBSD 7.2 LiveCD, FreeBSD 7.2 embedded & GRUB2 for FreeBSD [logical partitions also Panarchy General 24 August 9th, 2009 19:06
[Solved] New installation. Slices and Partition scheme doubts leo2501 Installing & Upgrading 3 May 30th, 2009 14:24
Using swap space from a logical partition. Madcap Installing & Upgrading 2 January 28th, 2009 11:17


All times are GMT +1. The time now is 06:27.


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