Mailinglist Archive: opensuse (626 mails)

< Previous Next >
Re: [opensuse] Login weirdness
  • From: Michael Fischer <michael@xxxxxxxx>
  • Date: Sun, 4 Nov 2018 11:37:51 -0500
  • Message-id: <20181104163751.tcl32o4c3enl7vde@blinkenlights>
On Sat, Nov 03, Carlos E. R. wrote:

From the LBA and the partition table you can find out the partition
involved. The next step is to find out the sector inside that partition,
doing some math, and then, find out the file, which usually requires
going through the entire list of files, the location of each file, and
compare with the target sector. Hopefully there is a tool, specific to
the filesystem, that does it.

Yes, there are google articles on it I found at some point, I should
have taken notes. Hum... where...

Sometimes I'm fortunate. I have a note I wrote describing the procedure,
but the LBA was on the SWAP, so I overwrote it entirely and done.

Telcontar:/etc # fdisk -l /dev/sda
WARNING: fdisk GPT support is currently new, and therefore in an
experimental phase. Use at your own discretion.

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt


# Start End Size Type Name
1 2048 16383 7M BIOS boot parti primary
2 16384 41961471 20G Microsoft basic primary
3 41961472 73416703 15G Microsoft basic primary <====
4 73416704 75522047 1G Microsoft basic primary
5 75522048 77625343 1G Microsoft basic primary

Telcontar:/etc # lsblk --output
NAME,KNAME,RA,RM,RO,SIZE,TYPE,FSTYPE,LABEL,PARTLABEL,MOUNTPOINT,UUID,PARTUUID,WWN,MODEL,ALIGNMENT
/dev/sda | grep sda3
├─sda3 sda3 512 0 0 15G part swap Swap_0 primary
[SWAP] 1cb5f0b4-d92a-4248-926c-0828c1f7eb48
d67674b0-b4d1-4adf-8b3e-e7cdb00703cf 0
Telcontar:/etc #

I repeated the method you describe above (amusingly, also ended up being
/dev/sda3)
...which unfortunately turned out to be /home... also made a notes-to-self
of the above routine (h/t).

In the meantime, I decided (perhaps wisely, given what I just found ^^^ here),
to purchase a replacement (EVO 860 500G) and just install that as a new /home.

Interestingly, I've not hit any READ|WRITE errors on any files in /home in
daily usage, so ... who knows which files may be affected.

Perhaps I can keep the old disk in there as some `data` partition(s), and it
might make the restore of /home easier (though I run double backup external
drives... *shrug*)

In the interest of completeness: `smartctl --test=long` results below.

(Thanks again for all the tips)


smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.14.6-1.g45f120a-default] (SUSE
RPM)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST1000DM003-1SB102
Serial Number: Z9ACC0MX
LU WWN Device Id: 5 000c50 0a28684ad
Firmware Version: CC43
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Nov 4 11:20:46 2018 EST
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: ( 41) The self-test routine was interrupted
by the host with a hard or soft reset.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off
support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 106) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1085) SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED
WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 079 063 006 Pre-fail Always
- 89280056
3 Spin_Up_Time 0x0003 096 096 000 Pre-fail Always
- 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always
- 46
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always
- 0
7 Seek_Error_Rate 0x000f 078 060 045 Pre-fail Always
- 59171948
9 Power_On_Hours 0x0032 092 092 000 Old_age Always
- 7817
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always
- 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always
- 41
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always
- 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always
- 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always
- 0
188 Command_Timeout 0x0032 100 099 000 Old_age Always
- 2 2 2
189 High_Fly_Writes 0x003a 099 099 000 Old_age Always
- 1
190 Airflow_Temperature_Cel 0x0022 063 050 040 Old_age Always
- 37 (Min/Max 30/41)
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always
- 365
194 Temperature_Celsius 0x0022 037 016 000 Old_age Always
- 37 (0 16 0 0 0)
195 Hardware_ECC_Recovered 0x001a 009 004 000 Old_age Always
- 89280056
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always
- 16
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline
- 16
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always
- 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline
- 7780h+54m+58.740s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline
- 6394009801
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline
- 373281268

SMART Error Log Version: 1
ATA Error Count: 2
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 2 occurred at disk power-on lifetime: 7815 hours (325 days + 15 hours)
When the command that caused the error occurred, the device was in an unknown
state.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
04 51 00 00 00 00 00 Error: ABRT

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
00 00 00 00 00 00 00 ff 4d+19:04:57.711 NOP [Abort queued commands]
b0 d4 00 82 4f c2 00 00 4d+19:04:36.901 SMART EXECUTE OFF-LINE IMMEDIATE
b0 d0 01 00 4f c2 00 00 4d+19:04:36.805 SMART READ DATA
ec 00 01 00 00 00 00 00 4d+19:04:36.800 IDENTIFY DEVICE
ec 00 01 00 00 00 00 00 4d+19:04:36.798 IDENTIFY DEVICE

Error 1 occurred at disk power-on lifetime: 7752 hours (323 days + 0 hours)
When the command that caused the error occurred, the device was in an unknown
state.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
04 51 00 00 00 00 00 Error: ABRT

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
00 00 00 00 00 00 00 ff 2d+03:57:39.774 NOP [Abort queued commands]
b0 d4 00 81 4f c2 00 00 2d+03:57:18.107 SMART EXECUTE OFF-LINE IMMEDIATE
b0 d0 01 00 4f c2 00 00 2d+03:57:18.000 SMART READ DATA
ec 00 01 00 00 00 00 00 2d+03:57:17.991 IDENTIFY DEVICE
ec 00 01 00 00 00 00 00 2d+03:57:17.990 IDENTIFY DEVICE

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours)
LBA_of_first_error
# 1 Extended captive Interrupted (host reset) 90% 7815 -
# 2 Extended offline Completed: read failure 50% 7808
1001593016
# 3 Extended offline Completed: read failure 50% 7807
1001593016
# 4 Extended offline Completed: read failure 50% 7804
1001593016
# 5 Extended offline Aborted by host 90% 7803 -
# 6 Short captive Interrupted (host reset) 60% 7752 -
# 7 Short offline Completed without error 00% 7752 -
# 8 Extended offline Completed: read failure 50% 7136
1001593016
# 9 Extended offline Completed: read failure 50% 6296
1001593016
#10 Extended offline Completed: read failure 50% 5624
1001593016
#11 Extended offline Completed: read failure 50% 4784
1001593016
#12 Extended offline Completed: read failure 50% 4112
1001593016
#13 Extended offline Completed: read failure 50% 3440
1001593016
#14 Extended offline Completed: read failure 50% 2600
1001593016
#15 Extended offline Completed: read failure 50% 1929
1001593016
#16 Extended offline Completed: read failure 50% 1257
1021004240
#17 Extended offline Completed: read failure 50% 585
1001593008
#18 Short offline Completed without error 00% 0 -

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.



Michael
--
Michael Fischer
michael@xxxxxxxx

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >