[comp.sys.sgi] versions command + warning

paquette@cpsc.ucalgary.ca (Trevor Paquette) (06/28/90)

  This is a word of warning to anyone who might be wanting to use the
'versions' command to 'remove' versions of software on an SGI. When using
this command MAKE SURE THAT YOU ADD THE SUB_SYSTEM NAME OF THE SYSTEM YOU
WANT TO REMOVE. 
  Today I accidently hit return before typing in the name of the NFS
subsystem that I wanted to remove.
 ie: what I wanted -> "versions remove nfs.sw.nfs" (something like that anyway)
     what I typed ->  "versions remove <CR> nfs.sw.nfs<CR>".

  My hand brushed the return key accidently. When I realized what I did, ie
 the drive was taking WAY longer then it should have to delete JUST the NFS
system, it was to late. I hit the 'delete' key (break on my system, 240GTX)
and tried "ls" ...command not found.. "df" ..command not found.. (yikes)
"ps" ..command not found..(don't look so good)..
  No problem I thought.. I'll just reload the 3.3 software.. "inst" ..
command not found.. (starting to sweat a bit here).. 
  "sync".. command not found.. "/etc/halt".. command not found.. Power down,
wait 10 secs.. power up.. (this was to get to the "Install system software"
menu on boot up(.. wait.. wait wait.. nothing.. a DEAD 240GTX.. I now
have to get ahold of a boot tape and hope to God that I can salvage what was
on the drives.. If I have to reformat I have lost alot of work. (yes I have
backed up, but not for the past week).

***Why doesn't versions ask "ARE YOU SURE YOU WANT TO DO THIS?"?!?!?!?!?!***

It looks like it deleted all of the Unix commands and vmunix and god knows
what else before I stopped it. 
  Is there anyway I might be able to salvage what was on the disks once
this happens???
___________________________________________/No man is a failure who has friends
Trevor Paquette  ICBM:51'03"N/114'05"W|I accept the challange, body and soul,
{ubc-cs,utai,alberta}!calgary!paquette|to seek the knowledge of the ones of old
paquette@cpsc.ucalgary.ca             | - engraved on the Kersa Blade of Esalon

olson@anchor.esd.sgi.com (Dave Olson) (06/29/90)

paquette@cpsc.ucalgary.ca (Trevor Paquette) writes:

|   This is a word of warning to anyone who might be wanting to use the
| 'versions' command to 'remove' versions of software on an SGI. When using
| this command MAKE SURE THAT YOU ADD THE SUB_SYSTEM NAME OF THE SYSTEM YOU
| WANT TO REMOVE. 
|   Today I accidently hit return before typing in the name of the NFS
| subsystem that I wanted to remove.
|  ie: what I wanted -> "versions remove nfs.sw.nfs" (something like that anyway)
|      what I typed ->  "versions remove <CR> nfs.sw.nfs<CR>".
| 

This is a misfeature.  I've just filed a high priority bug on
 it.
In general, versions defaults to all installed products when no
product or subsystem is specified.  This is usually what one wants.

However, in the case of remove, this should produce an error or
require confirmation.

For what it is worth, ONLY product files were removed.  None of your
files should have been removed, so if you simply re-install the
software (NOT doing a 'clean' install!), all of your user data
will still be there.

You will probably still have to re-create all your configuration files, such
as modified crontab's, /etc/passwd, hosts, etc.
--

	Dave Olson

Life would be so much easier if we could just look at the source code.