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

Broken CF image at boot up

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 2.5k 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
    sbyoon
    last edited by Jan 31, 2007, 6:05 PM

    I found pfsene embedded image is easily broken due to power failuar during boot up. Below is the message from serial console when the CF image is broken.

    ################################################
    Setting up embedded specific environment… done.
    Mounting filesystems...WARNING: /cf was not properly dismounted
    WARNING: R/W mount of / denied.  Filesystem is not clean - run fsck
    mount: /dev/ufs/pfSense: Operation not permitted
    ** /dev/ufs/pfSense
    ** Last Mounted on /
    ** Root file system
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    1985 files, 51860 used, 61895 free (2343 frags, 7444 blocks, 2.1% fragmentation)

    ***** FILE SYSTEM MARKED CLEAN *****
    ** /dev/ufs/pfSenseCfg (NO WRITE)
    ** Last Mounted on /cf
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    8 files, 16 used, 1855 free (31 frags, 228 blocks, 1.7% fragmentation)
    WARNING: R/W mount of /cf denied.  Filesystem is not clean - run fsck
    mount: /dev/ufs/pfSenseCfg: Operation not permitted
    ** /dev/ufs/pfSenseCfg
    ** Last Mounted on /cf
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    8 files, 16 used, 1855 free (31 frags, 228 blocks, 1.7% fragmentation)

    ***** FILE SYSTEM MARKED CLEAN *****
    done.
    Creating symlinks......done.
    Launching PHP init system... done.
    Initializing....

    Warning:  main(globals.inc) [function.main]:
    failed to open stream: No such file or directory in /etc/rc.bootup on lin
    e 38

    Fatal error:  main() [function.require]: F
    ailed opening required 'globals.inc' (include_path='.:') in **/etc/rc.bootup> on line 38

    Starting CRON… done.
    Syncing packages...

    Warning:  main(config.inc) [function.main]: f
    ailed to open stream: No such file or directory in /etc/rc.packages on li
    ne 32

    Fatal error:  main() [function.require]: F
    ailed opening required 'config.inc' (include_path='.:') in **/etc/rc.packagesb> on line 32

    Executing rc.d items…
    Stopping /usr/local/etc/rc.d/.sh...done.
    Starting /usr/local/etc/rc.d/
    .sh...done.

    Warning:  main(config.inc) [function.main]: f
    ailed to open stream: No such file or directory in /etc/rc.conf_mount_ro
    on line 32

    Fatal error:  main() [function.require]: F
    ailed opening required 'config.inc' (include_path='.:') in /etc/rc.conf_mount
    _ro
    on line 32

    Bootup complete

    FreeBSD/i386 (Amnesiac) (console)

    Password:

    #########################################################

    As I searched on forum, it can be fixed with fsck -y on single user mode. I think this login prompt is for single user mode. But I cannot login with root password. Is there any special password for log in for it.

    If this login prompt is not for single user mode, is there any other way to boot with single user mode with embedded version?

    Thank you.****

    1 Reply Last reply Reply Quote 0
    • S
      sullrich
      last edited by Jan 31, 2007, 6:26 PM

      The symlink from /cf/conf to /conf has been damaged.

      Recreate the symlink and it will function again.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received