Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 1996 20:51:35 -0600
From:      Mike Kercher <mike@synwork.com>
To:        dwhite@resnet.uoregon.edu
Cc:        questions@freebsd.org
Subject:   Re: Swap Space Disappeared
Message-ID:  <3.0.32.19961226205133.00901580@synwork.com>

next in thread | raw e-mail | index | archive | help
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
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19961226205133.00901580>