15725
![]() |
|
|
|
|
|||||||
| Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi everyone!
Sorry for my bad English, hope you all guys understand what I'm talking about. I'm trying to install FreeBSD on external USB drive on my macbook pro. As it turned out it's not so easy. I'm installing FreeBSD on GPT disk (750Gb) and I want following partition table: [600Gb HFS+] [64K freebsd-boot] [145Gb freebsd-ufs] [4GB freebsd-swap] This is default layout which is suggested by FreeBSD 9 sysinstall. Installation finished without any problems. I'm using this guide: http://www.glenbarber.us/2011/11/12/...FreeBSD-9.html and after installation I open LiveCD shell and install boot loader: # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 3 da0Than I tried to boot but no luck. OS X boot menu doesn't show anything except my internal HDD with OSX and recovery partition. After that, I decide to install refit. For some reason refit item doesn't showing in boot menu. Because of that I install refit to my 4Gb usb-flash key. Than I see menu item but it don't recognize any FreeBSD installations. Interesting thing: I tried several times to install with different layout. And what I found, if I have clean HDD with layout: [600Gb HFS+] [150Gb freespace] and install refIT, I see refit menu item in boot menu. But just after FreeBSD installation it disappearing. Another interesting thing, here is my current layout: # diskutil listCode:
/dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *750.2 GB disk1 1: EFI 209.7 MB disk1s1 2: Apple_HFS josser-netdrive 600.0 GB disk1s2 3: 83BD6B9D-7F41-11DC-BE0B-001560B84F0F 65.5 KB disk1s3 4: FreeBSD UFS 145.0 GB disk1s4 5: FreeBSD Swap 4.3 GB disk1s5 After a lot of tries I'm even tried to install grub2 efi module, it successfully loaded and even able to see FreeBSD partitions. I tried this commands: Code:
set root=(hd0,3) kfreebsd /boot/kernel/kernel kfreebsd_loadenv /boot/device.hints boot So, guys, can anybody point me to good article or just give some directions what to read? Oh, yeah, I don't want to use virtualbox. Thanks, and again, sorry for my bad english
Last edited by SirDice; August 10th, 2012 at 09:57. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043 |
|
#2
|
||||
|
||||
|
Have a look here: http://wiki.freebsd.org/AppleMacbook/
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
Quote:
As I understand 9.0 installer is able to install on GPT disk without additional actions needed. |
|
#4
|
|||
|
|||
|
Also, the problem with this guide is that it assume that I can use Bootcamp.
But I can't because it don't want to create windows partitions on USB-drive. |
|
#5
|
|||
|
|||
|
I have a Macbook, default install doesn't work. Had to fall back to mbr for single install.
Why not fallback to mbr on external drive, never used reFIT but it should handle MBR quite well.
__________________
Do not try to debug life, the only thing you will achieve is constant failure. |
|
#6
|
|||
|
|||
|
Huh, I just forget about this option, MBR + reFIT. Thanks a lot!
The only question: is it possible to convert GPT to MBR without data loss. But it not for this thread and even forum
|
|
#7
|
|||
|
|||
|
Ok, I reformat my USB drive to MBR.
Refit now see the FreeBSD installation! (It show menu option like: Boot FreeBSD from partition 2) But don't boot. Saying: Invalid boot device. Insert boot disk and press any key. Not sure who is talking this. (EFI, reFIT or maybe freebsd bootloader?)I tried to use grub2 for booting, tried several configurations. This one: Code:
set root=(hd0,msdos2) chainloader+1 This one: Code:
set root=(hd0,msdos2) kFreebsd = /boot/kernel/kernel kFreebsd_loadenv = /boot/device.hints Any suggestions? |
|
#8
|
|||
|
|||
|
Have you marked the partition as bootable?
__________________
Do not try to debug life, the only thing you will achieve is constant failure. |
|
#9
|
|||
|
|||
|
BTW, the guides start with bootcamp because by using bootcamp, OS X knows that another OS Exists and Emulates MBR, that's why, most of the time, you create the partition NTFS and just wipe it out for another OS.
__________________
Do not try to debug life, the only thing you will achieve is constant failure. |
|
#10
|
|||
|
|||
|
I guess, bsdinstall made this automatically:
$sudo fdisk /dev/disk1
|
|
#11
|
|||
|
|||
|
Heh, hello again everyone, look what I'm found:
https://bugzilla.redhat.com/show_bug.cgi?id=746901 I repeat all steps to create hybrid MBR/GPT partition scheme as described in this bug report but no luck Looks like there some differences between booting from internal disc and external USB-hdd. |
|
#12
|
|||
|
|||
|
Quote:
|
![]() |
| Tags |
| efi, gptboot, macbook, mbr, usb boot |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Booting to debian kFreebsd on external hard drive | dcole | Installing & Upgrading | 1 | August 1st, 2012 08:04 |
| Running FreeBSD on a Macbook | dubby | Mobile Computing | 6 | June 10th, 2011 04:10 |
| FreeBSD 8.1 on MacBook 5,2 | starbase527 | Mobile Computing | 11 | April 3rd, 2011 17:36 |
| FreeBSD only on MacBook? Having problems... | forkandwait | Installing & Upgrading | 1 | November 30th, 2009 23:59 |
| FreeBSD on MacBook | perpetualcacophany | Mobile Computing | 3 | September 1st, 2009 19:15 |