Re: Forcing root filesystem read-only during normal operation

2009-09-25 Thread Chris Davies
T o n g wrote: > % mount -o ro,remount /dev/sda5 / && echo yes > yes > $ mount | grep sda5 > /dev/sda5 on / type ext3 (rw,noatime,nodiratime) > Still NOK!? Well. Actually it's quite possible it worked. And once the mount worked, the tool tried to update /etc/mtab to reflect the new situation.

Re: Forcing root filesystem read-only during normal operation

2009-09-18 Thread Mike McClain
On Fri, Sep 18, 2009 at 03:50:17AM +, T o n g wrote: > > Interesting, let me try... > > % mount -o ro,remount /dev/sda5 / && echo yes > yes > $ mount | grep sda5 > /dev/sda5 on / type ext3 (rw,noatime,nodiratime) try as root: $ telinit 1 login as root. $ mount -o ro,remount / but be forewa

Re: Forcing root filesystem read-only during normal operation

2009-09-17 Thread T o n g
On Wed, 09 Sep 2009 15:49:28 +0200, Florian Kulzer wrote: >> * mount -o ro,remount / > > I suspect that the second command fails because you did not specify both > the device and the directory. AFAIK, only the complete form will make > mount ignore an rw option given in /etc/fstab: > > mount -o

Re: Forcing root filesystem read-only during normal operation

2009-09-09 Thread Alex Samad
On Wed, Sep 09, 2009 at 07:05:27PM +1000, Ross Peachey wrote: > Hi All, > > Can anyone tell me how to force a filesystem read-only from Debian > during normal operation? I need to do this for testing of a failure > mode. > > The following doesn't work: > > * hdparm -r1 > * mount -o ro,remount /

Re: Forcing root filesystem read-only during normal operation

2009-09-09 Thread Florian Kulzer
On Wed, Sep 09, 2009 at 19:05:27 +1000, Ross Peachey wrote: > Hi All, > > Can anyone tell me how to force a filesystem read-only from Debian > during normal operation? I need to do this for testing of a failure > mode. > > The following doesn't work: > > * hdparm -r1 > * mount -o ro,remount /

Re: Forcing root filesystem read-only during normal operation

2009-09-09 Thread green
Ross Peachey wrote at 2009-09-09 04:05 -0500: > Can anyone tell me how to force a filesystem read-only from Debian > during normal operation? I need to do this for testing of a failure > mode. > Also, the host is running as a Xen virtual machine, so I can't do > anything on the hardware side. > >

Re: Forcing root filesystem read-only during normal operation

2009-09-09 Thread Ron Johnson
On 2009-09-09 04:05, Ross Peachey wrote: Hi All, Can anyone tell me how to force a filesystem read-only from Debian during normal operation? I need to do this for testing of a failure mode. The following doesn't work: * hdparm -r1 * mount -o ro,remount / Also, the host is running as a Xen vi