Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
12-30-2022, 11:15 AM
|
#1
|
Member
Registered: Apr 2016
Posts: 521
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
How to check that a new external USB hard drive does not have any hardware disk faults?
Using Linux Mint 20.2 Uma, with a desktop computer.
I have bought a new external hard drive, which connects via USB. Before starting to use it to backup data I would like to check that there are not any physical faults in the physical disk media, so that I can return it and get a refund if it has. Even though the chance may be low, I would still like to check.
I would have expected to use "SMART data & self tests" in the menu of the Disks application, but that is greyed out and not available. The HD has been plugged in to the computer for the past two or three hours. The option to "benchmark disk" is available, but that is not what I want.
My question: is there another easy way to check/scan the external HD for physical errors?
Thanks.
|
|
|
12-30-2022, 11:27 AM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,370
|
Quote:
Originally Posted by grumpyskeptic
Using Linux Mint 20.2 Uma, with a desktop computer.
I have bought a new external hard drive, which connects via USB. Before starting to use it to backup data I would like to check that there are not any physical faults in the physical disk media, so that I can return it and get a refund if it has. Even though the chance may be low, I would still like to check.
I would have expected to use "SMART data & self tests" in the menu of the Disks application, but that is greyed out and not available. The HD has been plugged in to the computer for the past two or three hours. The option to "benchmark disk" is available, but that is not what I want.
My question: is there another easy way to check/scan the external HD for physical errors?
Thanks.
|
1. Some unscrupulous dealers (Chinese) will format a hard drive with a false partition table that shows the advertised size rather than the actual size of the hard drive. To check this possibility format the file system. Then use gparted or something similar to make sure that the amount of space on the hard drive is equal to the advertised size of the hard drive.
2. Set up a loop to copy a large file over and over to the hard drive under different names until the hard drive is full. Check it with gparted again.
3. Set up a loop to copy all of the files on the hard drive to the bit bucket.
4. Format the hard drive again to get rid of all of the garbage. Check it with gparted again.
Last edited by jailbait; 12-30-2022 at 11:34 AM.
|
|
|
12-30-2022, 11:48 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412
|
Quote:
Originally Posted by grumpyskeptic
Using Linux Mint 20.2 Uma, with a desktop computer.
I have bought a new external hard drive, which connects via USB. Before starting to use it to backup data I would like to check that there are not any physical faults in the physical disk media, so that I can return it and get a refund if it has. Even though the chance may be low, I would still like to check.
I would have expected to use "SMART data & self tests" in the menu of the Disks application, but that is greyed out and not available. The HD has been plugged in to the computer for the past two or three hours. The option to "benchmark disk" is available, but that is not what I want. My question: is there another easy way to check/scan the external HD for physical errors?
|
Not through a USB enclosure. Plug it directly in to your motherboard, and you should be able run the SMART tests.
|
|
|
12-30-2022, 12:14 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,456
|
Depending on manufacture the USB SATA bridge on modern USB external drives is soldered to the drive's electronics and not possible to plug it into a motherboard like a typical desktop drive. Some USB bridges are now supported by smartctl so you can try it from the command line and see what happens.
|
|
|
12-30-2022, 12:52 PM
|
#5
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,275
|
grumpyskeptic,
Your external drive should be shown under Disks.
What is showing for Mode, Assessment and Size?
Did you actually install SMART?
Code:
sudo apt install gsmartcontrol smartmontools
Find the name of your external drive (NOT sda) which may be sdb or sdc etc.
Let's call it sdc.
To run an Extended test (about 55 minutes):
Code:
sudo smartctl -t long /dev/sdc
To display output ( after 55 mins or so):
Code:
sudo smartctl -a /dev/sdc
|
|
|
12-30-2022, 12:54 PM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412
|
Quote:
Originally Posted by michaelk
Depending on manufacture the USB SATA bridge on modern USB external drives is soldered to the drive's electronics and not possible to plug it into a motherboard like a typical desktop drive. Some USB bridges are now supported by smartctl so you can try it from the command line and see what happens.
|
Quite true. I'd bet, though, that it's just a SATA drive plugged in to a bridge adapter, and you can just unplug it from the enclosure.
|
|
|
12-31-2022, 07:07 AM
|
#7
|
Member
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 304
Rep: ![Reputation: 111](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
Quote:
Originally Posted by grumpyskeptic
I have bought a new external hard drive, which connects via USB.
[…]
My question: is there another easy way to check/scan the external HD for physical errors?
|
Depending on drive's capacity, test described below will take a long time, e. g. > 1 d for a 4 TB drive. Therefore use your second computer for this test if possible. USB 3.0 or higher is highly recommend.
- Unplug all other SSDs/HDDs from the system. Your plugged new USB drive will become /dev/sda
- Start a recent live Linux, e.g. Knoppix or grml, without GUI (Knoppix command line for start without GUI: knoppix64 2 noswap)
- Run on console: badblocks -wsv /dev/sda # This do a read-write test and wipes all data incl. any partition tables on /dev/sda.
- If badblocks throws errors return this drive. Otherwise …
- … run fdisk or another partitioning tool and create desired partitions and filesystems.
|
|
|
01-04-2023, 07:24 AM
|
#8
|
Member
Registered: Apr 2016
Posts: 521
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Quote:
Originally Posted by beachboy2
Your external drive should be shown under Disks.
What is showing for Mode, Assessment and Size?
|
I cannot find Mode, Assessment, or Size within Disks 3.38.2, not even for my internal HD. Where would I find them please?
Quote:
Originally Posted by beachboy2
Did you actually install SMART?
|
"SMART Data & Self Tests" is an entry in the Disks menu, so I assume SMART is installed. It is greyed-out for the external HD, only available for the internal HD.
It seems the answer probably is that there is no easy way to check the external HD.
Thanks to all replies.
|
|
1 members found this post helpful.
|
01-04-2023, 09:05 AM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412
|
Quote:
Originally Posted by grumpyskeptic
I cannot find Mode, Assessment, or Size within Disks 3.38.2, not even for my internal HD. Where would I find them please?
|
In the gsmartcontrol package, as you were advised to load. Did you??
Quote:
"SMART Data & Self Tests" is an entry in the Disks menu, so I assume SMART is installed. It is greyed-out for the external HD, only available for the internal HD. It seems the answer probably is that there is no easy way to check the external HD.
|
Aside from (as suggested) opening the USB enclosure and looking at what's in there. Because there are three options: - Hard-drive soldered to the wiring
- Hard drive plugged in to a USB adapter (good chance)
- Cheap knock-off, and you bought a USB flash drive in a case
meaning: - Cannot test further
- Can easily test by plugging it in
- Cannot test further, but no need, since you should return it.
|
|
|
01-05-2023, 12:11 PM
|
#10
|
Member
Registered: Apr 2016
Posts: 521
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
I now realise that Assessment is one of the "SMART Data & Self Test" spreadsheet columns in Disks.
I did install GSmartControl. For the external HD it says "Unknown model", "SMART status: Unsupported".
On the other hand Disks gives the correct model and size for it, but the "SMART Data & Self Test" in the Disks menu is greyed out and unusable.
Last edited by grumpyskeptic; 01-05-2023 at 01:27 PM.
|
|
|
01-05-2023, 01:31 PM
|
#11
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412
|
Quote:
Originally Posted by grumpyskeptic
I now realise that Assessment is one of the "SMART Data & Self Test" spreadsheet columns in Disks.
I did install GSmartControl. For the external HD it says "Unknown model", "SMART status: Unsupported".
On the other hand Disks gives the correct model and size for it, but the "SMART Data & Self Test" in the Disks menu is greyed out and unusable.
|
...which takes us full-circle, back to "open up the USB enclosure and proceed from there".
It will *STILL* fall in one of the three options previously given to you. Until you do something and look, not sure what else you think can be done. Smart is telling you, explicitly, that it cannot perform diagnostics via that USB adapter. So either you can remove it from the equation or not, and you won't know until you look.
|
|
|
01-05-2023, 03:05 PM
|
#12
|
Member
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 304
Rep: ![Reputation: 111](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
Quote:
Originally Posted by grumpyskeptic
I did install GSmartControl. For the external HD it says "Unknown model", "SMART status: Unsupported".
|
Rule of thumb: SMART doesn't work over USB.
|
|
|
All times are GMT -5. The time now is 06:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|