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 <device>
* mount -o ro,remount /
Also, the host is running as a Xen virtual machine, so I can't do
anything on the hardware side.
Given that the filesystem is set to remount read-only if an error is
detected, one option would be to deliberately generate a filesystem
error, but not sure exactly how to achieve this either.
Any pointers or assistance would be greatly appreciated.
"ro" is a valid option in /etc/fstab.
--
Brawndo's got what plants crave. It's got electrolytes!
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org