Acer Aspire X1470 - FreeBSD - 2015 archive

back to main FreeBSD page for this machine.

2015 archive.

2015-04-04: da1p2 - FreeBSD 10.1-release installed, and booting fine. dmesg output: normal, verbose.

$ uname -a
FreeBSD kg-vm2.kg4.no 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
$ df -h
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da1p2     14G    849M     12G     6%    /
devfs         1.0K    1.0K      0B   100%    /dev
$ gpart show -p da1
=>      34  30297149    da1  GPT  (14G)
        34      1600  da1p1  efi  (800K)
      1634  30295549  da1p2  freebsd-ufs  (14G)
$ dmesg | grep efi
VT: running with driver "efifb".

good. Check out da1p1:

root@kg-vm2:~ # mount -t msdosfs /dev/da1p1 /mnt
root@kg-vm2:~ # df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da1p1    767K     66K    701K     9%    /mnt
root@kg-vm2:~ # ll /mnt
total 1
drwxr-xr-x  1 root  wheel  512 Apr 26  2014 efi/
root@kg-vm2:~ # ll /mnt/efi
total 1
drwxr-xr-x  1 root  wheel  512 Apr 26  2014 boot/
root@kg-vm2:~ # ll /mnt/efi/boot
total 64
-rwxr-xr-x  1 root  wheel  65536 Apr 26  2014 BOOTx64.efi*

good.

2015-04-04: I booted FreeBSD 10.1-release off a usb stick (TDK LoR TF10, da2), and will create an install on another usb memstick (Kingston DataTraveler 2.0, da1): destroy the old

# gpart delete -i 1 da1
# gpart destroy da1

create the new

# gpart create -s gpt da1

create a filesystem

# newfs /dev/da1p2

then I exited back into the installer and did a install from there, selecting manual for disk partitioning, and just changing the mount point on da1p2 to be / (root). I have no swap partition, but I'll live with that for this test. The install took a while.

2015-04-03: ada0p2 - ok, none of the partitions are active:

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     204800  ada0p5  efi  (100M)
  249766050     303597          - free -  (148M)

how about setting the ESP active?

root@kg-vm2# gpart set -a active -i 5 ada0
gpart: attrib 'active': Device not configured

it doesn't grok that one.

root@kg-vm2# gpart set -a bootme -i 5 ada0
bootme set on ada0p5

but bootme works. Verify:

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     204800  ada0p5  efi  [bootme]  (100M)
  249766050     303597          - free -  (148M)

Now, try to boot - see if it makes any difference. No - I still get: "ERROR: No boot disk has been detected or the disk has failed." Well, crap.

2015-04-03: ada0p2 - configure ESP: mount it:

root@kg-vm2# mount -t msdosfs /dev/ada0p5 /mnt

how big is it?

root@kg-vm2# df -h /mnt
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p5     99M     16k     99M     0%    /mnt

list

root@kg-vm2# ll /mnt
total 20
drwxr-xr-x   1 root  wheel  16384 Dec 31  1979 ./
drwxr-xr-x  19 root  wheel   1024 Apr  3 16:26 ../

create efi/boot directories:

root@kg-vm2# mkdir -p /mnt/efi/boot

copy the EFI boot:

root@kg-vm2# cp -pv /boot/boot1.efi /mnt/efi/boot/BOOTx64.efi
/boot/boot1.efi -> /mnt/efi/boot/BOOTx64.efi

unmount /mnt

root@kg-vm2# umount /mnt

Next, try a boot. Does it work? No - it does not.

2015-04-03: ada0p2 - lets try to reformat the ESP as a FAT16 filesystem:

root@kg-vm2# newfs_msdos -F 16 /dev/ada0p5
newfs_msdos: trim 50 sectors to adjust to a multiple of 63
/dev/ada0p5: 204608 sectors in 12788 FAT16 clusters (8192 bytes/cluster)
BytesPerSec=512 SecPerClust=16 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=50 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=204750

disktype says:

root@kg-vm2# disktype /dev/ada0p5

--- /dev/ada0p5
Character device, size 100 MiB (104857600 bytes)
FAT16 file system (hints score 5 of 5)
  Volume size 99.91 MiB (104759296 bytes, 12788 clusters of 8 KiB)
  Volume name "NO_NAME"

ok.

2015-04-03: ada0p2 - update the rEFInd usb stick to latest version, rEFInd 0.8.7:

root@kg-vm2# dd if=/home/tingo/dl/refind-flashdrive-0.8.7/refind-flashdrive-0.8.7.img of=/dev/da2 bs=1M
6+1 records in
6+1 records out
7012352 bytes transferred in 1.312182 secs (5344038 bytes/sec)

Now go and boot it. Well, it is the same as before. Try a different way: try to install rEFInd on the ESP of the internal drive. rEFInd usb stick mounted here:

root@kg-vm2# l /mnt
./                          EFI/                        shellx64-refind-signed.efi*
../                         shellia32.efi*              shellx64.efi*
root@kg-vm2# l /mnt/EFI
./    ../   boot/
root@kg-vm2# l /mnt/EFI/boot
./            ../           bootia32.efi* bootx64.efi*  drivers_ia32/ drivers_x64/  icons/        refind.conf*

and ESP mounted here:

root@kg-vm2# l /mnt2
./   ../  EFI/

First, move the FreeBSD loader out of the way:

root@kg-vm2# mv /mnt2/EFI/BOOT /mnt2/EFI/FreeBSD

then copy over the rEFInd files:

root@kg-vm2# cp -Rpv /mnt/EFI/boot /mnt2/EFI/
/mnt/EFI/boot -> /mnt2/EFI/boot
/mnt/EFI/boot/drivers_x64 -> /mnt2/EFI/boot/drivers_x64
/mnt/EFI/boot/drivers_x64/ext4_x64.efi -> /mnt2/EFI/boot/drivers_x64/ext4_x64.efi
/mnt/EFI/boot/drivers_x64/hfs_x64.efi -> /mnt2/EFI/boot/drivers_x64/hfs_x64.efi
/mnt/EFI/boot/drivers_x64/ext2_x64.efi -> /mnt2/EFI/boot/drivers_x64/ext2_x64.efi
/mnt/EFI/boot/drivers_x64/iso9660_x64.efi -> /mnt2/EFI/boot/drivers_x64/iso9660_x64.efi
/mnt/EFI/boot/drivers_x64/reiserfs_x64.efi -> /mnt2/EFI/boot/drivers_x64/reiserfs_x64.efi
/mnt/EFI/boot/drivers_x64/LICENSE_GPL.txt -> /mnt2/EFI/boot/drivers_x64/LICENSE_GPL.txt
/mnt/EFI/boot/drivers_x64/LICENSE.txt -> /mnt2/EFI/boot/drivers_x64/LICENSE.txt
/mnt/EFI/boot/drivers_x64/ntfs_x64.efi -> /mnt2/EFI/boot/drivers_x64/ntfs_x64.efi
/mnt/EFI/boot/drivers_x64/btrfs_x64.efi -> /mnt2/EFI/boot/drivers_x64/btrfs_x64.efi
/mnt/EFI/boot/icons -> /mnt2/EFI/boot/icons
/mnt/EFI/boot/icons/os_gummiboot.png -> /mnt2/EFI/boot/icons/os_gummiboot.png
/mnt/EFI/boot/icons/vol_internal.png -> /mnt2/EFI/boot/icons/vol_internal.png
/mnt/EFI/boot/icons/func_about.png -> /mnt2/EFI/boot/icons/func_about.png
/mnt/EFI/boot/icons/os_centos.png -> /mnt2/EFI/boot/icons/os_centos.png
/mnt/EFI/boot/icons/tool_part.png -> /mnt2/EFI/boot/icons/tool_part.png
/mnt/EFI/boot/icons/tool_memtest.png -> /mnt2/EFI/boot/icons/tool_memtest.png
/mnt/EFI/boot/icons/os_freedos.png -> /mnt2/EFI/boot/icons/os_freedos.png
/mnt/EFI/boot/icons/os_win8.png -> /mnt2/EFI/boot/icons/os_win8.png
/mnt/EFI/boot/icons/os_chrome.png -> /mnt2/EFI/boot/icons/os_chrome.png
/mnt/EFI/boot/icons/os_mandriva.png -> /mnt2/EFI/boot/icons/os_mandriva.png
/mnt/EFI/boot/icons/os_arch.png -> /mnt2/EFI/boot/icons/os_arch.png
/mnt/EFI/boot/icons/os_ecomstation.png -> /mnt2/EFI/boot/icons/os_ecomstation.png
/mnt/EFI/boot/icons/os_linux.png -> /mnt2/EFI/boot/icons/os_linux.png
/mnt/EFI/boot/icons/os_freebsd.png -> /mnt2/EFI/boot/icons/os_freebsd.png
/mnt/EFI/boot/icons/os_clover.png -> /mnt2/EFI/boot/icons/os_clover.png
/mnt/EFI/boot/icons/os_mac.png -> /mnt2/EFI/boot/icons/os_mac.png
/mnt/EFI/boot/icons/func_firmware.png -> /mnt2/EFI/boot/icons/func_firmware.png
/mnt/EFI/boot/icons/os_fatdog.png -> /mnt2/EFI/boot/icons/os_fatdog.png
/mnt/EFI/boot/icons/os_fedora.png -> /mnt2/EFI/boot/icons/os_fedora.png
/mnt/EFI/boot/icons/os_unknown.png -> /mnt2/EFI/boot/icons/os_unknown.png
/mnt/EFI/boot/icons/os_ubuntu.png -> /mnt2/EFI/boot/icons/os_ubuntu.png
/mnt/EFI/boot/icons/func_exit.png -> /mnt2/EFI/boot/icons/func_exit.png
/mnt/EFI/boot/icons/arrow_right.png -> /mnt2/EFI/boot/icons/arrow_right.png
/mnt/EFI/boot/icons/tool_netboot.png -> /mnt2/EFI/boot/icons/tool_netboot.png
/mnt/EFI/boot/icons/os_redhat.png -> /mnt2/EFI/boot/icons/os_redhat.png
/mnt/EFI/boot/icons/tool_windows_rescue.png -> /mnt2/EFI/boot/icons/tool_windows_rescue.png
/mnt/EFI/boot/icons/os_openbsd.png -> /mnt2/EFI/boot/icons/os_openbsd.png
/mnt/EFI/boot/icons/os_slackware.png -> /mnt2/EFI/boot/icons/os_slackware.png
/mnt/EFI/boot/icons/os_network.png -> /mnt2/EFI/boot/icons/os_network.png
/mnt/EFI/boot/icons/os_refind.png -> /mnt2/EFI/boot/icons/os_refind.png
/mnt/EFI/boot/icons/os_legacy.png -> /mnt2/EFI/boot/icons/os_legacy.png
/mnt/EFI/boot/icons/os_hwtest.png -> /mnt2/EFI/boot/icons/os_hwtest.png
/mnt/EFI/boot/icons/vol_optical.png -> /mnt2/EFI/boot/icons/vol_optical.png
/mnt/EFI/boot/icons/tool_apple_rescue.png -> /mnt2/EFI/boot/icons/tool_apple_rescue.png
/mnt/EFI/boot/icons/tool_shell.png -> /mnt2/EFI/boot/icons/tool_shell.png
/mnt/EFI/boot/icons/os_xubuntu.png -> /mnt2/EFI/boot/icons/os_xubuntu.png
/mnt/EFI/boot/icons/os_debian.png -> /mnt2/EFI/boot/icons/os_debian.png
/mnt/EFI/boot/icons/os_mythbuntu.png -> /mnt2/EFI/boot/icons/os_mythbuntu.png
/mnt/EFI/boot/icons/os_linuxmint.png -> /mnt2/EFI/boot/icons/os_linuxmint.png
/mnt/EFI/boot/icons/os_kubuntu.png -> /mnt2/EFI/boot/icons/os_kubuntu.png
/mnt/EFI/boot/icons/tool_mok_tool.png -> /mnt2/EFI/boot/icons/tool_mok_tool.png
/mnt/EFI/boot/icons/os_netbsd.png -> /mnt2/EFI/boot/icons/os_netbsd.png
/mnt/EFI/boot/icons/vol_net.png -> /mnt2/EFI/boot/icons/vol_net.png
/mnt/EFI/boot/icons/os_haiku.png -> /mnt2/EFI/boot/icons/os_haiku.png
/mnt/EFI/boot/icons/os_refit.png -> /mnt2/EFI/boot/icons/os_refit.png
/mnt/EFI/boot/icons/vol_external.png -> /mnt2/EFI/boot/icons/vol_external.png
/mnt/EFI/boot/icons/func_shutdown.png -> /mnt2/EFI/boot/icons/func_shutdown.png
/mnt/EFI/boot/icons/os_opensuse.png -> /mnt2/EFI/boot/icons/os_opensuse.png
/mnt/EFI/boot/icons/os_manjaro.png -> /mnt2/EFI/boot/icons/os_manjaro.png
/mnt/EFI/boot/icons/os_win.png -> /mnt2/EFI/boot/icons/os_win.png
/mnt/EFI/boot/icons/func_reset.png -> /mnt2/EFI/boot/icons/func_reset.png
/mnt/EFI/boot/icons/arrow_left.png -> /mnt2/EFI/boot/icons/arrow_left.png
/mnt/EFI/boot/icons/os_gentoo.png -> /mnt2/EFI/boot/icons/os_gentoo.png
/mnt/EFI/boot/icons/os_suse.png -> /mnt2/EFI/boot/icons/os_suse.png
/mnt/EFI/boot/icons/os_funtoo.png -> /mnt2/EFI/boot/icons/os_funtoo.png
/mnt/EFI/boot/icons/os_mageia.png -> /mnt2/EFI/boot/icons/os_mageia.png
/mnt/EFI/boot/icons/os_lubuntu.png -> /mnt2/EFI/boot/icons/os_lubuntu.png
/mnt/EFI/boot/icons/boot_win.png -> /mnt2/EFI/boot/icons/boot_win.png
/mnt/EFI/boot/icons/boot_linux.png -> /mnt2/EFI/boot/icons/boot_linux.png
/mnt/EFI/boot/icons/transparent.png -> /mnt2/EFI/boot/icons/transparent.png
/mnt/EFI/boot/icons/os_altlinux.png -> /mnt2/EFI/boot/icons/os_altlinux.png
/mnt/EFI/boot/drivers_ia32 -> /mnt2/EFI/boot/drivers_ia32
/mnt/EFI/boot/drivers_ia32/iso9660_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/iso9660_ia32.efi
/mnt/EFI/boot/drivers_ia32/ntfs_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/ntfs_ia32.efi
/mnt/EFI/boot/drivers_ia32/reiserfs_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/reiserfs_ia32.efi
/mnt/EFI/boot/drivers_ia32/hfs_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/hfs_ia32.efi
/mnt/EFI/boot/drivers_ia32/LICENSE_GPL.txt -> /mnt2/EFI/boot/drivers_ia32/LICENSE_GPL.txt
/mnt/EFI/boot/drivers_ia32/LICENSE.txt -> /mnt2/EFI/boot/drivers_ia32/LICENSE.txt
/mnt/EFI/boot/drivers_ia32/ext4_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/ext4_ia32.efi
/mnt/EFI/boot/drivers_ia32/ext2_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/ext2_ia32.efi
/mnt/EFI/boot/drivers_ia32/btrfs_ia32.efi -> /mnt2/EFI/boot/drivers_ia32/btrfs_ia32.efi
/mnt/EFI/boot/refind.conf -> /mnt2/EFI/boot/refind.conf
/mnt/EFI/boot/bootia32.efi -> /mnt2/EFI/boot/bootia32.efi
/mnt/EFI/boot/bootx64.efi -> /mnt2/EFI/boot/bootx64.efi

does it look ok?

root@kg-vm2# l /mnt2/EFI
./       ../      FreeBSD/ boot/
root@kg-vm2# l /mnt2/EFI/boot
./            ../           bootia32.efi* bootx64.efi*  drivers_ia32/ drivers_x64/  icons/        refind.conf*

it does. OK, now another boot test. Nope, that didn't help either.

2015-04-03: ada0p2 - I booted FreeBSD 9.3-stable again, to see if I can fix that UEFI thing.

root@kg-vm2# uname -a
FreeBSD kg-vm2 9.3-STABLE FreeBSD 9.3-STABLE #1 r270626: Tue Aug 26 00:47:59 CEST 2014     root@kg-vm2:/usr/obj/usr/src/sys/GENERIC  amd64

the EFI partition appears to be FAT16:

root@kg-vm2# disktype /dev/ada0p5

--- /dev/ada0p5
Character device, size 100 MiB (104857600 bytes)
FAT16 file system (hints score 5 of 5)
  Volume size 99.86 MiB (104710144 bytes, 12782 clusters of 8 KiB)

let's mount it:

root@kg-vm2# mount -t msdosfs /dev/ada0p5 /mnt

and check it out:

root@kg-vm2# ls -l /mnt
total 848
drwxr-xr-x  1 root  wheel    8192 Aug  3  2012 EFI
drwxr-xr-x  1 root  wheel    8192 Aug  3  2012 boot
-rwxr-xr-x  1 root  wheel  847232 Aug  3  2012 shellx64.efi
root@kg-vm2# ls -l /mnt/*
-rwxr-xr-x  1 root  wheel  847232 Aug  3  2012 /mnt/shellx64.efi

/mnt/EFI:
total 16
drwxr-xr-x  1 root  wheel  8192 Aug  3  2012 FreeBSD
drwxr-xr-x  1 root  wheel  8192 Aug  3  2012 boot

/mnt/boot:
total 760
-rwxr-xr-x  1 root  wheel  771072 Aug  3  2012 bootx64.efi
root@kg-vm2# ls -l /mnt/*/*
-rwxr-xr-x  1 root  wheel  771072 Aug  3  2012 /mnt/boot/bootx64.efi

/mnt/EFI/FreeBSD:
total 0

/mnt/EFI/boot:
total 760
-rwxr-xr-x  1 root  wheel  771072 Aug  3  2012 bootx64.efi

Hmm, wrong I think. Let's clean it out:

root@kg-vm2# rm -r /mnt/boot
root@kg-vm2# rm /mnt/shellx64.efi
root@kg-vm2# rmdir /mnt/EFI/FreeBSD
root@kg-vm2# rm -r /mnt/EFI/boot

done. Get the EFI boot loader files from a 10.1 machine (v7):

root@kg-vm2# pwd
/boot
root@kg-vm2# scp tingo@v7:/boot/*.efi .
The authenticity of host 'v7 (10.1.150.19)' can't be established.
ECDSA key fingerprint is c5:00:3e:a0:8e:18:d8:c2:15:b1:f2:a2:21:40:2b:7d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'v7' (ECDSA) to the list of known hosts.
Password for tingo@kg-v7.kg4.no:
boot1.efi                                                                           100%   33KB  33.0KB/s   00:00    
loader.efi                                                                          100%  300KB 299.7KB/s   00:00    

in theory they should work. Now, create the correct directory on the EFI partition:

root@kg-vm2# mkdir /mnt/EFI/BOOT

and copy the bootloader there:

root@kg-vm2# cp /boot/boot1.efi /mnt/EFI/BOOT/BOOTX64.EFI

unmount

root@kg-vm2# umount /mnt

ready to try it out. - Nope it didn't work, I still get the same message when trying to boot from the internal drive.