<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Swap on ohneKontur – der Blog</title>
		<link>https://www.ohnekontur.de/tags/swap/</link>
		<description>Recent content in Swap on ohneKontur – der Blog</description>
		<generator>Hugo</generator>
		<language>de-DE</language>
		
		
		
		
			<lastBuildDate>Wed, 24 Feb 2010 12:18:14 +0000</lastBuildDate>
		
			<atom:link href="https://www.ohnekontur.de/tags/swap/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SWAP File / SWAP Partition im Betrieb vergrößern</title>
				<link>https://www.ohnekontur.de/2010/02/24/swap-file-swap-partition-im-betrieb-vergrosern/</link>
				<pubDate>Wed, 24 Feb 2010 12:18:14 +0000</pubDate>
				<guid>https://www.ohnekontur.de/2010/02/24/swap-file-swap-partition-im-betrieb-vergrosern/</guid>
				<description>&lt;p&gt;&#xA;&#xA;&lt;img&#xA;      &#xA;         src=&#39;https://www.ohnekontur.de/2010/02/24/swap-file-swap-partition-im-betrieb-vergrosern/business_or_education-150x150.jpg&#39;&#xA;      &#xA;        alt=&#39;&#39; &#xA;      &#xA;&#x9;  &#xA;&#x9;loading=&#34;lazy&#34;&gt;&lt;br&gt;&#xA;Kürzlich stand ich vor dem Problem,&lt;br&gt;&#xA;mein SWAP-File (bzw. SWAP-Partition) vergrößern zu wollen.&lt;/p&gt;&#xA;&lt;p&gt;Also auf gehts:&lt;/p&gt;&#xA;&lt;p&gt;Erstmal den alten SWAP unmounten:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;sudo swapoff -a&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Und jetzt neuen Platz anlegen:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;dd if=/dev/zero of=/swapfile bs=1M count=1024 #für eine ein GB großes swapfile&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;dann daraus eine Swappartition machen:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;mkswap /swapfile&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;und das System anweisen darauf zu Swapen:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;swapon /swapfile&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Wichtig ist jetzt noch, was ich gerne mal vergesse,&lt;br&gt;&#xA;das ganze Bootfest zu machen.&lt;br&gt;&#xA;Dazu einen Eintrag in /etc/fstab erstellen etwa so:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Swapfile – Swap ohne eigenes Dateisystem</title>
				<link>https://www.ohnekontur.de/2009/11/29/swapfile-swap-ohne-eigenes-dateisystem/</link>
				<pubDate>Sun, 29 Nov 2009 15:10:43 +0000</pubDate>
				<guid>https://www.ohnekontur.de/2009/11/29/swapfile-swap-ohne-eigenes-dateisystem/</guid>
				<description>&lt;p&gt;Ich dachte bis vor kurzen um unter Linux zu Swap-en bräuche man eine Swap Partition.&lt;/p&gt;&#xA;&lt;p&gt;Es zeigte sich, dass das nur halb richtig ist : Den man kann auch eine Datei, die sich in einem normalen Dateisystem befindet (ext3) als Swap Partition Mounten.&lt;/p&gt;&#xA;&lt;p&gt;Warscheinlich ist das nicht die beste, schönste oder schnellste Methode,&lt;br&gt;&#xA;aber mir spaart es das sehr mühevolle ändern meiner Partitionen.&lt;/p&gt;&#xA;&lt;p&gt;Als machen wirs kurz:&lt;/p&gt;&#xA;&lt;pre lang=&#34;bash&#34;&gt;dd if=/dev/zero of=/Datei/in/die/geswapt/werden/soll.swp bs=1M count=512&#xA;#count gibt die Größe in MB an und kann nach belieben geändert werden&#xA;mkswap /Datei/in/die/geswapt/werden/soll.swp&#xA;swapon /Datei/in/die/geswapt/werden/soll.swp&#xA;echo &gt;&gt;/etc/fstab &#34;#add new swapfiles&#34;&#xA;echo &gt;&gt;/etc/fstab &#34;/Datei/in/die/geswapt/werden/soll.swp swap swap noauto 0 0&#34;&#xA;swapon -a&#xA;&lt;/pre&gt;</description>
			</item>
	</channel>
</rss>
