- Thread Starter
- #26
Oh, I'm really sorry, I forgot to reply.Did you try a fsck? What was the result?
Anyways, I don't know how to use it

Oh, I'm really sorry, I forgot to reply.Did you try a fsck? What was the result?
sudo fsck_ffs /dev/ada0a:
** /dev/ada0a (NO WRITE)
** SU+J Recovering /dev/ada0a
USE JOURNAL? no
** Skipping journal, falling through to full fsck
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
UNALLOCATED I=6414210 OWNER=operator MODE-100600
SIZE= 4096 MTIME=Mar 15 16:33 2022
FILE=/var/db/entropy/saved-entropy.1
UNEXPECTED SOFT UPDATE INCONSISTENCY
REMOVE? no
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPER BLK
SALVAGE? no
SUMMARY INFORMATION BAD
SALVAGE? no
BLK(S) MISSING IN BIT MAPS
SALVAGE? no
594331 files, 6852664 used, 10157318 free, (20758 frags, 1267070 blocks, 0.1% fragmentation)
Answer yes.USE JOURNAL?
Here you go.It means that old kernel and dump don't match; rules out and answers my question above.
Can you attach few lines of strings on that vmcore.3 file ?strings /var/crash/vmcore.3|head -100
.
Warning about FS not being properly dismounted after panic/sudden reboot is expected. Should there be deeper issue with the FS system would stop.
head -1000
? 100 lines is not enough, 1000 should be enough (limiting output is needed, so it's a little bit of guessing game doing this remotely). sudo startx
, after that, I installed sddm and by running sudo sddm
as a workaround. Now, I shutdown the VM a couple of times through the Virtual Box instead from doing it inside the guest because FreeBSD was not responding(It happens when I try to run mpv or vlc media players). And now I can't open sddm too! sudo fsck
it seems to me that it has gotten much worse. This is the output:** /dev/ada0a (NO WRITE)
** SU+J Recovering /dev/ada0a
USE JOURNAL? no
** Skipping journal, falling through to full fsck
SETTING DIRTY FLAG IN READ_ONLY MODE
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=6410741 (432 should be 424)
CORRECT? no
INODE 6414181: FILE SIZE 156495872 BEYOND END OF ALLOCATED FILE, SIZE SHOULD BE 229736
ADJUST? no
** Phase 2 - Check Pathnames
DIRECTORY CORRUPTED I=5294874 OWNER=jack MODE=40755
SIZE=1024 MTIME=Mar 15 21:26 2022
DIR=/usr/home/jack/.config/session
UNEXPECTED SOFT UPDATE INCONSISTENCY
SALVAGE? no
UNALLOCATED I=6414210 OWNER=operator MODE-100600
SIZE= 4096 MTIME=Mar 15 22:00 2022
FILE=/var/db/entropy/saved-entropy.2
UNEXPECTED SOFT UPDATE INCONSISTENCY
REMOVE? no
UNALLOCATED I=6900994 OWNER=_tor MODE-100600
SIZE=0 MTIME=Mar 15 22:04 2022
FILE=/var/db/tor/state
UNEXPECTED SOFT UPDATE INCONSISTENCY
REMOVE? no
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
LINK COUNT FILE I=6921337 OWNER=_tor MODE=0
SIZE=0 MTIME=Mar 15 22:04 2022 COUNT 0 SHOULD BE -1
ADJUST? no
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPER BLK
SALVAGE? no
SUMMARY INFORMATION BAD
SALVAGE? no
BLK(S) MISSING IN BIT MAPS
SALVAGE? no
594465 files, 6853308 used, 10126075 free, (19451 frags, 1263328 blocks, 0.1% fragmentation)
Um, well you see, writing 1000 lines is not exactly a trivial task, so I'm sorry, I won't be able to fulfill your wish. I pasted the 100 lines of output into a file and then copied that file to my host and the copied it again from host to another VM where I am running the FreeBSD forums. Now since I have lost sddm too (see my earlier post), how can I send it?Thanks.
Can you reupload the same command but withhead -1000
? 100 lines is not enough, 1000 should be enough (limiting output is needed, so it's a little bit of guessing game doing this remotely).
For clarification: are you able to boot this VM after crash/reboot or does it end up in single mode ? There's no need to do any fsck if after reboot machine boots up ok. You should not fsck live FS, especially /.
How much free space do you have in /var/crash (or on / as you have only one partition) ?
strings /var/crash/vmcore.3|head -1000 > vmoutput
and copy that file from the VM. Once or twice, while rebooting, I ended up in single user mode. While booting FreeBSD sometimes it reboots again. It was too fast for me to read(next time, I'm gonna record it) but it probably dumps something and the reboots.Thanks.
Can you reupload the same command but withhead -1000
? 100 lines is not enough, 1000 should be enough (limiting output is needed, so it's a little bit of guessing game doing this remotely).
For clarification: are you able to boot this VM after crash/reboot or does it end up in single mode ? There's no need to do any fsck if after reboot machine boots up ok. You should not fsck live FS, especially /.
How much free space do you have in /var/crash (or on / as you have only one partition) ?
We don't know what state is your VM in, it's hard to say what you should or should not do in your particular case. However, you should not run fsck on live system when / is mounted. Also FreeBSD will detect corrupted FS upon boot and will try to fix it automatically. If it fails to do so it drops the boot and lets you interact with it.bsduck says to run fsck, while _martin says not to.![]()
So I followed this threadIs your VM still bootable, meaning are you able to get shell ? Are you able to remotely ssh to that VM ? If yes you can just dostrings /var/crash/vmcore.3|head -1000 > vmoutput
and copy that file from the VM.
If you can't properly boot the VM you could insert the bootable CD and retrieve it from there.
I painfully type them, word for word.EDIT: btw how are you showing us the fsck output if you can't copy stuff ?
How is ZFS better than UFS? I thought it took more space. Anyways, if it is better I might use it when I install FreeBSD as main OS(now, it is just a 'side OS').I'm heavy ZFS user and don't use UFS at all nowadays.
Sometimes you don't know if one is joking on internet or not.I painfully type them, word by word.
panic: ufs_dirbad: /: bad dir ino 400652 at offset 4608: mangled entry
cpuid = 0
time = 1647226871
KDB: stack backtrace:
#0 0xffffffff80c57525 at kdb_backtrace+0x65
#1 0xffffffff80c09f01 at vpanic+0x181
#2 0xffffffff80c09d73 at panic+0x43
#3 0xffffffff80f0c11f at ufs_lookup_ino+0xe7f
#4 0xffffffff80cc9f2d at vfs_cache_lookup+0xad
#5 0xffffffff80ccdeed at cache_fplookup_noentry+0x1ad
#6 0xffffffff80ccb5f2 at cache_fplookup+0x322
#7 0xffffffff80cd666f at namei+0x6f
#8 0xffffffff80cf40df at kern_statat+0xcf
#9 0xffffffff80cf47bf at sys_fstatat+0x2f
#10 0xffffffff8108baac at amd64_syscall+0x10c
#11 0xffffffff8106243e at fast_syscall_common+0xf8
Uptime: 1h5m48s
By the features and options it provides. It's a bit heavier on resources but considering benefit/cost it's way more on benefit side. That's my personal opinion.How is ZFS better than UFS?
Is it possible to fix? Sometimes the VM is unresponsive, even after leaving it alone for couple of minutes. What do I do then?Now this could have been a result of bad shutdown previously done to this VM
fsck-ed it, now i can start sddm. but what about the problem / not being dismounted properly?also just immediately after fsck-ing it, it crashed once!do the fsck and hope for the best.
13.0-RELEASE-⋯
. <https://forums.freebsd.org/posts/523465>tunefs: soft updates: (-n) enabled tunefs: soft update journaling: (-j) enabled
… If not, I think I should delete this thread.
… You should not fsck live FS, especially / …
… you should not run fsck on live system when / is mounted …
-n
can be used on a mounted file system, do so can be meaningless[SUP]†[/SUP]-n
is omitted, the utility will not attempt any repair.… I'm heavy ZFS user and don't use UFS at all nowadays…
… grahamperrin traced and shows some bugs in 13 that were fixed. …
Open bug reports for13.1-RELEASE
:
13.1-BETA⋯
, it should be reclassified to 13.1-RELEASE
.Don't delete the thread, it may help others googling around. No need to share more strings. I'd suggest to look into why you can't read the dump (insufficient space in /var maybe?) and check what directory is affected.Erm, do you still want the strings?
If not, I think I should delete this thread.