Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Upgrading to 2.3 on nanobsd 4g errors out

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 3 Posters 970 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U Offline
      ubun2Junky
      last edited by

      I'm running pfsense 2.2.6 on a 4g CF card.  When I try to update through the GUI it begins to download the files, but as soon as it tries to install it sends me an email notifying me that, "Something went wrong when trying to update the fstab entry.  Aborting upgrade."

      Here is the only log I managed to find pertaining to the upgrade, even after reviewing the log, I'm not sure how to go about the upgrade, any advise would be appreciated!

      
      NanoBSD Firmware upgrade in progress...
      
      Installing /root/latest.tgz.
      SLICE         1
      OLDSLICE      2
      TOFLASH       ada0as1
      COMPLETE_PATH ada0as1a
      GLABEL_SLICE  pfSense0
      Wed Apr 13 00:57:19 MDT 2016
      
      total 5
      dr-xr-xr-x  25 root  wheel      512B Mar 21 17:58 .
      drwxr-xr-x  26 root  wheel      512B Mar 23 14:08 ..
      lrwxr-xr-x   1 root  wheel        4B Mar 21 17:58 ad0 -> ada0
      lrwxr-xr-x   1 root  wheel        5B Mar 21 17:58 ad0a -> ada0a
      crw-r-----   1 root  operator   0x5a Mar 21 17:58 ada0
      crw-r-----   1 root  operator   0x5c Mar 21 17:58 ada0a
      crw-------   1 root  wheel      0x23 Mar 21 17:58 agpgart
      crw-------   1 root  wheel      0x24 Mar 21 17:58 atkbd0
      crw-------   1 root  kmem       0x1d Mar 21 17:58 audit
      crw-------   1 root  wheel       0xb Apr 13 00:54 bpf
      lrwxr-xr-x   1 root  wheel        3B Mar 21 17:58 bpf0 -> bpf
      crw-------   1 root  wheel       0x6 Mar 23 22:39 console
      crw-------   1 root  wheel       0x7 Mar 21 17:58 consolectl
      crw-rw-rw-   1 root  wheel      0x39 Mar 21 17:58 crypto
      crw-rw-rw-   1 root  wheel      0x22 Mar 21 17:58 ctty
      crw-rw----   1 uucp  dialer     0x29 Mar 21 17:58 cuau0
      crw-rw----   1 uucp  dialer     0x2a Mar 21 17:58 cuau0.init
      crw-rw----   1 uucp  dialer     0x2b Mar 21 17:58 cuau0.lock
      crw-rw----   1 uucp  dialer     0x32 Mar 21 17:58 cuau1
      crw-rw----   1 uucp  dialer     0x33 Mar 21 17:58 cuau1.init
      crw-rw----   1 uucp  dialer     0x34 Mar 21 17:58 cuau1.lock
      crw-------   1 root  wheel       0x5 Mar 21 17:58 devctl
      cr--r--r--   1 root  wheel      0x4c Mar 21 17:58 devstat
      dr-xr-xr-x   2 root  wheel      512B Mar 21 17:58 fd
      crw-------   1 root  wheel       0xd Mar 21 17:58 fido
      crw-r-----   1 root  operator    0x3 Mar 21 17:58 geom.ctl
      crw-------   1 root  wheel      0x1f Mar 21 17:58 io
      lrwxr-xr-x   1 root  wheel        6B Mar 21 17:58 kbd0 -> atkbd0
      lrwxr-xr-x   1 root  wheel        7B Mar 21 17:58 kbd1 -> kbdmux0
      crw-------   1 root  wheel       0x8 Mar 21 17:58 kbdmux0
      crw-------   1 root  wheel      0x21 Mar 21 17:58 klog
      crw-r-----   1 root  kmem        0xf Mar 21 17:58 kmem
      crw-------   1 root  wheel      0x2c Mar 21 17:58 lpt0
      crw-------   1 root  wheel      0x2d Mar 21 17:58 lpt0.ctl
      crw-r-----   1 root  operator   0x5e Mar 21 17:59 md0
      crw-r-----   1 root  operator   0x5f Mar 21 17:59 md1
      crw-------   1 root  wheel      0x3c Mar 21 17:58 mdctl
      crw-r-----   1 root  kmem        0xe Mar 21 17:58 mem
      crw-rw-rw-   1 root  wheel      0x1e Mar 21 17:58 midistat
      crw-------   1 root  kmem       0x16 Mar 21 17:58 nfslock
      crw-rw-rw-   1 root  wheel      0x10 Apr 13 00:57 null
      crw-------   1 root  operator   0x4d Mar 21 17:58 pass0
      crw-r--r--   1 root  wheel      0x12 Mar 21 17:58 pci
      crw-rw----   1 root  proxy      0x38 Mar 21 17:58 pf
      crw-------   1 root  wheel      0x2e Mar 21 17:58 ppi0
      crw-rw-rw-   1 root  wheel      0x13 Mar 21 17:58 ptmx
      crw-rw-rw-   1 root  wheel      0x14 Mar 21 17:58 random
      cr--r--r--   1 root  wheel       0x4 Mar 21 17:58 sndstat
      crw-------   1 root  wheel      0x20 Mar 21 17:58 speaker
      lrwxr-xr-x   1 root  wheel        4B Mar 21 17:58 stderr -> fd/2
      lrwxr-xr-x   1 root  wheel        4B Mar 21 17:58 stdin -> fd/0
      lrwxr-xr-x   1 root  wheel        4B Mar 21 17:58 stdout -> fd/1
      crw-------   1 root  wheel       0xa Mar 21 17:58 sysmouse
      crw-------   1 root  tty        0x26 Apr 13 00:57 ttyu0
      crw-------   1 root  wheel      0x27 Mar 21 17:58 ttyu0.init
      crw-------   1 root  wheel      0x28 Mar 21 17:58 ttyu0.lock
      crw-------   1 root  wheel      0x2f Mar 21 17:58 ttyu1
      crw-------   1 root  wheel      0x30 Mar 21 17:58 ttyu1.init
      crw-------   1 root  wheel      0x31 Mar 21 17:58 ttyu1.lock
      crw-------   1 root  tty        0x4e Apr 13 00:57 ttyv0
      crw-------   1 root  wheel      0x4f Mar 21 17:58 ttyv1
      crw-------   1 root  wheel      0x50 Mar 21 17:58 ttyv2
      crw-------   1 root  wheel      0x51 Mar 21 17:58 ttyv3
      crw-------   1 root  wheel      0x52 Mar 21 17:58 ttyv4
      crw-------   1 root  wheel      0x53 Mar 21 17:58 ttyv5
      crw-------   1 root  wheel      0x54 Mar 21 17:58 ttyv6
      crw-------   1 root  wheel      0x55 Mar 21 17:58 ttyv7
      crw-------   1 root  wheel      0x56 Mar 21 17:58 ttyv8
      crw-------   1 root  wheel      0x57 Mar 21 17:58 ttyv9
      crw-------   1 root  wheel      0x58 Mar 21 17:58 ttyva
      crw-------   1 root  wheel      0x59 Mar 21 17:58 ttyvb
      crw-------   1 uucp  dialer     0x67 Mar 23 14:24 tun1
      dr-xr-xr-x   2 root  wheel      512B Mar 21 17:58 ufs
      crw-------   1 root  wheel      0x35 Mar 21 17:58 ufssuspend
      lrwxr-xr-x   1 root  wheel        9B Mar 21 17:58 ugen0.1 -> usb/0.1.0
      lrwxr-xr-x   1 root  wheel        9B Mar 21 17:58 ugen1.1 -> usb/1.1.0
      lrwxr-xr-x   1 root  wheel        9B Mar 21 17:58 ugen2.1 -> usb/2.1.0
      lrwxr-xr-x   1 root  wheel        9B Mar 21 17:58 ugen3.1 -> usb/3.1.0
      lrwxr-xr-x   1 root  wheel        9B Mar 21 17:58 ugen4.1 -> usb/4.1.0
      lrwxr-xr-x   1 root  wheel        6B Mar 21 17:58 urandom -> random
      dr-xr-xr-x   2 root  wheel      512B Mar 21 17:58 usb
      crw-r--r--   1 root  operator   0x3a Mar 21 17:58 usbctl
      crw-------   1 root  operator   0x3b Mar 21 17:58 xpt0
      crw-rw-rw-   1 root  wheel      0x11 Mar 21 17:58 zero
      
      -rw-r--r--  1 root  wheel   161M Apr 13 00:56 /root/latest.tgz
      
      MD5 (/root/latest.tgz) = 230d786b0be5b7c4fe325a301898b5a5
      
      /dev/ufs/pfSense0 on / (ufs, local, noatime, synchronous)
      devfs on /dev (devfs, local)
      /dev/md0 on /tmp (ufs, local)
      /dev/md1 on /var (ufs, local)
      devfs on /var/dhcpd/dev (devfs, local)
      
      last pid: 20219;  load averages:  0.98,  0.57,  0.35  up 22+06:58:24    00:57:21
      42 processes:  1 running, 41 sleeping
      
      Mem: 74M Active, 345M Inact, 93M Wired, 1008K Cache, 25M Buf, 1460M Free
      Swap: 
      
        PID USERNAME  THR PRI NICE   SIZE    RES STATE    TIME    WCPU COMMAND
      57310 root        1  52   20   125M 73668K nanslp  25:35   0.39% php
      57440 root        1  52   20   125M 73680K nanslp  25:35   0.10% php
       7281 root        1  52    0 10584K  2328K wait     0:00   0.10% sh
      56858 nobody      1 -22  r30 10300K  2040K nanslp  31:38   0.00% LCDd
      21911 nobody      1  20    0 11400K  5240K select  14:02   0.00% dnsmasq
      17016 root        1  20    0 10356K  1996K bpf      6:56   0.00% filterlog
      46714 root        1  20    0 12220K  4692K select   5:18   0.00% miniupnpd
      37550 root        1  52   20 10584K  2228K wait     4:06   0.00% sh
      18949 root        1  20    0 10124K  1840K select   4:00   0.00% apinger
      55409 root        1  20    0 10276K  2008K select   2:48   0.00% syslogd
      71914 root        1  20    0 13268K 13168K select   1:58   0.00% ntpd
      33293 dhcpd       1  20    0 16376K  8928K select   1:26   0.00% dhcpd
      36374 root        1  20    0 13104K  6860K kqread   0:46   0.00% lighttpd
        294 root        1  30    0 78956K 19008K kqread   0:44   0.00% php-fpm
      37852 root        1  20    0 12732K  4980K select   0:16   0.00% openvpn
      19007 root        1  20    0 11560K  2540K piperd   0:14   0.00% rrdtool
      21477 root        1  20    0 10084K  1776K kqread   0:04   0.00% dhcpleases
      23683 root        1  20    0 10236K  1916K nanslp   0:03   0.00% cron
      
      NanoBSD upgrade starting
      
      dd if=/dev/zero of=/dev/ada0as1 bs=1m count=1
      dd: /dev/ada0as1: Operation not supported
      
      /usr/bin/gzip -dc /root/latest.tgz | /bin/dd of=/dev/ada0as1 obs=64k
      dd: /dev/ada0as1: Operation not supported
      After upgrade fdisk/bsdlabel
      
      /sbin/fsck_ufs -y /dev/ada0as1a
      Can't stat /dev/ada0as1a: No such file or directory
      Can't stat /dev/ada0as1a: No such file or directory
      
      /sbin/tunefs -L pfSense0 /dev/ada0as1a
      tunefs: /dev/ada0as1a: could not find special device
      Checking for post_upgrade_command...
      
      File list:
      
      Warning: file_get_contents(/conf/file_upgrade_log.txt): failed to open stream: No such file or directory in /usr/local/www/diag_nanobsd.php on line 252
      
      Misc log:
      
      fdisk: unable to get correct path for ada0as1a: No such file or directory
      expr: syntax error
      [: : bad number
      fdisk: invalid fdisk partition table found
      bsdlabel: unable to get correct path for ada0as1: No such file or directory
      bsdlabel: unable to get correct path for ada0as2: No such file or directory
      bsdlabel: unable to get correct path for ada0as3: No such file or directory
      gzip: error writing to output: Broken pipe
      gzip: /root/latest.tgz: uncompress failed
      fdisk: invalid fdisk partition table found
      bsdlabel: unable to get correct path for ada0as1: No such file or directory
      bsdlabel: unable to get correct path for ada0as2: No such file or directory
      bsdlabel: unable to get correct path for ada0as3: No such file or directory
      mkdir: /tmp/pfSense0: File exists
      mount: /dev/ufs/pfSense0: Device busy
      cp: /tmp/pfSense0/boot/loader.conf.local: No such file or directory
      cp: /tmp/pfSense0/etc/fstab: No such file or directory
      sed: /tmp/pfSense0/etc/fstab: No such file or directory
      umount: /tmp/pfSense0: not a file system root directory
      
      fdisk/bsdlabel log:
      
      Before upgrade fdisk/bsdlabel
      ******* Working on device /dev/ada0a *******
      parameters extracted from in-core disklabel are:
      cylinders=3813 heads=16 sectors/track=63 (1008 blks/cyl)
      
      Figures below won't work with BIOS for partitions not in cyl 1
      parameters to be used for BIOS calculations are:
      cylinders=3813 heads=16 sectors/track=63 (1008 blks/cyl)
      
      Media sector size is 512
      Warning: BIOS sector numbering starts with sector 1
      Information from DOS bootblock is:
      The data for partition 1 is:
      sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
          start 63, size 3843441 (1876 Meg), flag 80 (active)
      	beg: cyl 0/ head 1/ sector 1;
      	end: cyl 740/ head 15/ sector 63
      The data for partition 2 is:
       <unused>The data for partition 3 is:
       <unused>The data for partition 4 is:
       <unused>---------------------------------------------------------------
      
      ******* Working on device /dev/ada0a *******
      parameters extracted from in-core disklabel are:
      cylinders=3813 heads=16 sectors/track=63 (1008 blks/cyl)
      
      Figures below won't work with BIOS for partitions not in cyl 1
      parameters to be used for BIOS calculations are:
      cylinders=3813 heads=16 sectors/track=63 (1008 blks/cyl)
      
      Media sector size is 512
      Warning: BIOS sector numbering starts with sector 1
      Information from DOS bootblock is:
      The data for partition 1 is:
      sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
          start 63, size 3843441 (1876 Meg), flag 80 (active)
      	beg: cyl 0/ head 1/ sector 1;
      	end: cyl 740/ head 15/ sector 63
      The data for partition 2 is:
       <unused>The data for partition 3 is:
       <unused>The data for partition 4 is:
       <unused>---------------------------------------------------------------
      
      [/code]</unused></unused></unused></unused></unused></unused>
      
      1 Reply Last reply Reply Quote 0
      • T Offline
        tbo2k
        last edited by

        We had on all 4g nanobsd 2.2.6 -> 2.3 successfully updated, but with "device busy" on remount /dev/ufs/cf when changing config files.
        Changing firewall rules or other options were not possible
        So we rolled back.

        1 Reply Last reply Reply Quote 0
        • N Offline
          NotAnAlias
          last edited by

          I have the same issue, I cannot upgrade to 2.3 from 2.2.6 nanobsd 4g 64bit.

          Same error message as well.

          "Something went wrong when trying to update the fstab entry"

          EDIT:I used the built in upgrade and that worked fine.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.