From owner-freebsd-questions@freebsd.org Wed Aug 19 16:50:37 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 07CE43C4424 for ; Wed, 19 Aug 2020 16:50:37 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-oln040092065034.outbound.protection.outlook.com [40.92.65.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BWv0q5Dvkz4Ghd for ; Wed, 19 Aug 2020 16:50:35 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YozdvYU/L7H5AHICvCVlF5rN3gwUQUsqczIzNqiqVqn1RFhU+tRSdWtkAs+DRDS6jDCiE8NjXRr8Bd/ESQJwZ8MsDeFcv4zzWzNyrSsgAkTMDZBGFgPo3k8hc/F9CjduQ++HMvIIrDHmWznspkSw4E6wZqGIv0itwOY9TE2IsyqJXH3n/6pCY818VohJ4xZjf/JjjYhjrbbUUPyIW2lnOdO0YAiCDev1CanMdB6GCvKRjOdkaW/2o7G+71jftHTuPI5JWO6fdN4ZFdS0dbzB/epwC/iJYKb4X0t9GjTmjdfGxhSOHbWrBJXJwyzHT8X8MC1aidJb9LFLS5OCJVNsOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ekbwxZ/4qsK9CbEL7/ggXeo0pDWdrNcQaF79L/Otjcw=; b=RmFqJbyVzhGbZpcHKNjCVAZ8/e1okkC6UmXMps/FfnvQtnw5kVBYHkrpoFpNfNopreocooMy0Tc7HPJml7ivqHRezBdGWlQwVhKo/J5iqPysK23FoWH3pgWsyUdxMBxRl1Jtz03MfRuOTcu4msq8GfLUuupd8L6WiJk61uddG1J0NKp4LbQHnmLGywIxfnPYVdc2tlyJKHwRifFivlPo+0dOyZAEEu4VbhCZ9WUnc+HikSlBuW1lX2EM2R7u6vmulaZ9AEiDjTzKwoQzt+r64MU1ZqlrNljN0jOy9B0r1ioRGBJswkZaFF1eiy7wIw67kBIyW9UuK5C0h9XCZzL0bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ekbwxZ/4qsK9CbEL7/ggXeo0pDWdrNcQaF79L/Otjcw=; b=eHVNlJeWlDsv4fomrRst/QLNh7n2OxUUEZSv6kfd2Xjne/rpRVuWf7ZJ9TEwHSAcpGOVT6PKNpc9FIlWKjysAGcaVjyiO2FqwTUS9eUi1xUVi5RvJprN02f0p7kAl6d2+heGI8eYF6Fb6jbSdEV+sBPXExaj8YIfeAW79cOYFbKrIPonO6lj7RqDD8LNZAvz/93GHh3XlBN+rssYC6KhL20xnBM/dvGdBmkp9ibhFQf7R57HsRGuYHxKpZUZPmB/1S006AirSEcMmnHllhWgjvaXNYelZEFtmavCzO8bAt89EVZ993ikVktDUh0IgUhi5fBrutrQpsoBAB3iu+DLhA== Received: from VE1EUR01FT038.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::49) by VE1EUR01HT233.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::494) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24; Wed, 19 Aug 2020 16:50:33 +0000 Received: from DB8PR06MB6442.eurprd06.prod.outlook.com (2a01:111:e400:7e19::49) by VE1EUR01FT038.mail.protection.outlook.com (2a01:111:e400:7e19::274) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Wed, 19 Aug 2020 16:50:33 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:02929B2F38C8E2AD780628A83FDD31B0E527B2FAFCB96A28A1AD8211494790CD; UpperCasedChecksum:2EED82C8FA8541BCDCED65BF9563849D515F4DB2CA22F8B63B05EAC5117D1F3D; SizeAsReceived:9080; Count:49 Received: from DB8PR06MB6442.eurprd06.prod.outlook.com ([fe80::71dd:33c7:29cb:19ea]) by DB8PR06MB6442.eurprd06.prod.outlook.com ([fe80::71dd:33c7:29cb:19ea%7]) with mapi id 15.20.3283.028; Wed, 19 Aug 2020 16:50:32 +0000 Subject: Re: Correct way to disconnect/eject an USB hard disk ? From: Manish Jain To: freebsd@dreamchaser.org, Polytropon , Christoph Kukulies Cc: Ruben via freebsd-questions References: <20200819142952.3686baa8.freebsd@edvax.de> <950e6ab1-f29d-0bdc-53d7-df8b6a6ef91e@hotmail.com> Message-ID: Date: Wed, 19 Aug 2020 22:20:39 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 In-Reply-To: <950e6ab1-f29d-0bdc-53d7-df8b6a6ef91e@hotmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BM1PR01CA0157.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::27) To DB8PR06MB6442.eurprd06.prod.outlook.com (2603:10a6:10:126::7) X-Microsoft-Original-Message-ID: <28ca6e9c-4d22-75e2-b001-0d1a54a9644a@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.2] (45.127.44.42) by BM1PR01CA0157.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Wed, 19 Aug 2020 16:50:31 +0000 X-Microsoft-Original-Message-ID: <28ca6e9c-4d22-75e2-b001-0d1a54a9644a@hotmail.com> X-TMN: [UfJUvo/SNA3rB0WRtURALsAye4anL77Z] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: ddd5e8b2-4b41-4dca-cd0e-08d8445ffcb9 X-MS-TrafficTypeDiagnostic: VE1EUR01HT233: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 26ycUlPJGlz76Nkcqz+p6Dsd2vqjkG2EMt9MBK0W0PKwoZ2CaCLVtxBxlOzDRPQPK3fO0qlhv/nvLp/5oh/QxNkrrqTkYJFf3Mweggo3w3Wpbuwe/POhOpQL2Cnj4q1EQSDjXk7Yj5dZ4dptA4aJ/uAmE/47AFVV3/mtabxerAtxISRkJ2mg57IYQOkwYLxeE4GGrEXJTP9alH2RbYTfKg== X-MS-Exchange-AntiSpam-MessageData: glCFnb26Ndk5QT/Rl9GX8JUamea0sWKZFj+hwGtpLU79Q0ZaXsTpePD6zN1wZTKm0pLr1QD9x09eYd3J9rfVpho/0fHtilAoQ18jKnsolAVJUZjUY/hmq/lcISfs3GEEqcXBODrmEjqaZffz2DSIVA== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddd5e8b2-4b41-4dca-cd0e-08d8445ffcb9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2020 16:50:32.8130 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT038.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT233 X-Rspamd-Queue-Id: 4BWv0q5Dvkz4Ghd X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=eHVNlJeW; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of bourne.identity@hotmail.com designates 40.92.65.34 as permitted sender) smtp.mailfrom=bourne.identity@hotmail.com X-Spamd-Result: default: False [8.71 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:40.92.0.0/15:c]; FREEMAIL_FROM(0.00)[hotmail.com]; DKIM_TRACE(0.00)[hotmail.com:+]; DMARC_POLICY_ALLOW(0.00)[hotmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[45.127.44.42:received]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[45.127.44.42:received]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(0.00)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; ARC_ALLOW(0.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_SPAM_SHORT(0.31)[0.310]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; BAD_REP_POLICIES(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[40.92.65.34:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.65.34:from]; GREYLIST(0.00)[pass,meta]; MAILMAN_DEST(0.00)[freebsd-questions] X-Spam: Yes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2020 16:50:37 -0000 On 2020-08-19 22:06, Manish Jain wrote: > > > On 2020-08-19 21:12, Gary Aitken wrote: >> Can you explain why I have seen umount commands return, and then the >> USB device "activity" light keeps blinking?  I have on occasion waited >> for a while and it keeps blinking, and eventually I just unplugged it. > > No idea, Gary. > > But umount only returns when pending I/O has been flushed to the device. > If the device's activity LED still keeps blinking, there are two > explanations I can think of : > > 1) The LED sensor is either faulty or is simply signalling availability > of power (in case there is no separate power LED). > > 2) The device has some internal flash storage intermediate to its main > storage area. While umount could return when data has been sent into the > flash buffer, the device still has to internally reallocate the data to > main storage (as might be the case with SSHD: solid state hybrid disk). > In such case, it would be prudent to wait for the LED to stop blinking > before unplugging the device. But if the LED keeps blinking forever, I > would think there is some fault with the LED itself. > > Poly, your comments ? > > > Regards, > Manish Jain I have an idea which you could use to test the LED's goodness. Connect the device, mount, and copy in a few large files (3 or more ~1 GB video files should be okay) into the device (with `cp -v`). Note the name of the last file to get copied. Immediately after cp returns, umount. Immediately after umount returns, unplug. Replug the device and remount. If cmp indicates the last copied large file is the same as the original, your LED is faulty. Regards, Manish Jain