From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A528D15808B for ; Sun, 17 Apr 2022 04:45:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43837E096B; Sun, 17 Apr 2022 04:45:07 +0000 (UTC) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2BE80E095D for ; Sun, 17 Apr 2022 04:45:03 +0000 (UTC) Received: by mail-qt1-x833.google.com with SMTP id x18so2539060qtw.4 for ; Sat, 16 Apr 2022 21:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=1gJ/E4TtmvlgUD02z9PcTamTr+KU7XzGXy8UspMRTEc=; b=n59GrQ/1eL9ubRU7UIe60QHdxb8LdiJvvlE82ozCK/fVJY/k2TQsiq1aY/W5WP9H4U hNi6jXYDWsE/eL2tuLqlYZ0aUdXh6H2K5ek0GrNySIpATn7oBDP7V96rST8JbXrrXJVQ +/I7UirlWlJJQvbZxIgIta8MzQCW4hfut021lbzeQ+RUwZym0LwugVao3SjeTv9RbeYb pYP3sp3RAZQ52wnBowa8avQsPzAPF0+TdMVUKZCyeowpykGzlI8gRpQ1t2vxAk5+P1wy fpg8NN+P1+86rTXvYJrqqgSd3ex04h76K+rC1G4JGgZkjSYYxvxEscJhEfiABKYaHD/r Devg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=1gJ/E4TtmvlgUD02z9PcTamTr+KU7XzGXy8UspMRTEc=; b=LL4RXT2ST/KHu7hNwnns17QYuhGH7a2x2ju7bXun5NW7LXOaGsgYlzqL/q+EKZbjxo F3LkzdNFk3SI6rI31pUiusbja41oLcprphThRmSis1ESifcNdWrmT1ulMRHO1PA1euY1 QH1iVlH+asq25HoQqkzRMEHeqJCzSwpv2qu85lxwyfmdm/NOQY4qn/XIiD8t6sUcz0fG fpWWTdhu2myZYb2ftHrKrWaIOVrtyfgXdS7D82wgUMocpAwK80/LYVvXtYt7LSmzgUTM IBY044hGnvKapz1QlivXJv12N7xItnwtO4gqz1PQxG/XlBXYCgv5m/tX4rAwbYGQv0Yf c5cg== X-Gm-Message-State: AOAM531kG/kwuCG7lTo+s1YVpF0uKtuLh9yexyDXiAnNAMrTO3A22vR4 F2D5MnVtWssdQja6TxSuEuQ= X-Google-Smtp-Source: ABdhPJzAAItvikvi3uB+uGfwOzeGuPbS29NujBA0a76onofVzH6nMV/zVVTiPRqUSQORfi9IPkmw+Q== X-Received: by 2002:ac8:5c8a:0:b0:2e1:a65f:5122 with SMTP id r10-20020ac85c8a000000b002e1a65f5122mr3706803qta.239.1650170702749; Sat, 16 Apr 2022 21:45:02 -0700 (PDT) Received: from [192.168.0.100] (adsl-074-188-241-010.sip.asm.bellsouth.net. [74.188.241.10]) by smtp.gmail.com with ESMTPSA id b2-20020a05620a270200b0069e94a18401sm142846qkp.11.2022.04.16.21.45.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Apr 2022 21:45:02 -0700 (PDT) Subject: Re: [gentoo-user] Hard drive error from SMART To: gentoo-user@lists.gentoo.org References: <13443afe-5879-3108-a19a-9457c0b054d1@gmail.com> <04003191-bc06-ba17-b334-64577027f05a@gmail.com> <952189ba-c762-88ad-8765-1751c9b4d9bf@gmail.com> <20220416195822.583bed07@digimed.co.uk> <5b7f0481-ed7a-d612-50e6-754b1628e5b0@gmail.com> From: Dale Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AW IQQSG1h01ruv/WNXc3Q3RqOgiQH1GwUCYVJy8gAKCRA3RqOgiQH1G+waEACeTZCt77jnRAmQ AV7otKuZekDWiLi3Eig8tj5ZJiCNSYA/hI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235@gmail.com> Date: Sat, 16 Apr 2022 23:44:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 SeaMonkey/2.53.11.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 984594f0-dd96-466a-99dc-8fd4e1ece4d6 X-Archives-Hash: 7278fdd799ae3d15f509b13875936beb Rich Freeman wrote: > On Sat, Apr 16, 2022 at 6:39 PM Dale wrote: >> Neil Bothwick wrote: >>> Use /dev/disks/by/partlabel/foo or /dev/disks/by-partuuid/bar. >>> >> That's even more typing than /dev/sdk. Some things I do easily by using >> tab completion and all. When mounting, I let fstab remember the UUID >> for it. > That's what copy/paste is for. How often are you editing your > crypttab anyway? This way when you move drives around they still > work. What is crypttab?  I type in the command manually.  It's what the howtos showed.  I can't find a crypttab file.  This may make things easier.  My usual names are 8tb, 6tb and pri, short for private.  Ran out of other names. ROFL  > >> It's not like UUIDs are made to remember either. > blkid is your friend. > > This is for config files, not random mounting/unmounting. I use the > dynamic device nodes all the time if I'm just plugging a drive in and > looking at it. However, if I'm going to put it in a config file I use > a persistent ID so that I'm not running into breakage anytime things > change. > > When I'm setting it up it is just a few extra seconds to look up the > UUID and copy/paste it. When the system randomly breaks I have to go > digging through logs and config files to figure out what went wrong. > It pays for me to spend a little more time on getting my config right > when everything is fresh in my head, because when I'm troubleshooting > it will take a little while just to figure out what I did when I set > it up. > > Here is an example of one of my cryptsetup files: > cd1 UUID="1cbd5860-3469-41f7-8658-acd83d1957a0" /cd1.key > > (This is using a random key stored in a file, which works for this > particular situation. Obviously the drive is only as secure as that > file.) > > The corresponding drive blkid output is: > /dev/sdb1: UUID="1cbd5860-3469-41f7-8658-acd83d1957a0" > TYPE="crypto_LUKS" PARTUUID="a4a383a8-24c2-f74b-94d8-ca4ffc366327" > > Oh, and look at that - the first drive I set up on this system is > actually the second drive that got assigned a device name. It was > probably /dev/sda1 when I first set it up, and I added another drive > since then. > > The contained drive shows up as: > /dev/mapper/cd1: UUID="a2721813-4d10-4f69-ab2a-4beb0d6e95d7" TYPE="ext4" > > (No LVM here - this is storage for a distributed filesystem so the > volume management is effectively above the filesystem level. I can > add other drives to the cluster and they're in the pool, and if I want > to move data off this drive I can just edit a config file and the data > will be moved while online. The encryption is mainly so that if a > drive fails I don't have to worry about anybody recovering data from > it.) > I use passwords here.  I just type in sdk1 and it worked before this drive move.  I never tried to go any further than the howtos I found about using cryptsetup.  No clue on the file.  I don't see one here and don't recall reading about it either.  Gonna google on that a bit.  Interesting.  Dale :-)  :-)