Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] filesystem remounted read-only when changing power
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
slowdive
n00b
n00b


Joined: 01 May 2005
Posts: 34

PostPosted: Wed Feb 13, 2013 10:32 pm    Post subject: [solved] filesystem remounted read-only when changing power Reply with quote

Here's a problem I had, and from looking around other people might have had it over the last year or so.

On occasion (somewhat regularly over the last year or so), if I unplugged my laptop and subsequently plugged it back in, my filesystem would be remounted read only. I was unable to remount it, with mount complaining that /dev/sda1 was unmountable (forget the exact phrase). This is on a thinkpad t61p (from 2007). On a reboot, everything would work. Looks like laptop-mode was doing something that hurt my setup.

Looking through the logs, I noticed laptop-mode had a few complaints (edited for brevity):

Quote:

Feb 05 14:34:16 [laptop-mode] Warning: Configuration file /etc/laptop-mode/conf.d/board-specific/* is not readable, skipping.
- Last output repeated twice -
Feb 05 14:34:16 [laptop-mode] Laptop mode
Feb 05 14:34:16 [laptop-mode] enabled, active
Feb 05 14:34:17 [logger] ACPI event unhandled: processor LNXCPU:00 00000080 00000004
Feb 05 14:34:17 [logger] ACPI event unhandled: processor LNXCPU:01 00000080 00000004
Feb 05 14:34:17 [kernel] ata1: hard resetting link
Feb 05 14:34:18 [kernel] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Feb 05 14:34:18 [kernel] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Feb 05 14:34:18 [kernel] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Feb 05 14:34:19 [kernel] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Feb 05 14:34:19 [kernel] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Feb 05 14:34:19 [kernel] ata1.00: configured for UDMA/100
Feb 05 14:34:19 [kernel] ata1: EH complete
Feb 05 14:34:19 [kernel] uhci_hcd 0000:00:1a.1: power state changed by ACPI to D3
Feb 05 14:34:19 [kernel] uhci_hcd 0000:00:1d.0: power state changed by ACPI to D3
Feb 05 14:34:19 [kernel] uhci_hcd 0000:00:1d.2: power state changed by ACPI to D3
Feb 05 14:34:19 [kernel] ehci_hcd 0000:00:1a.7: power state changed by ACPI to D3
Feb 05 14:34:19 [kernel] ehci_hcd 0000:00:1d.7: power state changed by ACPI to D3
Feb 05 14:34:19 [laptop-mode] Failed.


Also of note is the hard resetting of ata1.

Most people suggested the remount and unremountable nature of /dev/sda1 was a sign of hardware failure (which could be true). Lots of posts about resetting ata1 also suggested kernel bugs or hardware failure.

The failure/remounting read-only only happened when changing power sources, so I initially thought the hardware was unable to cope with the power changes or something. I checked hdparm's settings after the failure (and before rebooting), and everything seemed reasonable (no low power states, no big warnings). I tried hdparm's device reset and a few other things, and nothing worked.

The laptop-mode complaints were a bit suspicious, so after I rebooted, I uninstalled laptop-mode and haven't had any issues since. ata1 doesn't get hard reset any more, and the root fs isn't remounted read only. My hunch is that laptop-mode was issuing some command that forced the reset/remount, perhaps due to my bad configuration.

Hope this helps. If the problem occurs again for me, I'll reply to this post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum