home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12655 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!giskard.austin.ibm.com!matt
  3. From: matt@giskard.austin.ibm.com (Matthew S. Cronk)
  4. Subject: Re: cannot unmount /usr to run fsck
  5. Sender: news@austin.ibm.com (News id)
  6. Message-ID: <BzF2DB.23qL@austin.ibm.com>
  7. Date: Thu, 17 Dec 1992 18:36:46 GMT
  8. References: <MONIOT.92Dec15173903@dsm.dsm.fordham.edu> <BzDJoz.qzw@austin.ibm.com> <1gq2a0INN9ts@life.ai.mit.edu>
  9. Organization: IBM AWSD Austin, TX
  10. Lines: 32
  11.  
  12. In article <1gq2a0INN9ts@life.ai.mit.edu> mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes:
  13. >
  14. >In article <BzDJoz.qzw@austin.ibm.com> accapadi@mathew.austin.ibm.com
  15. >(Matt Accapadi) writes:
  16. >>
  17. >> When you boot from the boot/maintenance diskettes and enter
  18. >> maintenance mode, enter "getrootfs hdisk0 sh" instead of "getrootfs
  19. >> hdisk0" where hdisk0 is the name of the boot disk.  Then run "fsck
  20. >> /dev/hd2".
  21. >
  22. >Uh, no.  `getrootfs' mounts /usr.  You need to do `varyonvg -n rootvg'
  23. >instead.
  24. >
  25.  
  26. Begging your pardon, Charles, but Matt is correct in his explanation of
  27. the "getrootfs" command when invoked with a disk name and the additional
  28. parameter, "sh".  The "getrootfs" command treats arguments following the
  29. disk name as commands, and executes them before any filesystems are
  30. mounted.  In this case, a shell is invoked before the filesystems are
  31. mounted, from which the user can run commands on the unmounted filesystems.
  32.  
  33. The original post that started this thread was about executing "fsck"
  34. on the /usr filesystem.  It should be noted that in 3.2.2, or 3.2.3,
  35. "fsck -fp" is run by the boot process on /, /usr, /var, and /tmp
  36. before they are mounted.  Look at /sbin/rc.boot to verify your
  37. particular system.  This means that "fsck -fp" is invoked for each
  38. filesystem whenever the machine boots from hard disk.
  39.  
  40.  
  41. Matt (a different Matt who is also quite famaliar with the boot process)
  42.  
  43. disclaimer: IBM is not responsible for what I say here.
  44.