LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-23-2021, 02:40 AM   #1
farzinss
LQ Newbie
 
Registered: Jul 2021
Posts: 1

Rep: Reputation: Disabled
My external hard drive doesn't show any files, and I can see just the empty space capacity


When I connecting my hard drive to the system and opening the drive, I can't see any files but files are there, hard drive just shows the free space capacity, after I checked
Code:
dmesg
I saw some errors:

Code:
[ 1463.478832] sd 7:0:0:0: [sdd] No Caching mode page found
[ 1463.478842] sd 7:0:0:0: [sdd] Assuming drive cache: write through
I don't know the above error logs are relevant or not but after that, I checked the hard with the following command:
Code:
sudo smartctl -a /dev/sdd
and this is the results:

Code:
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.19.0-17-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MK..61GSY[N]
Device Model:     TOSHIBA MK5061GSYN
Serial Number:    41OIB0APB
LU WWN Device Id: 5 000039 339a04ce7
Firmware Version: MH000C
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Jul 23 12:03:34 2021 +0430
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
Warning: This result is based on an Attribute check.
See vendor-specific Attribute list for failed Attributes.

General SMART Values:
Offline data collection status:  (0x06)	Offline data collection activity
					was aborted by the device with a fatal error.
					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: 		(  120) seconds.
Offline data collection
capabilities: 			 (0x51) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No 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: 	 ( 105) minutes.
SCT capabilities: 	       (0x003f)	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     0x002f   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0027   100   100   050    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0023   100   100   002    Pre-fail  Always       -       1597
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       8298
  5 Reallocated_Sector_Ct   0x0033   001   001   010    Pre-fail  Always   FAILING_NOW 2047
  7 Seek_Error_Rate         0x002f   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Minutes        0x0032   046   046   000    Old_age   Always       -       361h+34m
 10 Spin_Retry_Count        0x0033   253   100   030    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       6303
183 Runtime_Bad_Block       0x0032   100   100   001    Old_age   Always       -       3
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
185 Unknown_Attribute       0x0032   100   100   001    Old_age   Always       -       65535
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       123
188 Command_Timeout         0x0032   100   089   000    Old_age   Always       -       950
189 High_Fly_Writes         0x003a   100   100   001    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   065   042   040    Old_age   Always       -       35 (Min/Max 35/36)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       36
192 Power-Off_Retract_Count 0x0022   099   099   000    Old_age   Always       -       41812606
193 Load_Cycle_Count        0x0032   062   062   000    Old_age   Always       -       387576
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       654
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       16797

SMART Error Log Version: 1
ATA Error Count: 157 (device log contains only the most recent five errors)
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 157 occurred at disk power-on lifetime: 21596 hours (899 days + 20 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  04 51 00 5f 42 ce e0  Error: ABRT at LBA = 0x00ce425f = 13517407

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  35 00 18 48 42 ce e0 00      07:55:15.317  WRITE DMA EXT
  35 00 10 30 42 cc e0 00      07:55:15.308  WRITE DMA EXT
  35 00 08 30 c2 c9 e0 00      07:55:15.302  WRITE DMA EXT
  35 00 18 30 42 c7 e0 00      07:55:15.294  WRITE DMA EXT
  35 00 18 30 c2 c5 e0 00      07:55:15.288  WRITE DMA EXT

Error 156 occurred at disk power-on lifetime: 21595 hours (899 days + 19 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  04 51 00 f7 54 23 e0  Error: ABRT at LBA = 0x002354f7 = 2315511

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  35 00 10 e8 54 23 e0 00      07:04:08.908  WRITE DMA EXT
  35 00 08 e8 54 22 e0 00      07:04:08.898  WRITE DMA EXT
  35 00 10 e8 d4 20 e0 00      07:04:08.888  WRITE DMA EXT
  35 00 08 e0 54 20 e0 00      07:04:08.878  WRITE DMA EXT
  35 00 08 e0 54 1f e0 00      07:04:08.872  WRITE DMA EXT

Error 155 occurred at disk power-on lifetime: 17056 hours (710 days + 16 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  04 51 00 4f ce a3 e0  Error: ABRT at LBA = 0x00a3ce4f = 10735183

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  35 00 80 d0 cd a3 e0 00      08:55:46.888  WRITE DMA EXT
  35 00 80 50 cd a3 e0 00      08:55:46.878  WRITE DMA EXT
  35 00 80 d0 cc a3 e0 00      08:55:46.868  WRITE DMA EXT
  35 00 80 50 cc a3 e0 00      08:55:46.859  WRITE DMA EXT
  35 00 80 d0 cb a3 e0 00      08:55:46.849  WRITE DMA EXT

Error 154 occurred at disk power-on lifetime: 16808 hours (700 days + 8 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 01 f7 7c 74 e0  Error: ICRC, ABRT 1 sectors at LBA = 0x00747cf7 = 7634167

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  35 00 80 78 7c 74 e0 00      02:49:58.798  WRITE DMA EXT
  35 00 80 f8 7b 74 e0 00      02:49:58.789  WRITE DMA EXT
  35 00 80 78 7b 74 e0 00      02:49:58.779  WRITE DMA EXT
  35 00 80 f8 7a 74 e0 00      02:49:58.770  WRITE DMA EXT
  35 00 80 78 7a 74 e0 00      02:49:58.761  WRITE DMA EXT

Error 153 occurred at disk power-on lifetime: 16804 hours (700 days + 4 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  04 51 00 4f dd da e0  Error: ABRT at LBA = 0x00dadd4f = 14343503

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  35 00 08 48 dd da e0 00      00:00:10.008  WRITE DMA EXT
  35 00 08 50 dd da e0 00      00:00:09.999  WRITE DMA EXT
  35 00 08 48 dd da e0 00      00:00:09.993  WRITE DMA EXT
  25 00 40 68 7d dc e0 00      00:00:09.983  READ DMA EXT
  25 00 80 e8 7e dc e0 00      00:00:09.981  READ DMA EXT

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%      4618         -
# 2  Short offline       Completed without error       00%         2         -
# 3  Short offline       Completed without error       00%         2         -

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.
Is that any way to pull out my files and data from this hard drive?

Thank you for your help
 
Old 07-23-2021, 07:58 AM   #2
verndog
Member
 
Registered: Oct 2007
Posts: 279

Rep: Reputation: 68
Is it mounted? See output of
Code:
lsblk -f
 
Old 07-23-2021, 10:08 AM   #3
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
You need to mount it and you need to create a folder in which to mount it eg /data or /home/<username>/data etc.
 
Old 07-24-2021, 03:21 PM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Quote:
Originally Posted by petelq View Post
You need to mount it and you need to create a folder in which to mount it eg /data or /home/<username>/data etc.
Yes, I think that is a good place to start helping this guy. "When I connecting my hard drive to the system and opening the drive" is very vague, so I think it is best to start everything from the beginning like you say. Please help him with the details.

Quote:
Originally Posted by farzinss View Post
I don't know the above error logs are relevant or not but after that, I checked the hard with the following command:
Might I add that it would probably be useful to also output here the details of:
Code:
fdisk -l
Code:
df -h
Ps. Those error messages you found in dmesg are NOT relevant, so please don't panick.

Last edited by zeebra; 07-24-2021 at 03:23 PM.
 
Old 07-24-2021, 04:05 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Welcome to LinuxQuestions.

As posted the dmesg output is not relevant.

Code:
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   001   001   010    Pre-fail  Always   FAILING_NOW 2047
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       16797
However, the big sign of things going bad fast are the two posted values. If the disk i.e platters are still "readable" you can try making an image file using the ddrescue command to another drive of the same size or larger and then you can use testdisk to see if anything is recoverable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best capacity planning or capacity management tool decenter Linux - Software 1 03-27-2015 03:11 PM
format hard drive and add to existing hard drive to extend the capacity in linux boby.kumar Linux - Newbie 1 04-10-2013 07:18 AM
[SOLVED] Why doesn't fdisk show full capacity of my flash drive? EStyles Linux - Hardware 6 01-25-2013 02:38 PM
When a Hard Drive nears 100% capacity will it use another Hard Drive LnxNeophyte Linux - Newbie 7 09-24-2012 10:09 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration