Article View: comp.sys.next.software
Article #222Re: SwapFile.
From: Sebastian Florian Mix
Date: Wed, 29 Jul 1992 12:08
Date: Wed, 29 Jul 1992 12:08
56 lines
3014 bytes
3014 bytes
cyk@tos28.teradata.com writes: > I have been trying to designate the 240 MB internal drive, which >is not my boot device, as to be the swap device without success. Can >anybody give me some help? Thanks in advance. To be more precise: You're trying to put your swapfile on the internal drive. > > A little bit more detail about my hardware configuration and the >unsuccessful attemp I tried are given in the following: > > 1) My NeXT is equipped with one 220 MB internal drive and > one 520 MB external drive. The external drive has a SCSI > ID of 0; and it's the boot device. The internal drive > has a SCSI ID of 1; and it's mounted at "/local". I got a similar setup and the same problem. > > 2) The internal drive currently does not contain any data > other than a copy of the system software. It acts as a > backup boot device in case the external drive fails. > > In order to better utilize the internal drive, I would > like to put the swap file on it. > > 3) I made the following unsuccessful attempt: > > Step 1: My internal drive is mounted at /local. > > Step 2: I deleted /local/private/vm/swapfile. > > Step 3: I modified the /etc/swaptab file to > contain a single entry looking like: > > /local/private/vm/swapfile ..... > > Step 4: I rebooted the machine in verbose > mode; and, observed a message like: > > mach_swapon: /local/private/vm/swapfile failed. And here's the problem: is /local already mounted when mach_swapon tries to put the swapfile on it ? I strongly suspect it isn't. At least mine wasn't in a similar setup. > [..] > To summarize: your internal drive is very likely not mounted when you're trying to install your swapfile on it. It is mounted later by the automounter. Solution: create an appropriate fstab entry for your external disk so it will be mounted at boot time (in /etc/rc.boot if i remember correctly) before mach_swapon gets called. This worked for me. hope that helps -- -------------------------------------------------------------------------------- Sebastian Mix, Eichhornstr.5-6 Apt.222, D-1000 Berlin 30, T: (030) 262 1811 /(a\ charon@cs.tu-berlin.de <-no NeXTmail yo-> charabib@w271zrz.zrz.tu-berlin.de \p)/ --------------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Jul29.120816.18709@cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!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!charonReferences:
<776@tdat.teradata.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.software Path: arc1-ca.pugleaf.net!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 From: charon@opal.cs.tu-berlin.de (Sebastian Florian Mix) Subject: Re: SwapFile. Message-ID: <1992Jul29.120816.18709@cs.tu-berlin.de> Keywords: /etc/fstab /private/vm/swapfile /etc/swaptab Sender: news@cs.tu-berlin.de Organization: Techn. University of Berlin, Germany References: <776@tdat.teradata.COM> Date: Wed, 29 Jul 1992 12:08:16 GMT Lines: 56