Solution: Use MBR Partitioning Scheme (easy, from installer)
Solution: Boot from memstick (easy)
I am not having luck installing Freebsd rel. 10 from memory stick onto a 2012/13 Intel Atom D2550 (1.86GHz) 2GB DDR3 320GB HDD Capacity system (Asus Eee EB1033-B048E). I tried an install using guided mode, selecting the entire disc, and going with the defaults. But, I think something is going on with the UEFI bios that's causing the system to be unable to detect the first logical slice containing the first cylinder block when booting from a memorystick. I received an error when partitioning the system that it was not working on the first slice. Is guided mode disk set up compatible with UEFI systems containing a pre-installed os (whether or not secure boot is used)?
I am attempting to determine if this has anything to do with UEFI and/or my bios. When the project was announced over a year ago, UEFI was due 'soon'. The most recent news predates Rel. 10 and indicates that full UEFI support in the FreeBSD source code is 'pending.' So what's the current status of the UEFI project and will this make it possible to run FreeBSD off of EUFI conveniently?
Is there a way to determine if secure boot or UEFI is enabled in bios firmware where you don't have gui bios access to such options? Asus' website and manuals for the EB1033 refer to bios settings and options that are different than what's on my EB1033. For example, I have a completely different bios than that on the Asus EB1033 troubleshooting tip discussing disabling smart boot (http://support.asus.com/Troubleshooting ... &p=20&m=... ). I have Asus Bios 0501 American Megatrends version 2.10.12.08. However, I've seen other screenshots with a similar but different bios that has the same version number (E.G. http://www.manualslib.com/manual/324987 ... ml?page=91 looks exactly like my boot menu in all respects, including version number, but, does not have "Option ROM Messages," "Setup Mode," UEFI/Legacy Boot," and "PCI ROM Priority".) The bios version that shipped with my EB1033 (Bios 0501 build date 5/23/2012 version 2.10.12.08) seems to be the 'advanced mode' interface. I don't have an option to go into a simple mode (the simple mode has more boot options than the 'advanced mode' interterface). There is no option to disable or enable secure boot. There is no option to select UEFI or legacy mode.
According to Microsoft http://technet.microsoft.com/en-us/libr ... 24987.aspx Windows 8 is the only OS currently using keys for secure boot. I have read elsewhere (e.g. http://vip.asus.com/forum/view.aspx?boa ... uage=en-us ) that secure boot can be an issue with preinstalled Windows 7 (perhaps used for checking the validity of windows 7 license keys). I don't think secure boot is an issue, but, if there's some way to probe for the presence or absence of secure boot using FreeBSD or other software tools (i.e. its been hardcoded and not available as a bios option) I could eliminate worries that secure boot is causing problems.
The system recognizes the drive as ada0 when booting the live fs memstick image. I am confused by the message, "Previously was known as ad4"? Is the drive recognized differently or use a different device in /dev when running off bootable usb livefs image as opposed to running off the filesystem installed by the membstick image onto a physical drive?
Is it normal that gpart shows a disc by it's device name and by a disc id on a single disc system dedicated to FreeBSD, or, does this indicate different naming schemes are being used? Otherwise, from what I can see from gpart, things look as they should, except, what's that free space doing at the beginning of the drive and what would happen if I try resizing the 64k freebsd-boot slice ada01 to cover the 3k free space and put down a new freesd-boot on the single slice at the beginning of the disc?
What is the preferred method for creating a usb boot disk for running FreeBSD on an internal drive? That is, what do you change on the FreeBSD 10 memstick livefs to get it to use a filesystem installed on disk instead of the filesystem on the disk. Like a monkey, without knowing or remembering precisely what I did, I have -- two or three times -- been able to boot to where the root filesystem is running off the hdd. Whether it's the hardware or new features in FreeBSD, this system appears to run like a dream, notwithstanding the install issues, including support for wireless keyboards and mice (though not perhaps at the boot levels where I need to be testing what settings will work before committing them to file).
Am I correct that since I am using the "GPT" scheme, I should not need to use fdisk or bsdlabel (except to bootstap around UEFI, if that's an issue)?
I thought putting a bootme flag on the FreeBSD boot partition might help (particularly if it's an UEFI system which is supposed to look for bootme flags).
This seemed to have no effect.
I tried installing bootcode, also to no effect.
(I belive I did -i ada0 as well)
I did the following, which didn't seem to cause damage or cure things, but, which might have been a mistake:
Question: Does it make any difference when partitioning and formatting whether a dedicated internal hdd for freebsd using these commands, assuming they are the correct commands, that the commands are issued in single user or multi-user mode from livefs memstick or from the memstick shell?
From the memstick shell, I tried to set the current boot device to the installed drive, without luck.
I am at the point where I need to learn more fundamentals before I can get a long-needed upgrade. To be clear, I don't want anything to do with the windows 7 that was pre-installed on the disc -- I don't want or need a dual booting system --, and, I don't want to lose any UEFI related data that might prevent the system from being able to boot at all. Thanks all in advance.
Solution: Boot from memstick (easy)
The FreeBSD Foundation has been working towards the future of booting in x86 and catching up to our friends in Linux-land by sponsoring work on a UEFI enabled boot loader. This work was taken on by Benno Rice (benno@freebsd.org) and Ed Maste (emaste@freebsd.org).
Many thanks to the folks at the FreeBSD Foundation for these initial steps into UEFI. The project branch in subversion is publicly available and I highly encourage folks to engage the community to get this closer to production grade.
-- http://blog.ignoranthack.me/?p=147 December 2, 2013
I am not having luck installing Freebsd rel. 10 from memory stick onto a 2012/13 Intel Atom D2550 (1.86GHz) 2GB DDR3 320GB HDD Capacity system (Asus Eee EB1033-B048E). I tried an install using guided mode, selecting the entire disc, and going with the defaults. But, I think something is going on with the UEFI bios that's causing the system to be unable to detect the first logical slice containing the first cylinder block when booting from a memorystick. I received an error when partitioning the system that it was not working on the first slice. Is guided mode disk set up compatible with UEFI systems containing a pre-installed os (whether or not secure boot is used)?
I am attempting to determine if this has anything to do with UEFI and/or my bios. When the project was announced over a year ago, UEFI was due 'soon'. The most recent news predates Rel. 10 and indicates that full UEFI support in the FreeBSD source code is 'pending.' So what's the current status of the UEFI project and will this make it possible to run FreeBSD off of EUFI conveniently?
Is there a way to determine if secure boot or UEFI is enabled in bios firmware where you don't have gui bios access to such options? Asus' website and manuals for the EB1033 refer to bios settings and options that are different than what's on my EB1033. For example, I have a completely different bios than that on the Asus EB1033 troubleshooting tip discussing disabling smart boot (http://support.asus.com/Troubleshooting ... &p=20&m=... ). I have Asus Bios 0501 American Megatrends version 2.10.12.08. However, I've seen other screenshots with a similar but different bios that has the same version number (E.G. http://www.manualslib.com/manual/324987 ... ml?page=91 looks exactly like my boot menu in all respects, including version number, but, does not have "Option ROM Messages," "Setup Mode," UEFI/Legacy Boot," and "PCI ROM Priority".) The bios version that shipped with my EB1033 (Bios 0501 build date 5/23/2012 version 2.10.12.08) seems to be the 'advanced mode' interface. I don't have an option to go into a simple mode (the simple mode has more boot options than the 'advanced mode' interterface). There is no option to disable or enable secure boot. There is no option to select UEFI or legacy mode.
According to Microsoft http://technet.microsoft.com/en-us/libr ... 24987.aspx Windows 8 is the only OS currently using keys for secure boot. I have read elsewhere (e.g. http://vip.asus.com/forum/view.aspx?boa ... uage=en-us ) that secure boot can be an issue with preinstalled Windows 7 (perhaps used for checking the validity of windows 7 license keys). I don't think secure boot is an issue, but, if there's some way to probe for the presence or absence of secure boot using FreeBSD or other software tools (i.e. its been hardcoded and not available as a bios option) I could eliminate worries that secure boot is causing problems.
The system recognizes the drive as ada0 when booting the live fs memstick image. I am confused by the message, "Previously was known as ad4"? Is the drive recognized differently or use a different device in /dev when running off bootable usb livefs image as opposed to running off the filesystem installed by the membstick image onto a physical drive?
dmesg
[snipped]
Code:
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <ST320LT020-9YG142 0001SDM1> ATA-8 SATA 2.x device
ada0: Serial Number W0489HT6
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C)
ada0: quirks=0x1<4K>
ada0: Previously was known as ad4
gpart show
Code:
=> 34 625142381 [b] ada0[/b] GPT (298G)
34 6 - free - (3.0K)
40 128 1 freebsd-boot [bootme] (64K)
168 616562552 2 freebsd-ufs (294G)
616562720 8388608 3 freebsd-swap (4.0G)
624951328 191087 - free - (93M)
=> 34 625142381 [b]diskid/DISK-W0489HT6[/b] GPT (298G)
34 6 - free - (3.0K)
40 128 1 freebsd-boot [bootme] (64K)
168 616562552 2 freebsd-ufs (294G)
616562720 8388608 3 freebsd-swap (4.0G)
624951328 191087 - free - (93M)
=> 0 31266816 da0 BSD (15G)
0 1362080 1 freebsd-ufs (665M)
1362080 29904736 - free - (14G)
gpart list
Code:
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 625142414
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
Mediasize: 65536 (64K)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
rawuuid: [snip]
rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
attrib: bootme
label: (null)
length: 65536
offset: 20480
type: freebsd-boot
index: 1
end: 167
start: 40
2. Name: ada0p2
Mediasize: 315680026624 (294G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
rawuuid: [snip]
rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 315680026624
offset: 86016
type: freebsd-ufs
index: 2
end: 616562719
start: 168
3. Name: ada0p3
Mediasize: 4294967296 (4.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
rawuuid: [snip]
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 4294967296
offset: 315680112640
type: freebsd-swap
index: 3
end: 624951327
start: 616562720
Consumers:
1. Name: ada0
Mediasize: 320072933376 (298G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
What is the preferred method for creating a usb boot disk for running FreeBSD on an internal drive? That is, what do you change on the FreeBSD 10 memstick livefs to get it to use a filesystem installed on disk instead of the filesystem on the disk. Like a monkey, without knowing or remembering precisely what I did, I have -- two or three times -- been able to boot to where the root filesystem is running off the hdd. Whether it's the hardware or new features in FreeBSD, this system appears to run like a dream, notwithstanding the install issues, including support for wireless keyboards and mice (though not perhaps at the boot levels where I need to be testing what settings will work before committing them to file).
Am I correct that since I am using the "GPT" scheme, I should not need to use fdisk or bsdlabel (except to bootstap around UEFI, if that's an issue)?
I thought putting a bootme flag on the FreeBSD boot partition might help (particularly if it's an UEFI system which is supposed to look for bootme flags).
Code:
gpart set -a bootme -i 1 ada0
This seemed to have no effect.
I tried installing bootcode, also to no effect.
Code:
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i ad4
I did the following, which didn't seem to cause damage or cure things, but, which might have been a mistake:
Code:
gpart add -t freebsd-boot -l gpboot /dev -b 40 -s 512k da0
Question: Does it make any difference when partitioning and formatting whether a dedicated internal hdd for freebsd using these commands, assuming they are the correct commands, that the commands are issued in single user or multi-user mode from livefs memstick or from the memstick shell?
From the memstick shell, I tried to set the current boot device to the installed drive, without luck.
Code:
set currdev=ada01
I am at the point where I need to learn more fundamentals before I can get a long-needed upgrade. To be clear, I don't want anything to do with the windows 7 that was pre-installed on the disc -- I don't want or need a dual booting system --, and, I don't want to lose any UEFI related data that might prevent the system from being able to boot at all. Thanks all in advance.