Re: Debian: readonly root filesystem using /dev/root
- From: Tim Greer <tim@xxxxxxxxxxxxx>
- Date: Fri, 12 Dec 2008 13:27:20 -0800
propman wrote:
Tim Greer wrote:
Mark Hobley wrote:
Hmmm, I am seeing something really strange on one of my Debian
systems (using Debian Testing / Lenny) , and I just wondered if
anyone else is seeing this.
My root filesystem had for some reason been mounted readonly. This
was reported to me as I tried to upgrade some packages.
I thought to myself "No problem. I will remount the filesystem for
read and write access."
I first checked that the filesystem was mounted readonly, because I
was not expecting this to be so:
cat /proc/mounts
/dev/root / ext2 ro,errors=remount-ro 0 0
Hmmm, it is readonly.
I remounted this:
mount -o remount,rw /
Right, that should have fixed this.
cat /proc/mounts
/dev/root / ext2 rw,errors=remount-ro 0 0
Ok, I created a test file:
echo hello > /root/test.fil
(Ony my system /root is the home directory for the root user, and is
on the root filesystem.)
sh: cannot create /root/test.fil: Read-only file system
Huh? The disk appears to still be readonly.
Right before a drive starts to die, it will sometimes start setting
the
root partition to read only. Check dmesh, your messages log, run
smart
drive tools and see if there are any errors reported. Either way,
ensure you have up to date and complete backups, regardless if you
find errors, because it probably has a matter of hours or days before
data starts being shown as unreadable (to even copy/backup) from that
drive.
FWIW.....suggest you also log onto the drive manufacturer's web site
to see if they have a low-level testing utility; if so, it should give
you a definitive answer whether the disk is dying or not.
Again FWIW, ran across this link the other day (haven't had a chance
to download and try it out yet though):
www.ultimatebootcd.com
The website states that amongst other rescue utilities, it also
includes low-level testing programs from several of the hard drive
manufacturers.
Good points. Also, if you feel the drive is going, the best thing to do
it to boot into single user mode and do the work there (less
processing, reading and writing, the better) and back up the data that
way (hopefully you have current backups anyway, as anyone should).
However, with the tools on a system that's already booted up and
running, you should have a good indication pretty quick of a problem
without a drive manufacturer utility if the drive is failing and is
already at the point where it's mounting / as ro.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
.
- References:
- Debian: readonly root filesystem using /dev/root
- From: Mark Hobley
- Re: Debian: readonly root filesystem using /dev/root
- From: Tim Greer
- Re: Debian: readonly root filesystem using /dev/root
- From: propman
- Debian: readonly root filesystem using /dev/root
- Prev by Date: Glass Hookah !
- Next by Date: Re: Custom driver, working with 2.6.18 but not with 2.6.24.5
- Previous by thread: Re: Debian: readonly root filesystem using /dev/root
- Next by thread: Glass Hookah !
- Index(es):
Relevant Pages
|