손상된 고아 연결 목록의 일부인 Inode가 발견되었습니다. 원인을 이해하고 해결하는 방법은 무엇입니까?

손상된 고아 연결 목록의 일부인 Inode가 발견되었습니다. 원인을 이해하고 해결하는 방법은 무엇입니까?

저는 지금은 없어진 Alpha Computers에서 Centurion Nano를 구입했습니다. 여기에는 Alpha OS(본질적으로 변조된 Ubuntu)가 포함되어 있습니다.

$ cat /etc/os-release
NAME="Alpha OS"
VERSION="1.0.0 Polaris"
ID="alpha-os"
ID_LIKE=ubuntu
PRETTY_NAME="Alpha OS 1.0.0 Polaris"
VERSION_ID="1.0.0"
HOME_URL="https://alpha.store/"
SUPPORT_URL="https://alpha.store/forums/forum/alpha-product-discussion/"
BUG_REPORT_URL="https://alpha.store/forums/forum/alpha-product-discussion/"
VERSION_CODENAME=polaris
UBUNTU_CODENAME=polaris
$ uname -a
Linux centurion 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

오늘 부팅한 후 /마운트가 읽기 전용이라는 것을 확인하고 재부팅했는데 다음 메시지가 표시되었습니다.

Inodes that were part of a corrupted orphan linked list found.
UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

/dev/sdb2. 이번이 한 달 동안 두 번째로 발생하므로 이 문제의 원인이 무엇인지, 다시는 이런 일이 발생하지 않도록 하려면 어떻게 해야 합니까? 처음으로 시스템 종료 시 시스템이 중단된 것으로 생각하고 전원을 껐습니다. 이번에는 종료가 성공적으로 완료되었습니다.

드라이브에 대한 자세한 내용은 다음과 같습니다.

dat@centurion:~$ sudo hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
    Model Number:       Lenovo SSD SL700 M.2 128G               
    Serial Number:      B0E1077A19DD00000503
    Firmware Revision:  SBFM51.2
    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
    Supported: 11 10 9 8 7 6 5 
    Likely used: 11
Configuration:
    Logical     max current
    cylinders   16383   16383
    heads       16  16
    sectors/track   63  63
    --
    CHS current addressable sectors:   16514064
    LBA    user addressable sectors:  250069680
    LBA48  user addressable sectors:  250069680
    Logical  Sector size:                   512 bytes
    Physical Sector size:                   512 bytes
    Logical Sector-0 offset:                  0 bytes
    device size with M = 1024*1024:      122104 MBytes
    device size with M = 1000*1000:      128035 MBytes (128 GB)
    cache/buffer size  = unknown
    Form Factor: less than 1.8 inch
    Nominal Media Rotation Rate: Solid State Device
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, no device specific minimum
    R/W multiple sector transfer: Max = 16  Current = 16
    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
         Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4 
         Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
    Enabled Supported:
       *    SMART feature set
            Security Mode feature set
       *    Power Management feature set
       *    Write cache
       *    Look-ahead
       *    Host Protected Area feature set
       *    WRITE_BUFFER command
       *    READ_BUFFER command
       *    NOP cmd
       *    DOWNLOAD_MICROCODE
            SET_MAX security extension
       *    48-bit Address feature set
       *    Device Configuration Overlay feature set
       *    Mandatory FLUSH_CACHE
       *    FLUSH_CACHE_EXT
       *    SMART error logging
       *    SMART self-test
       *    General Purpose Logging feature set
       *    WRITE_{DMA|MULTIPLE}_FUA_EXT
       *    64-bit World wide name
       *    WRITE_UNCORRECTABLE_EXT command
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Gen3 signaling speed (6.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Phy event counters
       *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
       *    DMA Setup Auto-Activate optimization
            Device-initiated interface power management
       *    Software settings preservation
       *    DOWNLOAD MICROCODE DMA command
       *    SET MAX SETPASSWORD/UNLOCK DMA commands
       *    WRITE BUFFER DMA command
       *    READ BUFFER DMA command
       *    DEVICE CONFIGURATION SET/IDENTIFY DMA commands
       *    Data Set Management TRIM supported (limit 8 blocks)
Security: 
    Master password revision code = 65534
        supported
    not enabled
    not locked
        frozen
    not expired: security count
        supported: enhanced erase
    20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 0000000000000000
    NAA     : 0
    IEEE OUI    : 000000
    Unique ID   : 000000000
Checksum: correct

ext4로 마운트된 파티션

dat@centurion:~$ blkid /dev/sdb2 
/dev/sdb2: UUID="3fd4075e-6d86-4535-9db6-f78b29f942e8" TYPE="ext4" PARTUUID="b4da84e6-2d39-4a40-b732-581a79ae72af"
dat@centurion:~$ cat /etc/mtab | grep sdb2
/dev/sdb2 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0

암호화된 홈 디렉토리 포함

dat@centurion:~$ cat /etc/mtab | grep home
/home/dat/.Private /home/dat ecryptfs rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=sumtin,ecryptfs_sig=sumtinelse,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs 0 0

복구 프로세스에 대한 세부정보는 다음과 같습니다.

전체 복구 프로세스

SMART(및 비SMART) 값:

dat@centurion:~$ sudo smartctl -x /dev/sdb
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-29-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Lenovo SSD SL700 M.2 128G
Serial Number:    B0E1077A19DD00000503
LU WWN Device Id: 0 000000 000000000
Firmware Version: SBFM51.2
User Capacity:    128,035,676,160 bytes [128 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      < 1.8 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0x0ff8) (minor revision not indicated)
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Oct 10 11:58:55 2018 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Unavailable

=== 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:        (65535) seconds.
Offline data collection
capabilities:            (0x79) SMART execute Offline immediate.
                    No Auto Offline data collection support.
                    Suspend Offline collection upon new
                    command.
                    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:    (   2) minutes.
Extended self-test routine
recommended polling time:    (  30) minutes.
Conveyance self-test routine
recommended polling time:    (   6) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   050    -    0
  9 Power_On_Hours          -O--C-   100   100   000    -    2404
 12 Power_Cycle_Count       -O--C-   100   100   000    -    283
168 Unknown_Attribute       -O--C-   100   100   000    -    0
170 Unknown_Attribute       PO----   094   094   010    -    76
173 Unknown_Attribute       -O--C-   100   100   000    -    1769532
192 Power-Off_Retract_Count -O--C-   100   100   000    -    36
194 Temperature_Celsius     PO---K   067   067   000    -    33 (Min/Max 33/33)
218 Unknown_Attribute       PO-R--   100   100   050    -    0
231 Temperature_Celsius     PO--C-   100   100   000    -    97
241 Total_LBAs_Written      -O--C-   100   100   000    -    1901
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O     51  Comprehensive SMART error log
0x03       GPL     R/O     64  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  SATA NCQ Queued Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log

SMART Extended Comprehensive Error Log Version: 1 (64 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 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.

SCT Commands not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             283  ---  Lifetime Power-On Resets
0x01  0x010  4            2404  ---  Power-on Hours
0x01  0x018  6      3987986978  ---  Logical Sectors Written
0x01  0x028  6      1577724785  ---  Logical Sectors Read
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              33  ---  Current Temperature
0x05  0x020  1              33  ---  Highest Temperature
0x05  0x028  1              33  ---  Lowest Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               2  ---  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  4            2  Transition from drive PhyRdy to drive PhyNRdy
0x000a  4            2  Device-to-host register FISes sent due to a COMRESET
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0010  2            0  R_ERR response for host-to-device data FIS, non-CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x0013  2            0  R_ERR response for host-to-device non-data FIS, non-CRC

syslog에서 sdb2가 다시 마운트된 항목을 볼 수 있지만 이를 해석하는 방법을 모르겠고 나와 관련된 다른 항목을 찾을 수 없습니다.

Oct  9 10:21:38 centurion kernel: [    2.621017] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Oct  9 10:21:38 centurion kernel: [    2.621040] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Oct  9 10:21:38 centurion kernel: [    2.621064] ata2: SATA link down (SStatus 4 SControl 300)
Oct  9 10:21:38 centurion kernel: [    2.621258] ata3.00: ATA-11: Lenovo SSD SL700 M.2 128G, SBFM51.2, max UDMA/133
Oct  9 10:21:38 centurion kernel: [    2.621259] ata3.00: 250069680 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
Oct  9 10:21:38 centurion kernel: [    2.621479] ata3.00: configured for UDMA/133
Oct  9 10:21:38 centurion kernel: [    2.621588] ata1.00: ATA-10: HGST HTS541010B7E610, 01.01A01, max UDMA/133
Oct  9 10:21:38 centurion kernel: [    2.621589] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
Oct  9 10:21:38 centurion kernel: [    2.622197] ata1.00: configured for UDMA/133
Oct  9 10:21:38 centurion kernel: [    2.622455] scsi 0:0:0:0: Direct-Access     ATA      HGST HTS541010B7 1A01 PQ: 0 ANSI: 5
Oct  9 10:21:38 centurion kernel: [    2.622683] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
Oct  9 10:21:38 centurion kernel: [    2.622684] sd 0:0:0:0: [sda] 4096-byte physical blocks
Oct  9 10:21:38 centurion kernel: [    2.622692] sd 0:0:0:0: [sda] Write Protect is off
Oct  9 10:21:38 centurion kernel: [    2.622693] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Oct  9 10:21:38 centurion kernel: [    2.622699] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Oct  9 10:21:38 centurion kernel: [    2.622725] sd 0:0:0:0: Attached scsi generic sg0 type 0
Oct  9 10:21:38 centurion kernel: [    2.622957] scsi 2:0:0:0: Direct-Access     ATA      Lenovo SSD SL700 51.2 PQ: 0 ANSI: 5
Oct  9 10:21:38 centurion kernel: [    2.623168] sd 2:0:0:0: Attached scsi generic sg1 type 0
Oct  9 10:21:38 centurion kernel: [    2.623280] sd 2:0:0:0: [sdb] 250069680 512-byte logical blocks: (128 GB/119 GiB)
Oct  9 10:21:38 centurion kernel: [    2.623337] sd 2:0:0:0: [sdb] Write Protect is off
Oct  9 10:21:38 centurion kernel: [    2.623338] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Oct  9 10:21:38 centurion kernel: [    2.623379] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Oct  9 10:21:38 centurion kernel: [    2.641154]  sda: sda1
Oct  9 10:21:38 centurion kernel: [    2.641429] sd 0:0:0:0: [sda] Attached SCSI disk
Oct  9 10:21:38 centurion kernel: [    2.655999]  sdb: sdb1 sdb2 sdb3
Oct  9 10:21:38 centurion kernel: [    2.657197] sd 2:0:0:0: [sdb] Attached SCSI disk
Oct  9 10:21:38 centurion kernel: [    2.976451] clocksource: Switched to clocksource tsc
Oct  9 10:21:38 centurion kernel: [    3.487633] Console: switching to colour frame buffer device 240x67
Oct  9 10:21:38 centurion kernel: [    3.507287] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
Oct  9 10:21:38 centurion kernel: [    3.547895] random: fast init done
Oct  9 10:21:38 centurion kernel: [    3.634734] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x361f00)
Oct  9 10:21:38 centurion kernel: [    3.674405] psmouse serio1: elantech: Synaptics capabilities query result 0x00, 0x16, 0x0d.
Oct  9 10:21:38 centurion kernel: [    3.740007] raid6: sse2x1   gen() 10059 MB/s
Oct  9 10:21:38 centurion kernel: [    3.788005] raid6: sse2x1   xor()  6131 MB/s
Oct  9 10:21:38 centurion kernel: [    3.808299] [drm] RC6 on
Oct  9 10:21:38 centurion kernel: [    3.836004] raid6: sse2x2   gen() 12046 MB/s
Oct  9 10:21:38 centurion kernel: [    3.884002] raid6: sse2x2   xor()  8275 MB/s
Oct  9 10:21:38 centurion kernel: [    3.932005] raid6: sse2x4   gen() 13873 MB/s
Oct  9 10:21:38 centurion kernel: [    3.980004] raid6: sse2x4   xor()  9533 MB/s
Oct  9 10:21:38 centurion kernel: [    4.028005] raid6: avx2x1   gen() 23736 MB/s
Oct  9 10:21:38 centurion kernel: [    4.076004] raid6: avx2x1   xor() 17173 MB/s
Oct  9 10:21:38 centurion kernel: [    4.124002] raid6: avx2x2   gen() 27103 MB/s
Oct  9 10:21:38 centurion kernel: [    4.172003] raid6: avx2x2   xor() 18831 MB/s
Oct  9 10:21:38 centurion kernel: [    4.220003] raid6: avx2x4   gen() 30098 MB/s
Oct  9 10:21:38 centurion kernel: [    4.268004] raid6: avx2x4   xor() 22359 MB/s
Oct  9 10:21:38 centurion kernel: [    4.268701] raid6: using algorithm avx2x4 gen() 30098 MB/s
Oct  9 10:21:38 centurion kernel: [    4.269390] raid6: .... xor() 22359 MB/s, rmw enabled
Oct  9 10:21:38 centurion kernel: [    4.270077] raid6: using avx2x2 recovery algorithm
Oct  9 10:21:38 centurion kernel: [    4.270769] psmouse serio1: elantech: Elan sample query result 00, 49, 75
Oct  9 10:21:38 centurion kernel: [    4.273643] xor: automatically using best checksumming function   avx       
Oct  9 10:21:38 centurion kernel: [    4.284699] Btrfs loaded, crc32c=crc32c-intel
Oct  9 10:21:38 centurion kernel: [    4.506433] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input6
Oct  9 10:21:38 centurion kernel: [    9.433983] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
Oct  9 10:21:38 centurion kernel: [   10.700673] Lockdown: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7
Oct  9 10:21:38 centurion kernel: [   12.663600] lp: driver loaded but no devices found
Oct  9 10:21:38 centurion kernel: [   12.790174] ppdev: user-space parallel port driver
Oct  9 10:21:38 centurion kernel: [   15.800260] EXT4-fs (sdb2): re-mounted. Opts: errors=remount-ro

업데이트

이런 일이 여전히 발생하고 있습니다. 상황을 해결하기 위해 다음과 같은 무작위 조치를 취했지만 소용이 없었습니다.

  • 암호화된 사용자 홈을 제거했습니다(이제 전체 디스크는 ecryptfs가 없는 일반 ext4입니다).
  • 스왑에서 암호화를 제거하고 다른 디스크의 스왑 파일로 이동했습니다.
  • 커널을 4.15.0.42.63 amd64 [from: 4.15.0.29.51]로 업데이트했습니다.

시스템이 과부하되면 문제가 발생하는 것 같지만 그 반대일 수도 있습니다(오류 -> 읽기 전용 fs -> Chrome 및 기타 앱이 느리게 느껴짐).

답변1

  1. 프롬프트에서 다음을 입력 fsck /dev/sda<number>하고 키를 누릅니다. Enter(파일 시스템 오류가 포함된 디렉터리를 기반으로 로그에서 <숫자>를 찾습니다.)

  2. 모든 오류에 y를 입력하여 수정하세요.

  3. 출구

관련 정보