[Bug 263746] Exercise caution before suggesting commands that will destroy data

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 May 2022 04:49:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263746

            Bug ID: 263746
           Summary: Exercise caution before suggesting commands that will
                    destroy data
           Product: Documentation
           Version: Latest
          Hardware: Any
               URL: https://github.com/freebsd/freebsd-doc/blob/main/docum
                    entation/content/en/books/faq/_index.adoc#810-how-do-i
                    -use-a-new-removable-drive
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Documentation
          Assignee: doc@FreeBSD.org
          Reporter: grahamperrin@gmail.com

For example, under <https://docs.freebsd.org/en/books/faq/#removable-drives>: 

> # dd if=/dev/zero of=/dev/da0 count=2
> # gpart create -s GPT /dev/da0
> # gpart add -t freebsd-ufs /dev/da0

– there is no forewarning to check that the required drive is truly at 
  0    i.e. /dev/da0    before destroying (overwriting) what's there. 

Risk: dataloss (the required drive might be at /dev/da1 or elsewhere). 


I noticed this from a quick look at part of the book of frequently asked
questions. Whether there's a comparable lack of caution anywhere in the FreeBSD
Handbook, I don't know.

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