Re: Debian: readonly root filesystem using /dev/root



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.
--
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!
.



Relevant Pages

  • Re: Debian: readonly root filesystem using /dev/root
    ... My root filesystem had for some reason been mounted readonly. ... to see if they have a low-level testing utility; ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (comp.os.linux.misc)
  • Re: Linux chroot
    ... this error when I try to su to root: ... it might not be a solution of configuring ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (comp.os.linux.security)
  • Re: Read-only root (/) except /et
    ... in other words, again root is compromised. ... That means that in a standard config the root filesystem cannot be made ... backup, and fewer writes means less likelihood of corruption eg if power ... Note that all my live partitions are rsync'd with identical ...
    (Debian-User)
  • Re: Read-only root (/) except /et
    ... in other words, again root is compromised. ... That means that in a standard config the root filesystem cannot be made ... backup, and fewer writes means less likelihood of corruption eg if power ... Note that all my live partitions are rsync'd with identical ...
    (Debian-User)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... I don't think anyone is arguing whether or not this is a bug. ...
    (FreeBSD-Security)