Broken CF image at boot up
-
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 38Fatal error: main() [function.require]: F
ailed opening required 'globals.inc' (include_path='.:') in **/etc/rc.bootup> on line 38Starting 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 32Fatal error: main() [function.require]: F
ailed opening required 'config.inc' (include_path='.:') in **/etc/rc.packagesb> on line 32Executing 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 32Fatal error: main() [function.require]: F
ailed opening required 'config.inc' (include_path='.:') in /etc/rc.conf_mount
_ro on line 32Bootup 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.****
-
The symlink from /cf/conf to /conf has been damaged.
Recreate the symlink and it will function again.