LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-07-2016, 01:10 PM   #1
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Rep: Reputation: 15
disk remounts as readonly and then has errors


I discovered that my disk was mounted read-only, which caused a lot of things to fail. Upon rebooting (perhaps that was a mistake) I had a ton of disk errors, that I had to correct by manually running fsck. After this was done I rebooted and everything appears normal.

I'm wondering why this happened? Should I be concerned that my disk is failing? Should I be concerned about the data on the disk being corrupted? I ran the smartctl long test and the drive passed. Is there something else to do? I can't even find anything in syslog about the disks being remounted, let alone something that would explain *why* they were remounted.
 
Old 02-07-2016, 05:20 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,156

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Usually after a certain amount of mounts without a disk check the system will force a check, usually not somthing to worry about as its just maintainence, but if as you say you had a load of errors, there could be an underlying problem, have you had any sort of system crash?

If smarctrl reports everything is ok I wouldn't worry too much but I would make sure I did a regular backup, just in case.
 
Old 02-07-2016, 06:33 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
It was re-mounted ro because you probably told it to - check fstab. Safety mechanism.
 
Old 02-07-2016, 06:42 PM   #4
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Original Poster
Rep: Reputation: 15
Maybe I wasn't clear about what happened. While the system was up the file-system was somehow remounted as read-only. I was in my windowing system with a bunch of programs running that could suddenly no longer write to the disk. This made my running system fail because I couldn't write to /tmp, for example, so things started failing left and right. It did not happen during a boot process. I'm not sure how long the system had been up...but not particularly long, maybe a couple weeks.

After rebooting the system came up in "emergency mode"---text only and some very limited selection of programs available---and said that fsck couldn't be run automatically and that I had to run it manually. I ran fsck manually and told it to correct a lot of errors.

I've been running linux for 16 years and have never observed this before. It's not normal.
 
Old 02-07-2016, 06:57 PM   #5
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
It was re-mounted ro because you probably told it to - check fstab. Safety mechanism.
Ah, I see the errors=remount-ro option in fstab. That explains why it remounted, but not why there were errors.
 
Old 02-07-2016, 07:07 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
You can find more about that in man mount:

Code:
 errors={continue|remount-ro|panic}
        Define the behaviour when an error is encountered.  (Either  ignore  errors  and  just  mark  the
        filesystem  erroneous  and  continue,  or remount the filesystem read-only, or panic and halt the
        system.)  The default is set in the filesystem superblock, and can be changed using tune2fs(8).
As to why it happened... possibly a power event, a strategically placed cosmic-ray (it happens), memory error (might be worth running memtest86), other hardware or PS hickup.

Other than running a good long memtest, I would update all my backups, reseat cables and cards, and monitor it but try to not worry about it if the hard disk looks OK - unless and until it happens again.

One event in 16 years is a tribute to just how good the hardware and software really are. Two events in a smaller time window is a problem worth investigating.

Last edited by astrogeek; 02-07-2016 at 07:13 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip file corrupted, works fine issuing remounts xzased Linux - Server 6 08-26-2011 05:37 PM
repeatable disk read/write errors with no errors logged by kernel or SMART mxl2 Linux - Hardware 9 04-02-2011 09:27 AM
Cannot boot, error out of disk - after readonly system error ! naarkhoo Linux - General 2 03-20-2011 03:38 PM
Formating USB Disk became readonly ReesAcheson Linux - Newbie 2 10-26-2005 08:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration