[SOLVED] Serial image fails to boot on APU4D4

Started by Patrick M. Hausen, January 30, 2024, 01:04:48 PM

Previous topic - Next topic
January 30, 2024, 01:04:48 PM Last Edit: January 30, 2024, 04:10:18 PM by Patrick M. Hausen
GEOM: da0: corrupt or invalid GPT detected.                                                                                         
GEOM: da0: GPT rejected -- may not be recoverable.                                                                                 
GEOM: diskid/DISK-V9UHNHZ7: corrupt or invalid GPT detected.                                                                       
GEOM: diskid/DISK-V9UHNHZ7: GPT rejected -- may not be recoverable.                                                                 
mountroot: waiting for device /dev/ufs/OPNsense_Install...                                                                         
Mounting from ufs:/dev/ufs/OPNsense_Install failed with error 19.                                                                   
                                                                                                                                   
Loader variables:                                                                                                                   
  vfs.root.mountfrom=ufs:/dev/ufs/OPNsense_Install                                                                                 
  vfs.root.mountfrom.options=ro,noatime                                                                                             
                                                                                                                                   
Manual root filesystem specification:                                                                                               
  <fstype>:<device> [options]                                                                                                       
      Mount <device> using filesystem <fstype>                                                                                     
      and with the specified (optional) option list.                                                                               
                                                                                                                                   
    eg. ufs:/dev/da0s1a                                                                                                             
        zfs:zroot/ROOT/default                                                                                                     
        cd9660:/dev/cd0 ro                                                                                                         
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)                                                               
                                                                                                                                   
  ?               List valid disk boot devices                                                                                     
  .               Yield 1 second (for background tasks)                                                                             
  <empty line>    Abort manual input                                                                                               
                                                                                                                                   


I checked the SHA256 sum twice, dd'ed to a USB drive twice. Examining the drive in a FreeBSD 13.2 installation also reports "GPT rejected".
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

ive downloaded from 3 servers.

all of them are failing to write to usb.

tried 2 different devices. windows and Mac. and 2 different working thumb drives!

January 30, 2024, 03:38:09 PM #2 Last Edit: January 30, 2024, 03:41:46 PM by Patrick M. Hausen
STOP! STOP! My fault altogether! Gnaaa ...

When did the installer image cross the size of 2G? :o ::)

So, grab larger USB drive and try again ...


For the record:
----------------

OK, when I use a FreeBSD system, uncompress the image and turn it into a block device like so:
mdconfig -t vnode OPNsense-24.1-serial-amd64.img
then everything looks good:
root@freebsd:~ # gpart show /dev/md0
=>      3  4676563  md0  GPT  (2.2G)
        3    66584    1  efi  (33M)
    66587      123    2  freebsd-boot  (62K)
    66710     1024    3  freebsd-swap  (512K)
    67734  4608832    4  freebsd-ufs  (2.2G)


So possibly something went wrong with me writing to USB device on my Mac (which I have literally done hundreds of times over the last years), or the APU4 booting, recognising the missing backup GPT header and *somehow* destroying the partition table in the process.

I will now write the image to the USB drive on FreeBSD and do a
gpart recover first. Then try to boot again.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Installer is working fine. Apologies for the noise.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I was using a 4-8gb on my Mac's using balena etcher

Then noticed the patch to download patch  to download 24.1
It installed over the internet no issues!