SWAP erstellen:
zuerst USB-Gerät initialisieren
root@xp1000:/media/usb#
dd if=/dev/zero of=/media/usb/swapfile1 bs=1024 count=524288
524288+0 records in
524288+0 records out
536870912 bytes (512.0MB) copied, 193.201617 seconds, 2.6MB/s
root@xp1000:/media/usb#
mkswap /media/usb/swapfile1
Setting up swapspace version 1, size = 536866816 bytes
UUID=cf348477-4304-4268-a27e-f382cbc6cfdc
root@xp1000:/media/usb#
chown root:root /media/usb/swapfile1
root@xp1000:/media/usb#
chmod 0600 /media/usb/swapfile1
root@xp1000:/media/usb#
swapon /media/usb/swapfile1
so kontrollieren:
root@xp1000:/media/usb#
cat /proc/swaps
Filename Type Size Used Priority
/media/usb/swapfile1 file 524284 0 -1
root@xp1000:/media/usb#
To activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using a text editor such as vi:
# vi /etc/fstab
Append the following line:
/swapfile1 swap swap defaults 0 0
Save and close the file. Next time Linux comes up after reboot, it enables the new swap file for you automatically.
Aus gründen der Geschwindigkeit empfehle ich eine USB-HDD. Mein Teststick schafft nur 2.6MB/s...LOL
@hulk: vllt hilft das