home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / hackers / 1710 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.6 KB  |  43 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!utcsri!newsflash.concordia.ca!IRO.UMontreal.CA!CC.UMontreal.CA!sifon!thunder.mcrcim.mcgill.edu!news
  3. From: mouse@thunder.mcrcim.mcgill.edu
  4. Subject: Re: lucky : -)
  5. Message-ID: <1992Nov18.103540.8284@thunder.mcrcim.mcgill.edu>
  6. Sender: news@thunder.mcrcim.mcgill.edu
  7. Organization: me myself and i
  8. References: <92Nov12.1726.1222@crash.canon.co.uk> <9231622.8192@mulga.cs.mu.OZ.AU>
  9. Date: Wed, 18 Nov 92 10:35:40 GMT
  10. Approved: Of course.
  11. Lines: 31
  12.  
  13. >> I had effectivly lost /bin. Jumped into /usr/bin (only other place
  14. >> with binaries). /usr/bin was still there, intact :-).
  15.  
  16. > Neat hack, but I take it you weren't on a Sun:
  17. > lrwxrwxrwx  1 root     daemon          7 Mar  9  1992 /bin -> usr/bin
  18.  
  19. Yah, great, isn't it?  Used to be, you needed only one filesystem, and
  20. you could put your system back together.  Now you need two, and you
  21. better have the block device for /usr memorized, 'cause if you lose
  22. fstab, your SOL without that.  (There's not even an fsck in /sbin, so
  23. you can't just try filesystems till you get lucky.)
  24.  
  25. > On a Sun, because you have still have the Berkeley binaries, you
  26. > could do something like:
  27.  
  28. > /usr/ucb/more /usr/ucb/which>/usr/ucb/which.safe
  29. > /usr/ucb/compress -c /bin/chmod|/usr/ucb/uncompress>/usr/ucb/which
  30.  
  31. Why use two different methods to copy files?
  32.  
  33. Besides, if you've lost the execute bits on /bin, compress will be
  34. unable to look up /bin/chmod.
  35.  
  36. (ObHack?  What obhack?  Oh, if you insist.  Lessee.  How about adding
  37. break and continue primitives to DaemonMUCK (a version derived from
  38. 2.2.8.5d, in case anyone cares).)
  39.  
  40.                     der Mouse
  41.  
  42.                 mouse@larry.mcrcim.mcgill.edu
  43.