using swap on a separate slice

Ja'far Railton ibn.richard at gmail.com
Tue Dec 19 00:59:44 PST 2006


Hello

I would like to make use of a swap slice left over from a Linux install
(in order to free up the current DFly swap partition for other use).
It is therefore an extended partion. I have googled this but need some
pointers. Can anyone help me with this?
 
Below is the disklabel. (I have altered the the sysid from 15 to 130
thinking that might help me. I also deleted the beginning of the slice
using DFly live CD utilities - just because.)

TIA 
	-jr

 
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=4845 heads=256 sectors/track=63 (16128 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=4845 heads=256 sectors/track=63 (16128 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 11,(DOS or Windows 95 with 32 bit FAT)
    start 63, size 12292497 (6002 Meg), flag 0
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 812/ head 239/ sector 63
The data for partition 2 is:
sysid 165,(DragonFly/FreeBSD/NetBSD/386BSD)
    start 12292560, size 12216960 (5965 Meg), flag 80 (active)
	beg: cyl 813/ head 0/ sector 1;
	end: cyl 596/ head 239/ sector 63
The data for partition 3 is:
sysid 130,(Linux swap or Solaris x86)  ### NB was sysid 15,(LBA (etc.))
    start 24509520, size 604800 (295 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 255/ sector 63
The data for partition 4 is:
sysid 169,(NetBSD)
    start 25114383, size 53025777 (25891 Meg), flag 0
	beg: cyl 1023/ head 1/ sector 1;
	end: cyl 1023/ head 239/ sector 63

Here is the DFly disklabel:


# /dev/ad0c:
type: unknown
disk: amnesiac
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 808
sectors/unit: 12216960
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

16 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288        0    4.2BSD     1024  8192    22 	# (Cyl.    0 - 34*)
  b:  1048576   524288      swap                    	# (Cyl.   34*- 104*)
  c: 12216960        0    unused        0     0       	# (Cyl.    0 - 807)
  d:   524288  1572864    4.2BSD     1024  8192    22 	# (Cyl.  104*- 138*)
  e:   524288  2097152    4.2BSD     1024  8192    22 	# (Cyl.  138*- 173*)
  f:  6291456  2621440    4.2BSD     2048 16384    89 	# (Cyl.  173*- 589*)
  g:  3304064  8912896    4.2BSD     1024  8192    22 	# (Cyl.  589*- 807*)





More information about the Users mailing list