Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login


<doogie> Thinking is dangerous. It leads to ideas. -- Seen on #Debian

devel / comp.unix.bsd.freebsd.misc / Oops: unplugged flash drive without unmounting

o Oops: unplugged flash drive without unmountingWinston

Oops: unplugged flash drive without unmounting


  copy mid

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
From: (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Oops: unplugged flash drive without unmounting
Date: Fri, 08 Apr 2022 12:09:18 -0400
Organization: NNTP Server
Message-ID: <>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info:; logging-data="10937"; posting-host=""; mail-complaints-to="";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Mail-Copies-To: never
Cancel-Lock: sha1:9zxg3aIp2t2vtYFFxkuV9wEkd5U=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Winston - Fri, 8 Apr 2022 16:09 UTC


I accidentally unplugged a USB flash drive without first unmounting it.
The file partition had a UFS2 fs.

Before discovering that mistake, I had mounted and unmounted other
flash drives on the same mount point.

When I saw that /mnt still claimed to have a fs mounted, I figured out
which flash drive it had been, and plugged it back in.

Not surprisingly, umount didn't seem to care that the drive had been
plugged back in, and did a forcible unmount.

Attempting to mount the partition failed (as expected), saying unclean,
run fsck. fsck just gave a quick error that implied the fs was no
longer usable. fsck_ffs and fsck_ufs tried harder, but reported a flood
of problems (mostly INODE CHECK-HASH FAILED, but earlier ones reported
problems with the cylinder group, superblock, etc.) at terminal speed
before I ^C'd it. Since the drive was just a backup copy of something
else, I newfs'ed it, and the drive now works again.


* Was there anything I could have done to re-associate the drive with
the mount point?

* I'm a bit surprised that failing to umount would leave the fs in such
bad shape. In case the drive had had something important on it, is
there a better way than fsck* to fix a UFS2 fs that was detached
without umount'ing, or is the only solution to let fsck do its thing
and hope that the file(s) are still there when it's finished?


devel / comp.unix.bsd.freebsd.misc / Oops: unplugged flash drive without unmounting


rocksolid light 0.9.81
clearnet tor