AW: Wie richte ich ein swap file ein?
hänge mich schnell mal ein. habe den swap von hand gemacht. und zwar so:
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
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.
ist für einen xp1000. egal. das geht mit jeder E2 box