vergrößern | Tag | ohneKontur - der Blog https://www.ohnekontur.de ohne Linien und Kanten und trotzdem gefangen Fri, 28 Nov 2014 09:55:39 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 SWAP File / SWAP Partition im Betrieb vergrößern https://www.ohnekontur.de/2010/02/24/swap-file-swap-partition-im-betrieb-vergrosern/ https://www.ohnekontur.de/2010/02/24/swap-file-swap-partition-im-betrieb-vergrosern/#comments Wed, 24 Feb 2010 12:18:14 +0000 http://www.ohnekontur.de/?p=765 Kürzlich stand ich vor dem Problem, mein SWAP-File (bzw. SWAP-Partition) vergrößern zu wollen. Also auf gehts: Erstmal den alten SWAP unmounten: sudo swapoff -a Und jetzt neuen Platz anlegen: dd if=/dev/zero of=/swapfile bs=1M count=1024 #für eine ein GB großes swapfile … Continue reading

The post SWAP File / SWAP Partition im Betrieb vergrößern first appeared on ohneKontur - der Blog.]]>

Kürzlich stand ich vor dem Problem,
mein SWAP-File (bzw. SWAP-Partition) vergrößern zu wollen.

Also auf gehts:

Erstmal den alten SWAP unmounten:

sudo swapoff -a

Und jetzt neuen Platz anlegen:

dd if=/dev/zero of=/swapfile bs=1M count=1024 #für eine ein GB großes swapfile

dann daraus eine Swappartition machen:

mkswap /swapfile

und das System anweisen darauf zu Swapen:

swapon /swapfile

Wichtig ist jetzt noch, was ich gerne mal vergesse,
das ganze Bootfest zu machen.
Dazu einen Eintrag in /etc/fstab erstellen etwa so:

/swapfile               swap                    swap    defaults        0 0

Damit sollte der Swap neu und groß sein :)
und das ganz ohne neustart :)

The post SWAP File / SWAP Partition im Betrieb vergrößern first appeared on ohneKontur - der Blog.]]>
https://www.ohnekontur.de/2010/02/24/swap-file-swap-partition-im-betrieb-vergrosern/feed/ 1