Lost pfsense0 slice



  • Hello,

    I recently switched to embedded system and been playing with my ALIX board. I have a 4G compact flash. I have tried upgrading but have pulled the embedded version instead of the nanobsd upgrade image version. Realizing this, I made the system boot off the second slice and tried to duplicate this slice (ad0s1) to the primary slice (ad0s0). This might have screwed up the compact flash so I ended up with just one good slice. Is there any manual procedure we can do aside from re-flashing the compact flash to recover?

    Some displays:

    pfsense2:~#  df
    Filesystem        1K-blocks  Used  Avail Capacity  Mounted on
    /dev/ufs/pfsense1  1898582 81050 1665645    5%    /
    devfs                    1    1      0  100%    /dev
    /dev/md0              39406    4  36250    0%    /var/tmp
    /dev/md1              59246  6672  47836    12%    /var
    /dev/ufs/cf          50527  1318  45167    3%    /cf
    devfs                    1    1      0  100%    /var/dhcpd/dev
    pfsense2:~#  ls -l /dev/ufs
    total 0
    crw-r–---  1 root  operator    0,  73 Nov 12 02:46 cf
    crw-r-----  1 root  operator    0,  75 Nov 12 02:46 pfsense1

    pfsense2:~#  fdisk ad0
    ******* Working on device /dev/ad0 *******
    parameters extracted from in-core disklabel are:
    cylinders=7964 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=7964 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 3861585 (1885 Meg), flag 80 (active)
            beg: cyl 0/ head 1/ sector 1;
            end: cyl 758/ head 15/ sector 63
    The data for partition 2 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
        start 3861711, size 3861585 (1885 Meg), flag 0
            beg: cyl 759/ head 1/ sector 1;
            end: cyl 493/ head 15/ sector 63
    The data for partition 3 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
        start 7723296, size 102816 (50 Meg), flag 0
            beg: cyl 494/ head 0/ sector 1;
            end: cyl 595/ head 15/ sector 63
    The data for partition 4 is:
    <unused>pfsense2:~#</unused>


Log in to reply