Upgrade fails on Alix 2D13 (SOLVED)



  • I tried few times to upgrade from 2.1 but I keep getting this error:

    php: config.inc: New alert found: Something went wrong when trying to update the fstab entry. Aborting upgrade.
    

    Im using a 4GB CF card and this is my fstab

    
    cat /etc/fstab
    /dev/ufs/pfsense1 / ufs ro,sync,noatime 1 1
    /dev/ufs/cf /cf ufs ro,sync,noatime 1 1
    


  • It doesn't help you, but as a feedback to the devs: I had that problem as well with my first CF-card.
    It was a 4 GB CF, and I tried 4G/2G/1G images. The 4G told me it was too big, 2G and 1G failed with the fstab-issue.

    Now I used another CF and installed from scratch (see my other thread).

    Good luck, Stefan


  • Rebel Alliance Developer Netgate

    In this case the fstab to which the error refers is the fstab on the target slice, not /etc/fstab on the running slice. Post the full upgrade log, something else might stand out that is more relevant. Odds are though, it's no the fault of the image but of the CF itself.



  • Thanks for the replies. Can you remind me where I can find the upgrade log?


  • Rebel Alliance Developer Netgate

    Diagnostics > NanoBSD. There is a button there to view the log.



  • I think this is the relevant part:

    
    NanoBSD Firmware upgrade in progress...
    
    Installing /root/latest.tgz.
    SLICE         2
    OLDSLICE      1
    TOFLASH       ad0s2
    COMPLETE_PATH ad0s2a
    GLABEL_SLICE  pfsense1
    Wed Jan 22 23:33:00 EST 2014
    
    total 7
    dr-xr-xr-x   7 root  wheel         512B Jan 22 23:21 .
    drwxr-xr-x  25 root  wheel         512B Jan 22 23:21 ..
    crw-r-----   1 root  operator    0,  56 Jan 22 23:21 ad0
    crw-r-----   1 root  operator    0,  57 Jan 22 23:21 ad0s1
    crw-r-----   1 root  operator    0,  60 Jan 22 23:21 ad0s1a
    crw-r-----   1 root  operator    0,  58 Jan 22 23:21 ad0s2
    crw-r-----   1 root  operator    0,  61 Jan 22 23:21 ad0s2a
    crw-r-----   1 root  operator    0,  59 Jan 22 23:21 ad0s3
    crw-------   1 root  operator    0,  28 Jan 22 23:21 ata
    crw-------   1 root  wheel       0,  11 Jan 22 23:24 bpf
    lrwxr-xr-x   1 root  wheel           3B Jan 22 23:21 bpf0 -> bpf
    crw-------   1 root  wheel       0,   4 Jan 22 23:31 console
    crw-rw-rw-   1 root  wheel       0,  44 Jan 22 23:21 crypto
    crw-rw-rw-   1 root  wheel       0,  10 Jan 22 23:21 ctty
    crw-rw----   1 uucp  dialer      0,  35 Jan 22 23:21 cuau0
    crw-rw----   1 uucp  dialer      0,  36 Jan 22 23:21 cuau0.init
    crw-rw----   1 uucp  dialer      0,  37 Jan 22 23:21 cuau0.lock
    crw-rw----   1 uucp  dialer      0,  41 Jan 22 23:21 cuau1
    crw-rw----   1 uucp  dialer      0,  42 Jan 22 23:21 cuau1.init
    crw-rw----   1 uucp  dialer      0,  43 Jan 22 23:21 cuau1.lock
    crw-------   1 root  wheel       0,   5 Jan 22 23:21 devctl
    cr--------   1 root  wheel       0,  55 Jan 22 23:21 devstat
    dr-xr-xr-x   2 root  wheel         512B Jan 22 23:21 fd
    crw-------   1 root  wheel       0,  13 Jan 22 23:21 fido
    crw-r-----   1 root  operator    0,   3 Jan 22 23:21 geom.ctl
    crw-------   1 root  wheel       0,  23 Jan 22 23:21 io
    crw-------   1 root  wheel       0,   8 Jan 22 23:21 klog
    crw-r-----   1 root  kmem        0,  15 Jan 22 23:21 kmem
    dr-xr-xr-x   2 root  wheel         512B Jan 22 23:21 led
    crw-r-----   1 root  operator    0,  62 Jan 22 23:21 md0
    crw-r-----   1 root  operator    0,  64 Jan 22 23:21 md1
    crw-------   1 root  wheel       0,  48 Jan 22 23:21 mdctl
    crw-r-----   1 root  kmem        0,  14 Jan 22 23:21 mem
    crw-------   1 root  kmem        0,  16 Jan 22 23:21 nfslock
    crw-rw-rw-   1 root  wheel       0,  25 Jan 22 23:32 null
    crw-r--r--   1 root  wheel       0,  27 Jan 22 23:21 pci
    crw-rw----   1 root  proxy       0,  45 Jan 22 23:21 pf
    crw-rw-rw-   1 root  wheel       0,   9 Jan 22 23:21 ptmx
    crw-rw-rw-   1 root  wheel       0,   6 Jan 22 23:21 random
    crw-------   1 root  wheel       0,  24 Jan 22 23:21 speaker
    lrwxr-xr-x   1 root  wheel           4B Jan 22 23:21 stderr -> fd/2
    lrwxr-xr-x   1 root  wheel           4B Jan 22 23:21 stdin -> fd/0
    lrwxr-xr-x   1 root  wheel           4B Jan 22 23:21 stdout -> fd/1
    crw-------   1 root  wheel       0,  32 Jan 22 23:21 ttyu0
    crw-------   1 root  wheel       0,  33 Jan 22 23:21 ttyu0.init
    crw-------   1 root  wheel       0,  34 Jan 22 23:21 ttyu0.lock
    crw-------   1 root  wheel       0,  38 Jan 22 23:21 ttyu1
    crw-------   1 root  wheel       0,  39 Jan 22 23:21 ttyu1.init
    crw-------   1 root  wheel       0,  40 Jan 22 23:21 ttyu1.lock
    crw-------   1 uucp  dialer      0,  72 Jan 22 23:22 tun1
    dr-xr-xr-x   2 root  wheel         512B Jan 22 23:21 ufs
    dr-xr-xr-x   2 root  wheel         512B Jan 22 23:21 ufsid
    lrwxr-xr-x   1 root  wheel           9B Jan 22 23:21 ugen0.1 -> usb/0.1.0
    lrwxr-xr-x   1 root  wheel           9B Jan 22 23:21 ugen1.1 -> usb/1.1.0
    lrwxr-xr-x   1 root  wheel           6B Jan 22 23:21 urandom -> random
    dr-xr-xr-x   2 root  wheel         512B Jan 22 23:21 usb
    crw-r--r--   1 root  operator    0,  46 Jan 22 23:21 usbctl
    crw-------   1 root  operator    0,  47 Jan 22 23:21 xpt0
    crw-rw-rw-   1 root  wheel       0,  26 Jan 22 23:21 zero
    
    -rw-r--r--  1 root  wheel    79M Jan 22 23:31 /root/latest.tgz
    
    MD5 (/root/latest.tgz) = d57c15e091d57a11cf6ff302fe43021f
    
    /dev/ufs/pfsense1 on / (ufs, local, noatime, synchronous)
    devfs on /dev (devfs, local)
    /dev/ufs/cf on /cf (ufs, local, noatime, synchronous)
    /dev/md0 on /tmp (ufs, local)
    /dev/md1 on /var (ufs, local)
    devfs on /var/dhcpd/dev (devfs, local)
    
    last pid: 57372;  load averages:  1.39,  1.13,  0.77  up 0+00:11:46    23:33:06
    36 processes:  1 running, 35 sleeping
    
    Mem: 50M Active, 87M Inact, 81M Wired, 2088K Cache, 33M Buf, 11M Free
    Swap: 
    
      PID USERNAME  THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
    80342 root        1  76    0 31220K 19940K accept   0:40 11.96% php
    70851 root        1  46    0  8004K  5352K kqread   0:06  1.95% lighttpd
      293 root        1  76   20  3352K  1144K kqread   0:14  0.00% check_reload_status
    79995 root        1  76    0 29684K 18916K accept   0:13  0.00% php
    69571 root        1  44    0  3412K  1400K select   0:02  0.00% syslogd
    73778 nobody      1  44    0  4488K  2284K select   0:00  0.00% dnsmasq
    29133 root        1  44    0  3264K   868K piperd   0:00  0.00% logger
    70867 root        1  76    0 24436K 13188K wait     0:00  0.00% php
    71681 root        1  76    0 24436K 13188K wait     0:00  0.00% php
    64795 root        1  76   20  3644K  1316K wait     0:00  0.00% sh
    29090 root        1  44    0  5868K  2076K bpf      0:00  0.00% tcpdump
    34721 root        1  64   20  3264K  1224K select   0:00  0.00% apinger
    11613 root        1  64   20  6280K  6300K select   0:00  0.00% ntpd
    66858 root        1  44    0  3300K  1352K select   0:00  0.00% miniupnpd
    89866 dhcpd       1  44    0 11456K  8008K select   0:00  0.00% dhcpd
    45851 root        1  76    0  3644K  1380K wait     0:00  0.00% sh
    34850 root        1  64   20  4556K  1472K piperd   0:00  0.00% rrdtool
    36701 root        2  46    0  3480K  1112K nanslp   0:00  0.00% sshlockout_pf
    
    NanoBSD upgrade starting
    
    dd if=/dev/zero of=/dev/ad0s2 bs=1m count=1
    1+0 records in
    1+0 records out
    1048576 bytes transferred in 0.362614 secs (2891715 bytes/sec)
    
    /usr/bin/gzip -dc /root/latest.tgz | /bin/dd of=/dev/ad0s2 obs=64k
    3844449+0 records in
    30034+1 records out
    1968357888 bytes transferred in 419.503130 secs (4692117 bytes/sec)
    After upgrade fdisk/bsdlabel
    
    /sbin/fsck_ufs -y /dev/ad0s2a
    ** /dev/ad0s2a
    ** Last Mounted on /tmp/builder/_.mnt
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    6328 files, 339707 used, 3440321 free (681 frags, 429955 blocks, 0.0% fragmentation)
    
    ***** FILE SYSTEM IS CLEAN *****
    
    /sbin/tunefs -L pfsense1 /dev/ad0s2a
    Checking for post_upgrade_command...
    
    File list:
    /tmp/pfsense1
    /tmp/pfsense1/.snap
    /tmp/pfsense1/COPYRIGHT
    /tmp/pfsense1/bin
    
    ...
    
    /tmp/pfsense1/nano/default
    /tmp/pfsense1/nano/default/etc
    /tmp/pfsense1/nano/default/etc/remount
    
    Misc log:
    
    fdisk: invalid fdisk partition table found
    bsdlabel: /dev/ad0s3: no valid label found
    bsdlabel: /dev/ad0s3: no valid label found
    mount: /dev/ufs/pfsense1 : Device busy
    cp: /tmp/pfsense1/etc/fstab: No such file or directory
    sed: /tmp/pfsense1/etc/fstab: No such file or directory
    umount: /tmp/pfsense1: not a file system root directory
    
    fdisk/bsdlabel log:
    
    Before upgrade fdisk/bsdlabel
    ******* Working on device /dev/ad0 *******
    parameters extracted from in-core disklabel are:
    cylinders=7785 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=7785 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 3844449 (1877 Meg), flag 80 (active)
    	beg: cyl 0/ head 1/ sector 1;
    	end: cyl 741/ head 15/ sector 63
    The data for partition 2 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
        start 3844575, size 3844449 (1877 Meg), flag 0
    	beg: cyl 742/ head 1/ sector 1;
    	end: cyl 459/ head 15/ sector 63
    The data for partition 3 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
        start 7689024, size 102816 (50 Meg), flag 0
    	beg: cyl 460/ head 0/ sector 1;
    	end: cyl 561/ head 15/ sector 63
    The data for partition 4 is:
     <unused># /dev/ad0s1:
    type: unknown
    disk: amnesiac
    label: 
    flags:
    bytes/sector: 512
    sectors/track: 63
    tracks/cylinder: 16
    sectors/cylinder: 1008
    cylinders: 3813
    sectors/unit: 3844449
    rpm: 3600
    interleave: 1
    trackskew: 0
    cylinderskew: 0
    headswitch: 0		# milliseconds
    track-to-track seek: 0	# milliseconds
    drivedata: 0 
    
    8 partitions:
    #          size     offset    fstype   [fsize bsize bps/cpg]
      a:    3844433         16    unused        0     0   
      c:    3844449          0    unused        0     0     # "raw" part, don't edit
    # /dev/ad0s2:
    type: unknown
    disk: amnesiac
    label: 
    flags:
    bytes/sector: 512
    sectors/track: 63
    tracks/cylinder: 16
    sectors/cylinder: 1008
    cylinders: 3813
    sectors/unit: 3844449
    rpm: 3600
    interleave: 1
    trackskew: 0
    cylinderskew: 0
    headswitch: 0		# milliseconds
    track-to-track seek: 0	# milliseconds
    drivedata: 0 
    
    8 partitions:
    #          size     offset    fstype   [fsize bsize bps/cpg]
      a:    3844433         16    unused        0     0   
      c:    3844449          0    unused        0     0     # "raw" part, don't edit
    ---------------------------------------------------------------
    
    ******* Working on device /dev/ad0 *******
    parameters extracted from in-core disklabel are:
    cylinders=7785 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=7785 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 3844449 (1877 Meg), flag 80 (active)
    	beg: cyl 0/ head 1/ sector 1;
    	end: cyl 741/ head 15/ sector 63
    The data for partition 2 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
        start 3844575, size 3844449 (1877 Meg), flag 0
    	beg: cyl 742/ head 1/ sector 1;
    	end: cyl 459/ head 15/ sector 63
    The data for partition 3 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
        start 7689024, size 102816 (50 Meg), flag 0
    	beg: cyl 460/ head 0/ sector 1;
    	end: cyl 561/ head 15/ sector 63
    The data for partition 4 is:
     <unused># /dev/ad0s1:
    type: unknown
    disk: amnesiac
    label: 
    flags:
    bytes/sector: 512
    sectors/track: 63
    tracks/cylinder: 16
    sectors/cylinder: 1008
    cylinders: 3813
    sectors/unit: 3844449
    rpm: 3600
    interleave: 1
    trackskew: 0
    cylinderskew: 0
    headswitch: 0		# milliseconds
    track-to-track seek: 0	# milliseconds
    drivedata: 0 
    
    8 partitions:
    #          size     offset    fstype   [fsize bsize bps/cpg]
      a:    3844433         16    unused        0     0   
      c:    3844449          0    unused        0     0     # "raw" part, don't edit
    # /dev/ad0s2:
    type: unknown
    disk: amnesiac
    label: 
    flags:
    bytes/sector: 512
    sectors/track: 63
    tracks/cylinder: 16
    sectors/cylinder: 1008
    cylinders: 3813
    sectors/unit: 3844449
    rpm: 3600
    interleave: 1
    trackskew: 0
    cylinderskew: 0
    headswitch: 0		# milliseconds
    track-to-track seek: 0	# milliseconds
    drivedata: 0 
    
    8 partitions:
    #          size     offset    fstype   [fsize bsize bps/cpg]
      a:    3844433         16    unused        0     0   
      c:    3844449          0    unused        0     0     # "raw" part, don't edit
    ---------------------------------------------------------------</unused></unused> 
    

  • Rebel Alliance Developer Netgate

    
    fdisk: invalid fdisk partition table found
    bsdlabel: /dev/ad0s3: no valid label found
    bsdlabel: /dev/ad0s3: no valid label found
    mount: /dev/ufs/pfsense1 : Device busy
    cp: /tmp/pfsense1/etc/fstab: No such file or directory
    sed: /tmp/pfsense1/etc/fstab: No such file or directory
    umount: /tmp/pfsense1: not a file system root directory
    

    Looks like the CF itself has an issue, at least with the main partition table. Reimage entirely or replace the card.



  • Reimaged, restored my config and everything is good.
    Thanks.


Log in to reply