You are not logged in.
I have installed, somewhat successfully, arch linux on an mid-2010 iMac, having just replaced the failing hard drive with an equivalent SSD.
The root partition seems mounted r/o pretty much through the entire startup, which is most noticeable when resolvconf is not able to setup its state.
Jun 19 17:48:17 idk iwd.sh[317]: [DHCPv4] dhcp_client_rx_message:915 Entering state: DHCP_STATE_BOUND
Jun 19 17:48:18 idk iwd.sh[423]: cp: cannot create regular file '/etc/resolv.conf.bak': Read-only file system
Jun 19 17:48:18 idk iwd.sh[425]: cp: cannot create regular file '/etc/resolv.conf.388.openresolv': Read-only file system
Jun 19 17:48:18 idk iwd.sh[426]: /usr/lib/resolvconf/libc: line 235: /etc/resolv.conf.388.openresolv: Read-only file systemThe wlan is brought up using iwd, and I had modified the startup script to dump /proc/mounts before and after. The journalctl -xb -u systemd-iwd.service putput only captures the before, for some reason.. This output does show that the root FS is mounted r/o:
un 19 17:48:17 idk iwd.sh[314]: + : Mount State Before iwd Start
Jun 19 17:48:17 idk iwd.sh[314]: + cat /proc/mounts
Jun 19 17:48:17 idk iwd.sh[316]: /dev/sda3 / ext4 ro,nosuid,relatime 0 0
Jun 19 17:48:17 idk iwd.sh[316]: dev /dev devtmpfs rw,nosuid,relatime,size=8164540k,nr_inodes=2041135,mode=755,inode64 0 0Just not, why. The complete journalctl -xb (full) output.
Doing a resolvconf -u` after the system starts up resolves the issue.
- I had looked at Repo Forum » root device not read-write warning. The bootloader is refind, and I had it fixed per these guidelines.
- dmesg output from my system The demsg output shows /dev/sda3 being mounted as root fairly correctly early in the boot process...
[ 0.775674] scsi 0:0:0:0: Direct-Access ATA CT1000MX500SSD1 046 PQ: 0 ANSI: 5
[ 0.776192] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 0.776195] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 0.776214] sd 0:0:0:0: [sda] Write Protect is off
[ 0.776217] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 0.776279] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.776375] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[ 0.778325] sda: sda1 sda2 sda3 sda4 sda5
[ 0.779478] sd 0:0:0:0: [sda] supports TCG Opal
[ 0.779485] sd 0:0:0:0: [sda] Attached SCSI disk
[ 0.779869] ata2.00: ACPI cmd ef/10:03:00:00:00:a0(SET FEATURES) filtered out
[ 0.779874] ata2.00: configured for UDMA/100
[ 0.796166] scsi 1:0:0:0: CD-ROM OPTIARC DVD RW AD-5680H 3AHB PQ: 0 ANSI: 5
...
[ 8.746570] amdgpu: Topology: Add CPU node
[ 8.962033] EXT4-fs (sda3): mounted filesystem 48597937-339b-4fc2-bd4f-8041a7a5031c with ordered data mode. Quota mode: none.
[ 9.123610] systemd[1]: systemd 253.5-1-arch running in system mode (+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified)
[ 9.123617] systemd[1]: Detected architecture x86-64.
[ 9.125472] systemd[1]: Hostname set to <idk>.
...
[ 11.271040] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.271671] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xffffa98cc1bf0000, irq=17
[ 11.717504] wlan0: authenticate with 22:60:f9:7f:c5:ad
[ 11.717520] wlan0: 80 MHz not supported, disabling VHT
[ 11.737660] wlan0: send auth to 22:60:f9:7f:c5:ad (try 1/3)
[ 11.742052] wlan0: authenticated
[ 11.743689] wlan0: associate with 22:60:f9:7f:c5:ad (try 1/3)
[ 11.749169] wlan0: RX AssocResp from 22:60:f9:7f:c5:ad (capab=0x1431 status=0 aid=11)
[ 11.749348] wlan0: associated
[ 11.777795] wlan0: Limiting TX power to 32 (32 - 0) dBm as advertised by 22:60:f9:7f:c5:ad
[ 11.857174] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready- THese two other posts: Read Only Filesystem on HDD and Repo Forum » root device not read-write warning. Based on this, I gathered smartctl -a /dev/sda output, and cannot tell what might be wrong.
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.3.8-arch1-1] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, [url=http://www.smartmontools.org]www.smartmontools.org[/url]
=== START OF INFORMATION SECTION ===
Model Family: Crucial/Micron Client SSDs
Device Model: CT1000MX500SSD1
Serial Number: 2312E6BE2FA0
LU WWN Device Id: 5 00a075 1e6be2fa0
Firmware Version: M3CR046
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
TRIM Command: Available
Device is: In smartctl database 7.3/5319
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.3, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Mon Jun 19 18:05:18 2023 PDT
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
...
SMART Error Log Version: 1
Warning: ATA error count 0 inconsistent with error log pointer 1
ATA Error Count: 0
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 0 occurred at disk power-on lifetime: 0 hours (0 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
-- -- -- -- -- -- --
00 ec 00 00 00 00 00
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
c8 00 00 00 00 00 00 00 00:00:00.000 READ DMA
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% 20 -Which seems to tell me that the deisk has both no errors and had an error.
Perplexed, and looking to see what might be going wrong...
THanks,
Kannan
Last edited by vkannan (2023-06-20 16:35:06)
Offline
Weclome to the forum
Please never use "-x", it's just spam.
Jun 19 17:48:17 idk iwd.sh[316]: /dev/sda3 /etc/iwd ext4 rw,nosuid,relatime 0 0
Jun 19 17:48:17 idk iwd.sh[316]: run /home tmpfs ro,nosuid,nodev,noexec,relatime,mode=755,inode64 0 0
Jun 19 17:48:17 idk iwd.sh[316]: proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
Jun 19 17:48:17 idk iwd.sh[316]: run /root tmpfs ro,nosuid,nodev,noexec,relatime,mode=755,inode64 0 0Check the iwd.service and https://www.freedesktop.org/software/sy … ectSystem=
Offline
Got it, Seth.
I did see this line and wondered how/what it meant.
Jun 19 17:48:17 idk iwd.sh[316]: /dev/sda3 /etc/iwd ext4 rw,nosuid,relatime 0 0I tried this:
[Service]
ReadWritePaths=/etc/resolv.conf /etc/resolv.conf.bakin /etc/systemd/system/iwd.service.d/override.conf, but that did not take.
It wants a directory, which, while it makes this restriction interesting, somewhat less desirable open.
So for now, I will leave this in place:
[Service]
ReadWritePaths=/etcThanks
Offline