You are not logged in.

#1 2018-10-06 15:45:24

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

[SOLVED] Encrypted root SSD remounted readonly and system freezes

I bought a used HP 350 G1 laptop with a brand new Samsung SSD 860 EVO 250GB harddisk. I installed Archlinux with Lightdm and Plasma as follows:

root@archiso ~ # parted -l
Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  1066kB  1049kB                     bios_grub
 2      1066kB  2149MB  2147MB  ext3         boot
 3      2149MB  250GB   248GB                root

I encrypted sda3 for the root patition.

/etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="root=/dev/mapper/cryptroot cryptdevice=/dev/disk/by-uuid/3c692597-df0e-4edb-a05f-3f177ca29ed8:cryptroot"

/etc/lstab:

# /dev/mapper/cryptroot
UUID=c55af03b-e511-42ef-9ab5-37fa97377924       /               ext4            rw,noatime,discard      0 1
# /dev/sda2
UUID=33eb89ae-c88f-4566-a507-8e900af86c23       /boot           ext3            rw,noatime      0 2

My problem:
The system (Plasma with Palemoon, Firefox, Krusader, CUPS, tmux, fish) works blazing fast and perfectly but after about one hour or several hours the system freezes and either
1 writes some errors onto the console about the disk being remounted read-only hence unable to write logfiles, or
2 dies completely, or
3 does not spit out any messages but simply refuses to even execute an ls command (it says input-output error), the mouse still moves in Plasma, but I' unable to start any programs and already running programs crash on interaction.

I check the CPU temperature regularly during the whole time, it does not increase.

I ran

badblocks /dev/sda1
badblocks /dev/sda2
badblocks /dev/sda3
smartctl -t short /dev/sda

all returned no errors.

Now I'm out of ideas. When I bought the laptop there was a working Windows 10 installed on it, but I didn't run it for more than two minutes before wiping it so I don't know if the problem occured with windows as well. The seller said (of course) that the laptop worked perfectly. There is no warranty.
Please, if anyone can come up with ideas how to proceed with this, speak up.


UPDATE:
I forgot to mention that the system freezes only when booted from the harddrive, when I boot from the pendrive used to install archlinux it just works perfectly. That is why I suspected a hard disk failure.

Last edited by SanskritFritz (2018-10-07 19:12:16)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#2 2018-10-06 15:50:29

firecat53
Member
From: Lake Stevens, Wa
Registered: 2007-05-14
Posts: 1,504
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

Try a long smartctl test. It sounds a lot like hard drive failures I've had in the past. Run a RAM check too.

Offline

#3 2018-10-06 15:52:16

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

And I also forgot to mention, that right now I'm running the long test big_smile


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2018-10-06 18:27:19

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

So, after running the long test here is the result:

root@archiso ~ # smartctl -a /dev/sda
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.18.5-arch1-1-ARCH] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Samsung SSD 860 EVO 250GB
Serial Number:    S3YJNB1K286074W
LU WWN Device Id: 5 002538 e401e8723
Firmware Version: RVT01B6Q
User Capacity:    250,059,350,016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Oct  6 18:22:46 2018 UTC
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:                (    0) seconds.
Offline data collection
capabilities:                    (0x53) 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.
                                        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:        (  85) 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: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       40
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       64
177 Wear_Leveling_Count     0x0013   100   100   000    Pre-fail  Always       -       0
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   073   054   000    Old_age   Always       -       27
195 Hardware_ECC_Recovered  0x001a   200   200   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       0
235 Unknown_Attribute       0x0012   099   099   000    Old_age   Always       -       14
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       146818966

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%        37         -
# 2  Short offline       Completed without error       00%        36         -

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.

UPDATE: I also ran memtest86+  now for hours, no errors.

Last edited by SanskritFritz (2018-10-06 21:19:24)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#5 2018-10-06 20:22:54

loqs
Member
Registered: 2014-03-06
Posts: 7,471

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

Offline

#6 2018-10-06 20:25:00

mxfm
Member
Registered: 2015-10-23
Posts: 95

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

The symptoms you mentioned are exactly as in my case with external USB with bad cable. My solution was to buy new disk.

The reason behind io errors is follows. After cable disconnects, so does sdx device with devmapper link. This makes not cached in memory binaries unavailable.

Offline

#7 2018-10-06 21:02:08

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

loqs wrote:

It is set as follows now:

 ~> cat /sys/class/scsi_host/host*/link_power_management_policy
med_power_with_dipm

Should I set it to max_performance?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#8 2018-10-06 21:03:15

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

mxfm wrote:

The symptoms you mentioned are exactly as in my case with external USB with bad cable. My solution was to buy new disk.
The reason behind io errors is follows. After cable disconnects, so does sdx device with devmapper link. This makes not cached in memory binaries unavailable.

So maybe simply shaking the laptop should cause the crash?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#9 2018-10-06 21:05:02

loqs
Member
Registered: 2014-03-06
Posts: 7,471

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

SanskritFritz wrote:
loqs wrote:

It is set as follows now:

 ~> cat /sys/class/scsi_host/host*/link_power_management_policy
med_power_with_dipm

Should I set it to max_performance?

Yes I would add a udev rule setting it to max_performance on boot and see if it has any effect.

Offline

#10 2018-10-06 21:17:13

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

loqs wrote:

Yes I would add a udev rule setting it to max_performance on boot and see if it has any effect.

OK thanks, so I did. Now let's see it on the long run...


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#11 2018-10-07 19:11:27

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,773
Website

Re: [SOLVED] Encrypted root SSD remounted readonly and system freezes

@loqs
Thank you, this seems to have solved the issue. The laptop is running continuously since yesterday without crash.
I'll mark this thread as solved, and we'll start using the system full time now.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

Board footer

Powered by FluxBB