home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sun / admin / 9666 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.1 KB  |  49 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!cunews!mikey
  3. From: mikey@yoho.carleton.ca (Mike G McFaul)
  4. Subject: Re: tunefs on /usr
  5. Message-ID: <1992Dec22.154837.21652@cunews.carleton.ca>
  6. Sender: news@cunews.carleton.ca (News Administrator)
  7. Organization: Carleton University, Ottawa, Canada
  8. References: <ByG0ny.KK1@uxa.ecn.bgu.edu> <1992Dec6.000641.3438@nic.csu.net>
  9. Date: Tue, 22 Dec 1992 15:48:37 GMT
  10. Lines: 39
  11.  
  12. >In article <ByG0ny.KK1@uxa.ecn.bgu.edu> mflll@uxa.ecn.bgu.edu (Dr. Laurence Leff) writes:
  13. >>I am trying to run tunefs on the /usr file system.  Of course this
  14. >>is part of the two file systems (/root and /usr) that are brought up
  15. >>on bootup.
  16. >>
  17. >>Thus, we can't dismount it to run tunefs.  This is even true when we
  18. >>come up single user (boot with -s option)
  19. >>
  20. >>We are on 4.1.1 operating system on Sun III's.
  21. >>
  22. >>Does anyone know a method of running tunefs on the /usr file system.
  23. >>We want to reduce the disk space allocated to root on this file system.
  24. >>
  25.  
  26. Well it can be done, without unmounting anything...
  27.  
  28. What you do is come up in single user mode, then SYNC your disks, then
  29. perform your 'tunefs' command, then interrupt your system, with either
  30. 'L1-A' or a break (for those machines without a sun console), then
  31. boot your system without SYNCing your disks.  Yes this sounds
  32. dangerours, but it works because you have SYNC'ed the disks prior to
  33. the tunefs and the only extra thing you have done is the 'tunefs'
  34. command. And since your in single-user mode, there is no other
  35. activity other than you doing the tunefs to worry about.
  36.  
  37. From the 'BUGS' section of manpage on 'tunefs'
  38.  
  39. BUGS
  40.      This program should work on mounted and active file systems.
  41.      Because the super-block is not kept in the buffer cache, the
  42.      program will only take effect if it  is  run  on  dismounted
  43.      file  systems;  if  run  on the root file system, the system
  44.      must be rebooted.
  45.  
  46. The last line there gave me the hint I needed to try this out...  I
  47. have performed this on a number of machines running 4.1.2 and 4.1.3
  48. and they all worked...
  49.