From nobody Wed Sep 28 14:52:09 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mczwy56RJz4YJlZ for ; Wed, 28 Sep 2022 14:52:18 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "dreamchaser.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mczwx5qhlz3g0P for ; Wed, 28 Sep 2022 14:52:17 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.16.1/8.16.1) with ESMTP id 28SEq9Zj064053 for ; Wed, 28 Sep 2022 08:52:09 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) To: FreeBSD Mailing List Reply-To: freebsd@dreamchaser.org From: Gary Aitken Subject: understanding start-up fsck Message-ID: <8e9ad33b-023f-5100-d24a-3c739acb6f34@dreamchaser.org> Date: Wed, 28 Sep 2022 08:52:09 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (nightmare.dreamchaser.org [192.168.151.101]); Wed, 28 Sep 2022 08:52:09 -0600 (MDT) X-Rspamd-Queue-Id: 4Mczwx5qhlz3g0P X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I've never used hot-plugged disks before, and was pretty bewildered by the following: Config: ada0 system disk sata 2.0 ada1 user data disk sata 2.0 brought sys down normally, reconfigured BIOS for hot plugging. reboot ada2 hot plug new disk, sata 3.0 configure new disk using gpart put file systems on new disk using newfs add entry to fstab: /dev/gpt/fbsd-2TB-bkup /mnt/backup ufs rw,noauto 0 5 write backup to new disk; leave sys partitions on new disk empty. sync, then shutdown using "shutdown -p now" unplug the new disk install new fan, boot into BIOS configure fan speeds turn BIOS up to sata 3.0 reboot When I rebooted, BIOS tried to boot either the non-existant new disk, or the data disk. reconfigure BIOS -- the disk order had changed. turn BIOS back to sata 2.0 When rebooted, ada0 and ada1 skipped fsck because shut down normally. But then it complained about the new disk not being shut down properly, and gave me the shell prompt. 1. Why was it complaining about a disk not being shut down properly, when it wasn't even plugged in? 2. Why was it complaining about a disk not being shut down properly, when the system was sync'd (I believe that is not supposed to be necessary) and then shut down using "shutdown -p now" 3. Should I not have an fstab entry for a hot-plugged disk? bewildered... Gary