The officially official Devuan Forum!

You are not logged in.

#26 2021-11-23 14:08:29

Altoid
Member
Registered: 2017-05-07
Posts: 920  

Re: [SOLVED] Problems with a Seagate portable drive

Hello:

Head_on_a_Stick wrote:

... strongly recommend a SMART test on that device.

+1

See https://linoxide.com/how-to-test-ssd-hd … -in-linux/

or

Do smartctl -h to get a complete usage summary.

You don't want a drive with issues if you are using it for backups.

Best,

A.

Online

#27 2021-11-23 16:19:00

rolfie
Member
Registered: 2017-11-25
Posts: 586  

Re: [SOLVED] Problems with a Seagate portable drive

smartmontools is the keyword.

Offline

#28 2021-11-24 02:06:53

Ron
Member
Registered: 2018-04-22
Posts: 326  

Re: [SOLVED] Problems with a Seagate portable drive

I was able to test my two internal drives (they both passed), but I'm getting an error message trying to test the portable drive:

sudo smartctl -d ata -H /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-1-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: Invalid argument

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

EDIT
Okay, I'm not sure if this was right, but I changed ata in the command to scsi, and that came back like this. On the internal drives it reads PASSED, but with this it reads OK. Did I do it right?

sudo smartctl -d scsi -H /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-1-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Last edited by Ron (2021-11-24 02:19:31)

Offline

#29 2021-11-24 12:48:49

Altoid
Member
Registered: 2017-05-07
Posts: 920  

Re: [SOLVED] Problems with a Seagate portable drive

Hello:

Altoid wrote:

Do smartctl -h to get a complete usage summary.

You may want to read the summary again.    <----
Look for the -T modifier to see what it does ...

~$ sudo smartctl -h
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.10.0-0.bpo.3-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

Usage: smartctl [options] device
               --- snip ---
===== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====
               --- snip ---
  -T TYPE, --tolerance=TYPE                                           (ATA)
         Tolerance: normal, conservative, permissive, verypermissive
               --- snip ---
~$

... and use it as required by the application so it can continue:

Ron wrote:
--- snip ---
Read Device Identity failed: Invalid argument
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

External drives running through USB are sometimes tricky, some brands more than others.
Previous (limited) experience has shown me that this is many times due to problematic access to the USB controller chip inside the external drive's case.

While you can use other ie: -d modifiers, I expect that using -T will allow the application to decide the device's type and act accordingly.

For example, a run on an old 40Gb (!) USB drive I have:

groucho@devuan:~$ sudo smartctl -i -a -T verypermissive /dev/sdg1
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.10.0-0.bpo.3-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SAMSUNG
Product:              MP0402H
Revision:             0811
User Capacity:        40,060,403,712 bytes [40.0 GB]
Logical block size:   512 bytes
Device type:          disk
Local Time is:        Wed Nov 24 09:33:25 2021 -03
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

Device does not support Self Test logging
~$ 

Running this ...

~$ sudo smartctl -i -a -T verypermissive /dev/sdx

... should get you some results.

Best,

A.

Last edited by Altoid (2021-11-25 12:29:20)

Online

#30 2021-11-25 03:20:48

Ron
Member
Registered: 2018-04-22
Posts: 326  

Re: [SOLVED] Problems with a Seagate portable drive

Earlier I used the sudo smartctl -a /dev/sdc command. It shows this:

$ sudo smartctl -a /dev/sdc
[sudo] password for ron: 
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-1-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Momentus 7200.5
Device Model:     ST9500424AS
Serial Number:    - redacted -
LU WWN Device Id: - redacted -
Firmware Version: 0001BSM1
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Wed Nov 24 21:16:47 2021 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
 - - snip - -

Offline

Board footer