Hi, I just installed FreeBSD 9.0-release / amd64 on a new machine (Acer Aspire X1470). I installed from a usb memory stick (the default amd64 image), which I booted by pressing "F12" and selecting it from the boot menu on the machine. I installed on a SSD (which replaced the hard drive originally in the machine), using the default scheme for 9.0 (GPT). The installation was painless (many thanks to all who made it that way), but when I try to boot the machine from the SSD afterwards, I just get this message from the BIOS: "ERROR: No boot disk has been detected or the disk has failed." I tried selecting the SSD from the boot menu (via F12) instead (it shows up as "EFI: M4-CT128M4SSD2"), but got the same message. I upgraded the BIOS from version P01-A3 to version P01-A4 (the newest available), still no dice. If I use the usb stick I installed from, I can select the boot device, and actually boot from it, so there doesn't seem to be anything wrong with the SSD. I tried: kg-vm2# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 bootcode written to ada0 in case there was something wrong with the bootcode, but I still get the message "ERROR: No boot disk has been detected or the disk has failed." gpart shows this: root@kg-vm2# gpart show ada0 => 34 250069613 ada0 GPT (119G) 34 128 1 freebsd-boot (64k) 162 119537664 2 freebsd-ufs (57G) 119537826 8388608 3 freebsd-swap (4.0G) 127926434 121634816 4 freebsd-ufs (58G) 249561250 508397 - free - (248M) and root is on ada0p2, with swap on ada0p3: root@kg-vm2# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 56G 2.3G 49G 4% / devfs 1.0k 1.0k 0B 100% /dev root@kg-vm2# swapinfo -h Device 1K-blocks Used Avail Capacity /dev/ada0p3 4194304 0B 4.0G 0% Has anyone seen anything like this before? Any hints on what I can do? References: 1) http://sites.google.com/site/tingox/aspire_x1470_fbsd -- Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
On 03/24/12 17:26, Torfinn Ingolfsen wrote:> Hi, > I just installed FreeBSD 9.0-release / amd64 on a new machine (Acer Aspire X1470). > I installed from a usb memory stick (the default amd64 image), which I booted by pressing "F12" and selecting it from the boot menu on the machine. > I installed on a SSD (which replaced the hard drive originally in the machine), using the default scheme for 9.0 (GPT). > The installation was painless (many thanks to all who made it that way), but when I try to boot the machine from the SSD afterwards, I just get this message from the BIOS: > "ERROR: No boot disk has been detected or the disk has failed." > I tried selecting the SSD from the boot menu (via F12) instead (it shows up as "EFI: M4-CT128M4SSD2"), but got the same message. > I upgraded the BIOS from version P01-A3 to version P01-A4 (the newest available), still no dice.It sounds a bit like the BIOS thinks that since the disk uses GPT you want to EFI boot. As far as I know the default bootcode in the PMBR is meant for old style BIOS booting. Is it possible to disable EFI in your BIOS? If that is the case, that's probably the easiest solution. I'm unsure of the current state of EFI boot in FreeBSD but a little bit of searching did not look promising. -- Christian Laursen
On Sat, 24 Mar 2012 17:26:03 +0100 Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no> wrote:> Hi, > I just installed FreeBSD 9.0-release / amd64 on a new machine (Acer Aspire X1470). > I installed from a usb memory stick (the default amd64 image), which I booted by pressing "F12" and selecting it from the boot menu on the machine. > I installed on a SSD (which replaced the hard drive originally in the machine), using the default scheme for 9.0 (GPT). > The installation was painless (many thanks to all who made it that way), but when I try to boot the machine from the SSD afterwards, I just get this message from the BIOS: > "ERROR: No boot disk has been detected or the disk has failed." > I tried selecting the SSD from the boot menu (via F12) instead (it shows up as "EFI: M4-CT128M4SSD2"), but got the same message. > I upgraded the BIOS from version P01-A3 to version P01-A4 (the newest available), still no dice.Just an update: today I connected another disk to the machine (I used a sata-to-usb adapter, but I think that doesn't matter), this disk is MBR-partitioned, and the machine boots from this with no problems using the boot menu (via F12). root@kg-vm2# gpart show -p da1 => 63 117210177 da1 MBR (55G) 63 29350692 da1s1 freebsd (14G) 29350755 29360079 da1s2 freebsd [active] (14G) 58710834 58499406 - free - (27G) The non-working disk looks like this: root@kg-vm2# gpart show -p ada0 => 34 250069613 ada0 GPT (119G) 34 128 ada0p1 freebsd-boot (64k) 162 119537664 ada0p2 freebsd-ufs (57G) 119537826 8388608 ada0p3 freebsd-swap (4.0G) 127926434 121634816 ada0p4 freebsd-ufs (58G) 249561250 508397 - free - (248M) -- Torfinn
Just a short update on this machine (Acer Aspire X1470) and the GPT / UEFI situation. Today I set up another partition, EFI system partition. The partyitions now looks like this: root@kg-vm2# gpart show ada0 => 34 250069613 ada0 GPT (119G) 34 128 1 freebsd-boot (64k) 162 119537664 2 freebsd-ufs (57G) 119537826 8388608 3 freebsd-swap (4.0G) 127926434 121634816 4 freebsd-ufs (58G) 249561250 204800 5 efi (100M) 249766050 303597 - free - (148M) I formatted the partition like this: root@kg-vm2# newfs_msdos -F32 /dev/ada0p5 newfs_msdos: trim 50 sectors to adjust to a multiple of 63 /dev/ada0p5: 204512 sectors in 12782 FAT32 clusters (8192 bytes/cluster) BytesPerSec=512 SecPerClust=16 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=204750 FATsecs=100 RootCluster=2 FSInfo=1 Backup=2 I have tried putting an EFI shell on it (I got the idea from this[1] page, I have tried both the 1.0 and 2.0 x64 shell), like this: root@kg-vm2# mount -t msdosfs /dev/ada0p5 /mnt root@kg-vm2# ls -l /mnt total 848 drwxr-xr-x 1 root wheel 8192 Aug 3 14:30 EFI drwxr-xr-x 1 root wheel 8192 Aug 3 16:21 boot -rwxr-xr-x 1 root wheel 847232 Aug 3 14:56 shellx64.efi root@kg-vm2# ls -l /mnt/boot total 760 -rwxr-xr-x 1 root wheel 771072 Aug 3 16:23 bootx64.efi root@kg-vm2# ls -l /mnt/EFI total 16 drwxr-xr-x 1 root wheel 8192 Aug 3 14:30 FreeBSD drwxr-xr-x 1 root wheel 8192 Aug 3 15:06 boot root@kg-vm2# ls -l /mnt/EFI/boot total 760 -rwxr-xr-x 1 root wheel 771072 Aug 3 15:29 bootx64.efi but no dice - it is not working, it still prints "ERROR: No boot disk has been detected or the disk has failed." when I try to boot from this disk. How do I figure out where this UEFI firmware that Acer has put in this machine is getting it's boot manager and or boot loader from? I tried running 'strings -f' on the BIOS file (sorry, UEFI firmware), that got me all the EFI error messages, but nothing useful. Googling didn't help either. References: 1) https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface -- Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>