When I installed Freebsd I didn't create a swap space. Now I'd like to add it. I'm slightly confused as to naming of the partitions and the procedure for adding it:
I installed FreeBSD on the first partition of my only drive on a laptop. The rest of the space is unpartitioned as far as I know. I'd like to create 2 more partitions: 1 for swap (4GB) and the remaining space for data.
Here's my fdisk and df -h
I'd really appreciate any help with it.
I installed FreeBSD on the first partition of my only drive on a laptop. The rest of the space is unpartitioned as far as I know. I'd like to create 2 more partitions: 1 for swap (4GB) and the remaining space for data.
Here's my fdisk and df -h
Code:
bsdtop# fdisk
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=484521 heads=16 sectors/track=63 (1008 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 88396497 (43162 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
bsdtop# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s1a 496M 258M 198M 57% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad4s1e 496M 86K 456M 0% /tmp
/dev/ad4s1f 33G 6.8G 24G 22% /usr
/dev/ad4s1d 2.9G 56M 2.6G 2% /var
I'd really appreciate any help with it.