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

    Trying to fsck

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    4 Posts 3 Posters 19.1k 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.
    • S
      sanchezluys
      last edited by

      hi…  :)

      I can´t to repair mi pfsense hdd, (1.2rc3 version) I have 3 equipment and when I install always say this:

      login as: root
      Using keyboard-interactive authentication.
      Password:
      
      *** Welcome to pfSense 1.2-RC3-pfSense on server ***
      
        WAN*                     ->   rl0     ->      190.xx.xx.xx(DHCP)
        LAN*                     ->   xl0     ->      192.168.1.1
      
       pfSense console setup
      ***********************
       0)  Logout (SSH only)
       1)  Assign Interfaces
       2)  Set LAN IP address
       3)  Reset webConfigurator password
       4)  Reset to factory defaults
       5)  Reboot system
       6)  Halt system
       7)  Ping host
       8)  Shell
       9)  PFtop
      10)  Filter Logs
      11)  Restart webConfigurator
      12)  pfSense PHP shell
      13)  Upgrade from console
      
      Enter an option: 8
      
      # ls
      .cshrc                  .login                  .shrc
      .first_time             .part_mount             .tcshrc
      .hushlogin              .profile                check_reload_status.log
      # fsck -y
      ** /dev/ad0s1a (NO WRITE)
      ** Last Mounted on /
      ** Root file system
      ** Phase 1 - Check Blocks and Sizes
      INCORRECT BLOCK COUNT I=871448 (4 should be 0)
      CORRECT? no
      
      ** Phase 2 - Check Pathnames
      ** Phase 3 - Check Connectivity
      ** Phase 4 - Check Reference Counts
      UNREF FILE I=871428  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:11 2007
      CLEAR? no
      
      UNREF FILE I=871429  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:11 2007
      CLEAR? no
      
      UNREF FILE I=871430  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:11 2007
      CLEAR? no
      
      UNREF FILE I=871431  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:11 2007
      CLEAR? no
      
      UNREF FILE I=871433  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:11 2007
      CLEAR? no
      
      UNREF FILE I=871451  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871452  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871453  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871454  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871455  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871457  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871458  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871459  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871466  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=871476  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=873536  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=873759  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=873760  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=873761  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      UNREF FILE I=873764  OWNER=root MODE=100644
      SIZE=0 MTIME=Dec  1 13:12 2007
      CLEAR? no
      
      ** Phase 5 - Check Cyl groups
      FREE BLK COUNT(S) WRONG IN SUPERBLK
      SALVAGE? no
      
      SUMMARY INFORMATION BAD
      SALVAGE? no
      
      BLK(S) MISSING IN BIT MAPS
      SALVAGE? no
      
      162342 files, 315540 used, 3422670 free (172302 frags, 406296 blocks, 4.6% fragmentation)
      #
      ```  is this a bugs of pfsense 1.2rc3 ???  I am run fsck -y in mono user but cant´t repair this…
      
      thanks...

      ** Soporte Via Correo en Venezuela **
      - diseño y puesta en marcha del portal cautivo, eliminacion de p2p, control de acceso de usuarios, instalacion y configuracion basica del pfsense, OpenVpn - Equipos con S.O. PC-BSD, OpenBSD, Linux, Win y OpenSolaris sobre x86
      www.adrianamoda.com.ve

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        It looks like you're trying to fsck a mounted partition on a running system?

        @sanchezluys:

        is this a bugs of pfsense 1.2rc3 ???

        No. It might be a FreeBSD problem, but I kind of doubt it. I think you're doing something wrong, but I'm not sure what. You should be able to boot into single user and fsck.

        1 Reply Last reply Reply Quote 0
        • Q
          Quant-or
          last edited by

          in your /etc/rc on top of everything after the #!/bin/sh add the following

          /sbin/fsck -p /dev/ad0s1a
          if [ $? -ne 0 ]; then
          fsck -y /dev/ad0s1a
          fi

          or boot in single user mode (boot -s)

          1 Reply Last reply Reply Quote 0
          • S
            sanchezluys
            last edited by

            hi!!  :D

            thanks for reply…

            @cmb:

            It looks like you're trying to fsck a mounted partition on a running system?

            **No, i run fsck -y in single mode
            I download the iso image in tree times and install this iso in tree pc´s and say this error in the tree pc´s..

            excuse my english.. thanks…**.

            ** Soporte Via Correo en Venezuela **
            - diseño y puesta en marcha del portal cautivo, eliminacion de p2p, control de acceso de usuarios, instalacion y configuracion basica del pfsense, OpenVpn - Equipos con S.O. PC-BSD, OpenBSD, Linux, Win y OpenSolaris sobre x86
            www.adrianamoda.com.ve

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