Re: USB storage key error

From: Polytropon <freebsd_at_edvax.de>
Date: Mon, 07 Oct 2024 10:59:01 UTC
On Sat, 5 Oct 2024 13:17:58 +0200, Andrea Venturoli wrote:
> I'm getting this:
> > kernel: UFS /dev/da0 (/mnt/HD) cylinder checkhash failed: cg 18, cgp: 0x5b68e98 != bp: 0x352516c
>
> Does it mean the USB key is broken and I can throw it away?

Quite possible. I recently had a similar problem - stick went
to "no write" mode after having multiple fsck errors and system
crashes, including damaged binaries...



> I can write to it, unmount it, but when I try to mount it again it gives:
> > mount: /dev/da0: R/W mount on /mnt/HD denied. Filesystem is not clean - run fsck.: Operation not permitted

Run fsck manually, two or three times. Also try to re-initalize
the file system. Also perform a dd or tar test with the stick.
If any test fails, it's designed to be thrown away.

Any mount operation (except "mount -r") will intendedly (!) fail
if the file system is not in a clean state. So performing

	# fsck -yf /dev/da0

is needed, as mentioned maybe multiple times.



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...