You are not logged in.

#1 2022-10-08 20:14:19

Philcov
Member
Registered: 2022-04-01
Posts: 4

I/O error every 4096 sectors

Hi everyone,

I am installing Arch Linux on a new machine. When mounting the ext4 root partition I get the following error every 4096 sectors:

 I/O error, dev mmcblk0, sector 222537872 op 0x9: (WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0 

Where the number of the sector is of course one of many, each 4096 sectors apart from each other.

I created the partition on parted, formatted it with mkfs.ext4 and the errors start flowing as soon as I mount it.

Do you have an idea where this stems from?

Thank you.

Best regards,
Phil

Offline

#2 2022-10-19 22:12:18

qmild
Member
Registered: 2022-10-19
Posts: 1

Re: I/O error every 4096 sectors

I just had the same error mounting the root filesystem during the install on my new ASUS notebook. It uses eMMC as the main system storage. What kind of storage was your machine using? I couldn't figure out what was causing the error and eventually gave up and continued on with the install and haven't had any issues since.

Offline

#3 2022-10-23 10:38:51

xerxes_
Member
Registered: 2018-04-29
Posts: 877

Re: I/O error every 4096 sectors

Post output of lsblk and lsblk -f

Offline

#4 2022-10-23 10:57:56

frostschutz
Member
Registered: 2013-11-15
Posts: 1,511

Re: I/O error every 4096 sectors

Which device is that specifically? If WRITE_ZEROES fails, it might need a quirk on the kernel level ( example https://github.com/torvalds/linux/blob/ … e/quirks.h )

You can disable fstrim, discard and lazy initialization (mkfs.ext4 -E nodiscard,lazy_itable_init=0,lazy_journal_init=0) or go with a different filesystem altogether, but it won't solve the core issue if the device is not handled correctly at kernel level.

Also make sure your partitions / filesystems are aligned, although that's rarely the issue these days.

Last edited by frostschutz (2022-10-23 11:00:40)

Offline

Board footer

Powered by FluxBB