From owner-freebsd-questions Thu Dec 26 18:51:53 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA26151 for questions-outgoing; Thu, 26 Dec 1996 18:51:53 -0800 (PST) Received: from synwork.com (root@synwork.com [199.3.234.4]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA26146 for ; Thu, 26 Dec 1996 18:51:46 -0800 (PST) Received: from mike (flaq@dial11.max4000.phoenix.net [207.43.3.239]) by synwork.com (8.7.5/8.6.12) with SMTP id UAA10050; Thu, 26 Dec 1996 20:51:27 -0600 (CST) Message-Id: <3.0.32.19961226205133.00901580@synwork.com> X-Sender: mike@synwork.com (Unverified) X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Thu, 26 Dec 1996 20:51:35 -0600 To: dwhite@resnet.uoregon.edu From: Mike Kercher Subject: Re: Swap Space Disappeared Cc: questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 11:01 PM 12/25/96 -0800, you wrote: >On Sun, 22 Dec 1996, Mike Kercher wrote: > >> I'm running a 2.1.5-RELEASE box and had 4 IDE drives in it. I removed one >> of the drives to use in another machine (had no critical files...personal >> storage only). Anyway, after removing the entries in /etc/fstab for that >> device, my swap space is now gone and it is/was on a different drive. Is >> there anyway of seeing if the slice of the drive is still there, >> reinitiating the swap space or creating a new swap space? > >You can use disklabel -r to look at the disklabels and see if you have any >B partitions assigned on your disks. You can then edit /etc/fstab to >point to the new swap space. > Here's the output of disklabel -r wd2 [/home/mike] :disklabel -r wd2 # /dev/rwd2c: type: ESDI disk: wd2s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 643 sectors/unit: 649089 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 649089 0 unused 0 0 # (Cyl. 0 - 643*) There are supposed to be two partitions here...1 swap and 1 UFS. >You'd have either to destroy & recreate your partitions in order to get >more swap space, or lose some speed and create a vmswap (?) file. I can't >remember the actual name. See the mail archives for this solution, I >think someone posted it a while back. I don't mind at all repartitioning that drive since there is nothing on it. I have tried using /stand/sysinstall to repartiton and create new file systems, but have yet to succeed. It 'says' that it is doing it, but I never see it run newfs and it does not modify my /etc/fstab. > >Doug White | University of Oregon >Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant >http://gladstone.uoregon.edu/~dwhite | Computer Science Major > > > ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Syn-Work Media, Inc. | WWW Development & Hosting | Life Safety http://www.synwork.com | Systems Integration | CCTV mike@synwork.com | Voice/Data/Fiber | Access Control Flaq on IRC | Dukane Distributor | BICSI/RCDD :|:|:|: Powered By FreeBSD :|:|:|: Turning PC's Into Workstations ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~