You are not logged in.

#1 2024-06-04 11:07:37

beeksma
Member
Registered: 2024-06-04
Posts: 2

[SOLVED] Disk I/O errors on 2024.06.01 image, but not 2024.05.01 image

Hello,

I'm attempting to install Arch Linux on a brand-new N100-powered mini PC, but am running into disk-related issues. Initially I dd'd the latest (2024.06.01) ISO to a thumb drive and tried to boot from it. This image failed to boot, with I/O errors on my SSD (ata2.00: failed command: READ FPDMA QUEUED), which based on other topics on the forum indicates a disk failure.

However, earlier I successfully installed Proxmox on the same SSD and smartctl does not report any issues, so I tried again with the 2024.05.01 ISO. This ISO booted without any disk-related errors and I was able to install and configure Arch Linux without issue while being chrooted into the installation. But when I reboot in order to boot from the SSD and unlock my LUKS root partition, I'm getting similar I/O related errors. I made two installation attempts, one with the btrfs filesystem with subvolumes and a second with just a basic ext4 file system. In both cases, I'm able to unlock my LUKS partition (but only with a systemd initramfs), but not able to reach the login prompt or to login. I also don't think it's user error made while setting up the LUKS partition, since while booting from the 2024.06.01 ISO I never even reach the command line due to the I/O errors mentioned above. The same errors popped up while booting from the latest ISO even after I wiped the GPT of the disk using gdisk from a live ISO (neon) to start fresh.

When I boot from 2024.05.01 ISO again, I have no issues unlocking the LUKS partition or chrooting into my system on disk. Therefore it looks like it's a driver, kernel, or package issue instead, as pacstrap would fetch the latest of these while installing Arch Linux, rather than the packages available on the 2024.05.01 ISO.

So, onto my main question: how do you suggest I debug this properly if I'm adament on installing Arch Linux on this device?

Thanks in advance for your help, please let me know if you need any other outputs then the ones shared already below (taken while using the 2024.05.01 ISO).

lspci output:

00:00.0 Host bridge: Intel Corporation Device 461c
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-N [UHD Graphics]
00:14.0 USB controller: Intel Corporation Alder Lake-N PCH USB 3.2 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Alder Lake-N PCH Shared SRAM
00:16.0 Communication controller: Intel Corporation Alder Lake-N PCH HECI Controller
00:17.0 SATA controller: Intel Corporation Device 54d3
00:1c.0 PCI bridge: Intel Corporation Device 54bb
00:1d.0 PCI bridge: Intel Corporation Device 54b2
00:1d.3 PCI bridge: Intel Corporation Device 54b3
00:1f.0 ISA bridge: Intel Corporation Alder Lake-N PCH eSPI Controller
00:1f.3 Audio device: Intel Corporation Alder Lake-N PCH High Definition Audio Controller
00:1f.4 SMBus: Intel Corporation Device 54a3
00:1f.5 Serial bus controller: Intel Corporation Device 54a4
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)

lsblk output:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0 788.9M  1 loop /run/archiso/airootfs
sda      8:0    0 476.9G  0 disk
├─sda1   8:1    0     1G  0 part
└─sda2   8:2    0 475.9G  0 part

smartctl -a /dev/sda output:

smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.8.8-arch1-1] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     N900-512
Serial Number:    AA000000000000000040
Firmware Version: W0825A0
User Capacity:    512,110,190,592 bytes [512 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
TRIM Command:     Available
Device is:        Not in smartctl database 7.3/5528
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Jun  4 08:56:39 2024 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:                (  120) seconds.
Offline data collection
capabilities:                    (0x11) 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.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0002) Does not save 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:        (  10) minutes.
SCT capabilities:              (0x0001) SCT Status 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
  1 Raw_Read_Error_Rate     0x0032   100   100   050    Old_age   Always       -       0
  5 Reallocated_Sector_Ct   0x0032   100   100   050    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   050    Old_age   Always       -       67
 12 Power_Cycle_Count       0x0032   100   100   050    Old_age   Always       -       76
160 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
161 Unknown_Attribute       0x0033   100   100   050    Pre-fail  Always       -       100
163 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       14
164 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       633
165 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       1
166 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
167 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
168 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       5050
169 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       100
175 Program_Fail_Count_Chip 0x0032   100   100   050    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   050    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   050    Old_age   Always       -       0
178 Used_Rsvd_Blk_Cnt_Chip  0x0032   100   100   050    Old_age   Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   050    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   050    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   050    Old_age   Always       -       63
194 Temperature_Celsius     0x0022   100   100   050    Old_age   Always       -       40
195 Hardware_ECC_Recovered  0x0032   100   100   050    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   050    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   050    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0032   100   100   050    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   050    Old_age   Always       -       0
232 Available_Reservd_Space 0x0032   100   100   050    Old_age   Always       -       100
241 Total_LBAs_Written      0x0030   100   100   050    Old_age   Offline      -       3059
242 Total_LBAs_Read         0x0030   100   100   050    Old_age   Offline      -       1635
245 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       108

SMART Error Log Version: 1
No Errors Logged

EDIT: Solved!

Last edited by beeksma (2024-06-04 18:13:06)

Offline

#2 2024-06-04 13:35:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,332

Re: [SOLVED] Disk I/O errors on 2024.06.01 image, but not 2024.05.01 image

There's been an uptick of these issues, because SATA power management was enabled by default for more drives, try setting the problematic drives to "max performance" or "medium_power": https://wiki.archlinux.org/title/Power_ … Management

Offline

#3 2024-06-04 18:12:32

beeksma
Member
Registered: 2024-06-04
Posts: 2

Re: [SOLVED] Disk I/O errors on 2024.06.01 image, but not 2024.05.01 image

V1del wrote:

There's been an uptick of these issues, because SATA power management was enabled by default for more drives, try setting the problematic drives to "max performance" or "medium_power": https://wiki.archlinux.org/title/Power_ … Management

Thank you very much for this reply, I got it working!
For anyone else running into this issue:

  1. Create a new udev rule.


    /etc/udev/rules.d/hd_power_save.rules

    ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="max_performance"
  2. Add the newly created file to your initramfs.


    /etc/mkinitcpio.conf

    FILES=(/etc/udev/rules.d/hd_power_save.rules)

    Then run:

    mkinitcpio -P

Offline

#4 2024-06-05 07:41:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,332

Re: [SOLVED] Disk I/O errors on 2024.06.01 image, but not 2024.05.01 image

Ideally you'd identify the exact disk(s) leading to the issue and report them upstream as incompatible so they can be added to the relevant quirks list, see e.g.: https://bbs.archlinux.org/viewtopic.php … 2#p2174322

Offline

Board footer

Powered by FluxBB