Solved Cannot repair the file system using fsck.

Hello, I cannot repair the file system on my virtual machine.
Has anyone the solution to my issue?
Thank you.

Code:
# mount
/dev/vtbd0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
# fsck -t ufs -fy /dev/vtbd0p2
** /dev/vtbd0p2 (NO WRITE)
SETTING DIRTY FLAG IN READ_ONLY MODE

UNEXPECTED SOFT UPDATE INCONSISTENCY
** 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
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

ALLOCATED FILE 1066215 MARKED FREE
ALLOCATED FILE 1066217 MARKED FREE
ALLOCATED FRAGS 2219961-2219962 MARKED FREE
349881 files, 36900797 used, 39270859 free (79867 frags, 4898874 blocks, 0.1% fragmentation)

I use singile user mode.
 
Are you sure you booted to single user mode? It should be mounted read-only then, but it's not.
Only when read-only mounted fsck can actually repair things.
You could try to mount it read-only mount -r /dev/vtbd0p2 and then run fsck -y, but i'd first make sure you really booted to single user mode..
 
Yes, I am sure. I've just changed to read-write mode.
Anyway, I've rebooted again and used read-only mode.
I thought that it should be rw mode...
Thanks.
 
Back
Top