home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / hackers / 1983 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.6 KB  |  52 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!rpi!batcomputer!bouncer
  3. From: eirik@elf.TN.Cornell.EDU (Eirik Fuller)
  4. Subject: shared root
  5. Message-ID: <1993Jan25.232619.5494@tc.cornell.edu>
  6. Sender: news@tc.cornell.edu
  7. Nntp-Posting-Host: dumpster.tc.cornell.edu
  8. Organization: Cornell Theory Center
  9. Date: Mon, 25 Jan 1993 23:26:19 GMT
  10. Approved: office of exports
  11. Lines: 39
  12.  
  13.  
  14. In the "no hack too small" department ... I was asked to rescue a
  15. sparcstation which wouldn't boot; as it turned out, /dev/console was
  16. missing.  Actually, it was a plain file with a shutdown message, but
  17. that didn't make booting any easier.
  18.  
  19. Using another similary configured sparcstation on the same subnet as a
  20. server, I booted the ailing sparcstation as a diskless client.  Not a
  21. big deal, but the working machine had not been set up as a server.  I
  22. had to start mountd, nfsd, bootparamd, and rarpd (and tweak their
  23. various files; I never did create /etc/exports, since that's what
  24. "exportfs -i" is for).  I also had to tell inetd about tftpd and set
  25. up /tftpboot (mkdir tftpboot && ln boot tftpboot/12345678.SUN4C).
  26.  
  27. For the bootparams, I listed the server's own root directory, and
  28. exported it readonly.  I also exported its /usr readonly, though had
  29. it occurred to me I probably would have mounted the local one instead.
  30. I used an NFS swap file, though I could have used the local swap if
  31. I'd included -a in the boot switches along with -bs.  The -n in
  32. "mkfile -n" meant I didn't waste much space on the swap file.
  33.  
  34. The -b switch to boot eliminates most of the noise resulting from the
  35. readonly root directory; the -n in "/sbin/mount -n" makes the
  36. unwritability of /etc/mtab irrelevant.  Once the damaged root
  37. partition is mounted, fixing its dev/console is pretty simple.
  38.  
  39. I might have gone to all the bother of setting up a real client root
  40. partition, except that I had already used readonly root partitions on
  41. other occasions, so doing it in this case seemed natural.  X terminals
  42. work well with readonly root directories.
  43.  
  44. All this just got me thinking about what would be involved in making a
  45. full-fledged diskless client work with a shared readonly root.  A
  46. suitable syslog.conf would eliminate much of the usual root file
  47. system modifications.  A static mtab should work well enough for df
  48. output and such, though that could get complicated with automounters.
  49. Perhaps the best way to cope with files that absolutely have to change
  50. is to symlink them into a tmpfs file system.  I'm pretty sure /etc/rc*
  51. would have to be overhauled.  Hmm, sounds like a fun project ...
  52.