[Bug 258090] sysutils/lsblk partition information shown for an SD card reader (in a dock) where there is no card

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 27 Aug 2021 15:59:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258090

--- Comment #2 from Graham Perrin <grahamperrin@gmail.com> ---
Created attachment 227478
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227478&action=edit
Konsole transcript.

Context: 

<https://lists.freebsd.org/archives/freebsd-current/2021-August/000468.html>

Lines 5–24 from within the attachment might help to explain the (much) later
residual information. A misuse of srm(1):

----

root@mowa219-gjp4-8570p-freebsd:~ # srm -lv /dev/da0p3
Using /dev/urandom for random input.
Wipe mode is insecure (two passes [0xff/random])
Wiping /dev/da0p3 Warning: /dev/da0p3 is not a regular file, rename/unlink
only!Warning: Couldn't rename /dev/da0p3 - Operation not supported
 Removed file /dev/da0p3 ... Done
root@mowa219-gjp4-8570p-freebsd:~ # wipe -nv /dev/da0p3
wipe: cannot stat `/dev/da0p3': No such file or directory
root@mowa219-gjp4-8570p-freebsd:~ # lsblk da0
DEVICE         MAJ:MIN SIZE TYPE                                          LABEL
MOUNT
da0              0:181 466G GPT                                               -
-
  da0p1          0:184 200M efi                                  msdosfs/EFISYS
-
  da0p2          0:188 512K freebsd-boot                           gpt/gptboot0
-
  <FREE>         -:-   492K -                                                 -
-
stat: /dev/da0p3: stat: No such file or directory
stat: /dev/da0p3: stat: No such file or directory
  da0p3        16G:freebsd-swap    - SWAP                                       
  da0p4          0:193 450G freebsd-zfs                                gpt/zfs0
<ZFS>
  da0p4.eli      0:196 450G zfs                                               -
-
  <FREE>         -:-   4.0K -                                                 -
-
root@mowa219-gjp4-8570p-freebsd:~ # gdisk /dev/da0

-- 
You are receiving this mail because:
You are the assignee for the bug.