home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / software / 898 < prev    next >
Encoding:
Text File  |  1992-07-29  |  2.9 KB  |  69 lines

  1. Newsgroups: comp.sys.next.software
  2. Path: sparky!uunet!wupost!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!zrz.tu-berlin.de!cs.tu-berlin.de!charon
  3. From: charon@opal.cs.tu-berlin.de (Sebastian Florian Mix)
  4. Subject: Re: SwapFile.
  5. Message-ID: <1992Jul29.120816.18709@cs.tu-berlin.de>
  6. Keywords: /etc/fstab /private/vm/swapfile /etc/swaptab
  7. Sender: news@cs.tu-berlin.de
  8. Organization: Techn. University of Berlin, Germany
  9. References: <776@tdat.teradata.COM>
  10. Date: Wed, 29 Jul 1992 12:08:16 GMT
  11. Lines: 56
  12.  
  13. cyk@tos28.teradata.com writes:
  14. >   I have been trying to designate the 240 MB internal drive, which
  15. >is not my boot device, as to be the swap device without success.  Can
  16. >anybody give me some help?   Thanks in advance.
  17. To be more precise: You're trying to put your swapfile on the internal drive.
  18. >
  19. >   A little bit more detail about my hardware configuration and the
  20. >unsuccessful attemp I tried are given in the following:
  21. >
  22. >     1) My NeXT is equipped with one 220 MB internal drive and
  23. >        one 520 MB external drive.  The external drive has a SCSI
  24. >        ID of 0; and it's the boot device.  The internal drive 
  25. >        has a SCSI ID of 1; and it's mounted at "/local".
  26. I got a similar setup and the same problem.
  27. >
  28. >     2) The internal drive currently does not contain any data
  29. >        other than a copy of the system software.  It acts as a
  30. >        backup boot device in case the external drive fails. 
  31. >
  32. >        In order to  better utilize the internal drive, I would
  33. >        like to put the swap file on it.  
  34. >
  35. >     3) I made the following unsuccessful attempt:
  36. >
  37. >         Step 1: My internal drive is mounted at /local.
  38. >         Step 2: I deleted /local/private/vm/swapfile.
  39. >         Step 3: I modified the /etc/swaptab file to
  40. >                 contain a single entry looking like:
  41. >                 /local/private/vm/swapfile .....
  42. >         Step 4: I rebooted the machine in verbose
  43. >                 mode; and, observed a message like:
  44. >                 mach_swapon: /local/private/vm/swapfile failed.
  45. And here's the problem: is /local already mounted when mach_swapon tries to put
  46. the swapfile on it ? I strongly suspect it isn't. At least mine wasn't in a 
  47. similar setup.
  48. [..]
  49. >
  50. To summarize: your internal drive is very likely not mounted when you're
  51. trying to install your swapfile on it. It is mounted later by the automounter.
  52. Solution: create an appropriate fstab entry for your external disk so it will
  53. be mounted at boot time (in /etc/rc.boot if i remember correctly) before
  54. mach_swapon gets called. This worked for me.
  55.  
  56. hope that helps
  57.  
  58. --
  59. --------------------------------------------------------------------------------
  60. Sebastian Mix, Eichhornstr.5-6 Apt.222, D-1000 Berlin 30, T: (030) 262 1811 /(a\
  61. charon@cs.tu-berlin.de <-no NeXTmail yo-> charabib@w271zrz.zrz.tu-berlin.de \p)/
  62. --------------------------------------------------------------------------------
  63.