On Sat, Jun 26, 2004 at 02:38:28AM +0200, MICSKO Viktor wrote:

> Is it possible to setting a *whole* disk read only? I mean the way linux
> does it with "hdparm -r 1 device". So adding an -o ro parameter to mount
> isn't enough, I want to be sure that the disk is unmodified.
> (I have to access an existing raid of 8 disks using vinum without any
> modified bit, because of the highly sensitive data. Any idea doing this
> absolutely securely is welcome too)

Hmmm... SCSI disks can be physically jumpered to be read-only.  I
should think that ATA drives can be treated the same way.  Consult the
manufacturers' data sheets for details.

One point about doing this: if you make the disk physically read-only,
it will work well when mounted read-only on the system.  However, I'm
not so sure what would happen if you accidentally mounted the drive
read-write.  Best case is that the system would refuse to mount the
drive rw: either failing and emitting an error, or complaining and
automatically flipping the mount flags to ro.  Worst case is that
everything will apparently work perfectly fine until the system
attempts to do a write, at which point it will freeze or blow up.  You
might want to test out what happens on a scratch system.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

Attachment: pgpVIMkuWeUxm.pgp
Description: PGP signature

Reply via email to