Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Lock discs
@ 1997-03-06 20:40 Dave Tucker
  1997-03-06 22:25 ` Jeff Odom
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dave Tucker @ 1997-03-06 20:40 UTC (permalink / raw)


Is there a way to make absolutely sure that the disc where my root 
     partition is cannot be written to when I run a particular program 
     (short of snipping the write-enable line on the drive logic board)? 
     
     Cdwrite has wiped it out twice and I will not run it again until I can 
     feel safe.  Otherwise I may have an HP4020i for sale.
     
     Thx, Dave

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lock discs
  1997-03-06 20:40 Lock discs Dave Tucker
@ 1997-03-06 22:25 ` Jeff Odom
  1997-03-06 23:47 ` Maurice W. Hilarius
  1997-03-07  0:33 ` Michal Jaegermann
  2 siblings, 0 replies; 4+ messages in thread
From: Jeff Odom @ 1997-03-06 22:25 UTC (permalink / raw)


>      Is there a way to make absolutely sure that the disc where my root 
>      partition is cannot be written to when I run a particular program 
>      (short of snipping the write-enable line on the drive logic board)? 
>      
>      Cdwrite has wiped it out twice and I will not run it again until I can 
>      feel safe.  Otherwise I may have an HP4020i for sale.

Try mount -n -o remount,ro /

Jeff Odom
System Administrator
The Johns Hopkins Krieger Mind/Brain Institute

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lock discs
  1997-03-06 20:40 Lock discs Dave Tucker
  1997-03-06 22:25 ` Jeff Odom
@ 1997-03-06 23:47 ` Maurice W. Hilarius
  1997-03-07  0:33 ` Michal Jaegermann
  2 siblings, 0 replies; 4+ messages in thread
From: Maurice W. Hilarius @ 1997-03-06 23:47 UTC (permalink / raw)


At 03:40 hrs. 03-06-97 -0500, you wrote:
>
>     Is there a way to make absolutely sure that the disc where my root 
>     partition is cannot be written to when I run a particular program 
>     (short of snipping the write-enable line on the drive logic board)? 
>     
>     Cdwrite has wiped it out twice and I will not run it again until I can 
>     feel safe.  Otherwise I may have an HP4020i for sale.
>     
>     Thx, Dave
You could set your filesystems to mount read-only in the fstab...

Cheers,
	Maurice

+--------------------------------------------------------+
| Maurice Hilarius           | The Past is History       |
| President                  |  The Future is Mystery    |
| Hard Data Ltd.             |   Today is a Gift         |
| Phone/FAX (403) 456-1510   | That is why they call it  |
| email:harddata@bigfoot.com |   The Present             |
+--------------------------------------------------------+

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lock discs
  1997-03-06 20:40 Lock discs Dave Tucker
  1997-03-06 22:25 ` Jeff Odom
  1997-03-06 23:47 ` Maurice W. Hilarius
@ 1997-03-07  0:33 ` Michal Jaegermann
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1997-03-07  0:33 UTC (permalink / raw)


> 
> 
>      Is there a way to make absolutely sure that the disc where my root 
>      partition is cannot be written to when I run a particular program 

The only "absolute way" is to turn the disk off.  If your program
writes to a raw SCSI device, without paying any attention to a file
system, it may write there whatever it pleases - commands to reformat
your drive including.

If it is better behaved then remounting your disk read-only should
be good enough.  Use '-n' option on mounts which follow as you will
be not able to update /etc/mtab anymore.  Also your editors will likely
fail as they may try to create some files in /tmp

>      Cdwrite has wiped it out twice and I will not run it again until I can 
>      feel safe.

Do you have to run it as a root???  Making output device
readable/writable to 'cdwriter', group 'cdwriter', with corresponding
permissions on a stuff you want to write, should make it safer.
At least you will get failed writes if you will try to send a SCSI
garbage to your main device (assuming that permissions there are sane)
instead of a trashed disk.

  Michal

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-03-07  0:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-06 20:40 Lock discs Dave Tucker
1997-03-06 22:25 ` Jeff Odom
1997-03-06 23:47 ` Maurice W. Hilarius
1997-03-07  0:33 ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox