NetBSD Problem Report #55357

From www@netbsd.org  Sun Jun  7 14:06:49 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 505FA1A9219
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  7 Jun 2020 14:06:49 +0000 (UTC)
Message-Id: <20200607140648.6F8B01A921E@mollari.NetBSD.org>
Date: Sun,  7 Jun 2020 14:06:48 +0000 (UTC)
From: maccraft123mc@gmail.com
Reply-To: maccraft123mc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Install medium should warn when installing on pendrive that NetBSD install img has booted from
X-Send-Pr-Version: www-1.0

>Number:         55357
>Category:       install
>Synopsis:       Install medium should warn when installing on pendrive that NetBSD install img has booted from
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 07 14:10:00 +0000 2020
>Last-Modified:  Sun Jun 07 15:20:01 +0000 2020
>Originator:     macc24
>Release:        9.0
>Organization:
>Environment:
>Description:
I was trying to install NetBSD on my machine, and when choosing install target i accidentally chosen sd0 disk that was on top of list. Because my hard drive and pendrive were similar in capacity i thought that sd0 was my hard drive. In reality it was my pendrive and i just erased NetBSD install medium from it
>How-To-Repeat:
1. Put NetBSD install img on a big pendrive
2. Boot it on machine will small hard drive
3. Get confused whether hard drive is sd0 or wd0
4. Format pendrive
>Fix:
Maybe a warning that would warn the user if they are installing onto medium that NetBSD setup has booted from?
Or maybe hide medium that setup has booted from when selecting target hard drive?

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: install/55357: Install medium should warn when installing on
 pendrive that NetBSD install img has booted from
Date: Sun, 7 Jun 2020 17:15:23 +0200

 On Sun, Jun 07, 2020 at 02:10:00PM +0000, maccraft123mc@gmail.com wrote:
 > Maybe a warning that would warn the user if they are installing onto medium that NetBSD setup has booted from?
 > Or maybe hide medium that setup has booted from when selecting target hard drive?

 Unfortunately this is (a) not straight forward to implement and (b) sometimes
 wrong, as we often want to allow this (e.g. with ramdisk like setups or
 when there is additional space on the boot drive and the user wants to
 install into that).

 Overall I'm not sure this is worth a change. Install target selection should
 be done very carefully, as it could be quite destructive - and nuking the
 install medium is the least bad destruction I can imagine here.

 Martin

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.