hello good day.
which command does help to test the main drive of my computer!?
Background; from time to time i hear some little sounds of/from my linux machine!?
well i look forward to see hear from you
grreetings
hello good day.
which command does help to test the main drive of my computer!?
Background; from time to time i hear some little sounds of/from my linux machine!?
well i look forward to see hear from you
grreetings
Hi Dilbert,
I am not sure if some sounds are any indication of approaching hazard, however, you may try fsck to check the filesystem.
(It should be running on boot, anyway.)
For physical check, well, if your hdd supports S.M.A.R.T. you can try smartctl part of *smartmontools.
*Both are available in the repos, you can check the man-pages for usage, root rights required.
rds
kasi
Is it the sound of the fan ?
hello good day
@vazhavandan
think that the sound has something to do with the drive.
in the past years i had several computers - that came to “DEAD” while they suffered of somekind of harddrive-crash.
well i need to test the drive. Guess the so called smart-test would be a good thing
have a great day
On 2013-04-20 08:16, dilbertone wrote:
> well i need to test the drive. Guess the so called smart-test would be
> a good thing
Yes, that’s the tool.
First query it (-a parameter), examine the output. If in doubt, post it
here (code tags, please.
Do a short test, wait two minutes, then query for the result.
Then run the long test. Wait the time it says, maybe more, then query
the result.
Alternatively, you can download and use the tool some disk manufacturers
provide. For example, Seagate provides Seatools: you burn it to a CD and
boot with it. The test is more verbose, and it can print a form valid
for returning the drive in warranty to them.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
hi all and hello Robin
thx alot for all the hints. I will run the S.M.A.R.T. tools later the weekend. Therefore i need to install them via repos. They are not shipped with the OpenSuse system.
Anyway. i do some tests with S.M.A.R.T and keep you posted
have a great weekend.
Of course they are! Even on the LiveCDs…
You can query your harddisk status like this f.e.:
sudo /usr/sbin/smartctl -a /dev/sda
On 2013-04-20 17:06, dilbertone wrote:
>
> hi all and hello Robin
>
> thx alot for all the hints. I will run the S.M.A.R.T. tools later the
> weekend. Therefore i need to install them via repos. They are not
> shipped with the OpenSuse system.
Yes, they are. The command line is named “smartctl”, installed by default.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
hello -robin now i think i can see how close to death my hard drive is.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 Köpfe, 63 Sektoren/Spur, 60801 Zylinder, zusammen 976773168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb8fa3ecd
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 63 8385929 4192933+ 82 Linux Swap / Solaris
/dev/sda2 8385930 8594774 104422+ 83 Linux
/dev/sda3 8594775 8803619 104422+ 83 Linux
/dev/sda4 * 8803620 976768064 483982222+ 5 Erweiterte
/dev/sda5 8803683 12996584 2096451 83 Linux
/dev/sda6 12996648 21382514 4192933+ 83 Linux
/dev/sda7 21382578 42347339 10482381 83 Linux
/dev/sda8 42347403 63312164 10482381 83 Linux
/dev/sda9 63312228 84276989 10482381 83 Linux
/dev/sda10 84277053 88469954 2096451 83 Linux
/dev/sda11 88470018 96855884 4192933+ 83 Linux
/dev/sda12 96855948 117820709 10482381 83 Linux
/dev/sda13 117821440 159766527 20972544 83 Linux
/dev/sda14 159768576 976766975 408499200 83 Linux
linux-wyee:/home/martin # ^C
linux-wyee:/home/martin #
linux-wyee:/home/martin # smartctl -H -A /dev/sda1
smartctl 6.0 2012-10-10 r3643 [i686-linux-3.4.33-2.24-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0
3 Spin_Up_Time 0x0007 144 144 033 Pre-fail Always - 2
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 731
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0
9 Power_On_Hours 0x0012 091 091 000 Old_age Always - 4221
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 727
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 11
193 Load_Cycle_Count 0x0012 060 060 000 Old_age Always - 404351
194 Temperature_Celsius 0x0002 148 148 000 Old_age Always - 37 (Min/Max 6/51)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0
223 Load_Retry_Count 0x000a 100 100 000 Old_age Always - 0
linux-wyee:/home/martin #
linux-wyee:/home/martin # smartctl -H -A /dev/sda2
smartctl 6.0 2012-10-10 r3643 [i686-linux-3.4.33-2.24-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
On 2013-04-21 00:56, dilbertone wrote:
>
> hello -robin now i think i can see how close to death my hard drive is.
>
Please just run
smartctl -a /dev/sda
and paste it all back here - using code tags, not php tags. Advanced
editor, ‘#’ button.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
hello dear Robin
here i have the results of the test:
linux-wyee:/home/martin # smartctl -a /dev/sda
smartctl 6.0 2012-10-10 r3643 [i686-linux-3.4.33-2.24-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 5K500.B
Device Model: Hitachi HTS545050B9A300
Serial Number: 101011PBN403B7KBEDWL
LU WWN Device Id: 5 000cca 5f0ef78f4
Firmware Version: PB4OC64G
User Capacity: 500.107.862.016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Sun Apr 21 10:59:08 2013 CEST
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
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 645) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 158) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0
3 Spin_Up_Time 0x0007 144 144 033 Pre-fail Always - 2
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 732
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0
9 Power_On_Hours 0x0012 091 091 000 Old_age Always - 4222
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 728
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 11
193 Load_Cycle_Count 0x0012 060 060 000 Old_age Always - 404361
194 Temperature_Celsius 0x0002 171 171 000 Old_age Always - 32 (Min/Max 6/51)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0
223 Load_Retry_Count 0x000a 100 100 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
linux-wyee:/home/martin #
well this test gives back a bunch of data…
On 2013-04-21 11:16, dilbertone wrote:
>
> hello dear Robin
>
>
> here i have the results of the test:
>
Let’s see…
> well this test gives back a bunch of data…
The disk appears healthy, but the section I wanted to see is this one:
> SMART Self-test log structure revision number 1
> No self-tests have been logged. [To run self-tests, use: smartctl -t]
So, you still have not run any tests (in years), and thus, the
information is almost useless. What are you waiting for running the tests?
smartctl --test=short /dev/sda
then wait the time it says (minutes), then
smartctl -a /dev/sda
and read it. You will see something like this somewhere:
> SMART Self-test log structure revision number 1
> Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
> # 1 Short offline Completed without error 00% 6997 -
which is good. Then:
smartctl --test=long /dev/sda
then wait the time it says (hours), then
smartctl -a /dev/sda
and read it. If you don’t understand it, post it here.
I told you this in a previous message, save for the explicit commands,
because the command help says how to do it. I hoped you would have read it.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)