D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] file system has gone read only



The whole file system went read only. I did a reboot (shutdown -r now).
But fedora did not reboot normally but went into this other run level.
The message was that it appeared to have been shutdown incorrectly (I
used shutdown -r now) and I should run fsck. fsck found a number of
errors which it fixed. Everything is working fine now, but I don't know
why the whole file system went read only.

Previous to this problem I had mounted a Windows 2000 drive using, mount
-t smbfs ...., but had mis-typed the switches to the command, but that
was the previous day, and I don't think that would affected it and
caused the errors.


On Wed, 22 Sep 2004 20:10:51 +0100, "Simon Waters"
<simon@xxxxxxxxxxxxxxxxxxxx> said:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Keasley wrote:
|
| I suspect the first thing you should do is back up the data in your
| ~ asap, and run fsck on that partition, it might be you harddrive
| going bad, or just having too many errors.
|
| Otherwise it might just be a problem in /etc/fstab or a permissions
| issue, better to be safe than sorry though, eh?

The usual cause is not reading the boot messages carefully enough ;)

The root partition is mounted read-only, then remounted if all is
well. I have had Redhat pause during boot, and me continue without
properly following the instructions on screen, resulting in a
read-only partition.

This also happens if you have forgot the root passwd and need to
hack the shadow file, as some of the emergency boots drop you in a
root shell with the root disk read only - remount is your friend (or
just boot from a Live CD which is probably easier).

Of course your comments on fsck apply. This usually happens if the
disk has failed fsck, and needs some manual intervention, which
might be a bad disk, or poorly timed hitting of the off button.

Also some filesystems these days have a quick journal replay, and a
proper fsck which actually checks things, make sure you get a proper
check.
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFBUc46GFXfHI9FVgYRAsh4AJ0avm4PpPAoxzuPlqmPwsuCk2kSXQCfWJ7R
dCCTflM7t4WzIeFbXSbmeFk=
=xGeT
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.
-- 
 Ian Stone
 ianstone@xxxxxxxxxxx


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly