eigentlich geht es:

zlato:~# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): h (kleiner scherz von mir ... m for help was für ein quatsch smile )
h: unknown command
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (148022-452387, default 148022):
Using default value 148022

Last cylinder, +cylinders or +size{K,M,G} (148022-452387, default 452387): +2G

Command (m for help): p

Disk /dev/sda: 820.4 GB, 820405862400 bytes
161 heads, 22 sectors/track, 452387 cylinders
Units = cylinders of 3542 * 512 = 1813504 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcae24c93

Device Boot Start End Blocks Id System
/dev/sda1 1 148022 262145454+ 83 Linux
/dev/sda2 148022 149206 2097347+ 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Das Gerät oder die Ressource ist belegt.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

zlato:~# partprobe
zlato:~# ls -la /dev/sda
sda sda1 sda2
zlato:~# mkswap /dev/sda2
Setting up swapspace version 1, size = 2097340 KiB
no label, UUID=b333c030-aa35-486a-bc5a-e7a817af9621

zlato:~# free
total used free shared buffers cached
Mem: 2059360 2003544 55816 0 306796 1328444
-/+ buffers/cache: 368304 1691056
Swap: 2096472 8052 2088420
zlato:~# vi /etc/fstab

zlato:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/cciss/c0d0p1 / ext3 defaults,errors=remount-ro 0 1
/dev/cciss/c0d1p1 /home ext3 defaults 0 2
/dev/cciss/c0d0p2 none swap sw 0 0
# /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sda1 /stage ext4 defaults 0 0
eingefügt--> /dev/sda2 none swap sw 0 0

zlato:~# swapon

Usage:
swapon -a [-e] [-v] [-f] enable all swaps from /etc/fstab
swapon [-p priority] [-v] [-f] enable given swap
swapon -s display swap usage summary
swapon -h display help
swapon -V display version

The parameter:
{-L label | LABEL=label} LABEL of device to be used
{-U uuid | UUID=uuid} UUID of device to be used
name of device to be used
name of file to be used

zlato:~# swapon -a
zlato:~# free
total used free shared buffers cached
Mem: 2059360 1992176 67184 0 306744 1316828
-/+ buffers/cache: 368604 1690756
Swap: 4193808 8052 4185756




With the lights out, it's less dangerous