<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3484&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [Solved] Swap partition: swapon error and priority]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3484</link>
		<description><![CDATA[The most recent posts in [Solved] Swap partition: swapon error and priority.]]></description>
		<lastBuildDate>Fri, 22 May 2020 21:24:45 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=22018#p22018</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>... only one swap partition (or swapfile) the priority has no importance.</p></div></blockquote></div><p>An update to confirm this.</p><p>Long story short ...<br />Had to install Raspbian in my RPi3b+ and then do all I did before once <em>again</em>.&#160; 8^º<br />No matter, practise = knowledge.</p><p>In any case ...<br />I set up a new <span class="bbc">/etc/fstab</span> with a <span class="bbc">/swap</span> partition on the HDD, <em>without</em> turning off the existing <span class="bbc">swapfile</span>.</p><p>When I did <span class="bbc">swapon -s</span>, I get this:</p><div class="codebox"><pre><code>pi@grouchopi:/$ swapon -s
Filename				Type		Size	Used	Priority
/dev/sda7                              	partition	2675708	0	-2
/var/swap                              	file    	102396	0	-3
pi@grouchopi:/$ free
              total        used        free      shared  buff/cache   available
Mem:         948296       66928      753336       12356      128032      817596
Swap:       2778104           0     2778104
pi@grouchopi:/$ </code></pre></div><p>I think that the swapfile in the SDCard has it&#039;s priority set somewhere at <span class="bbc">2</span> and as a consequence, the /swap parition gets set at <span class="bbc">3</span>.</p><p>Now I will turn off the <span class="bbc">swapfile</span> so there&#039;s no swapping on the SDCard and change the priority of the <span class="bbc">/swap</span> partiton to <span class="bbc">1</span> and see how it goes.<br />The RPi has just 1Gb. RAM.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 22 May 2020 21:24:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=22018#p22018</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21666#p21666</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>... only one swap partition (or swapfile) the priority has no importance.</p></div></blockquote></div><p>Yes, I had read about that.</p><p>But then I asked myself about the swap priority beng -2 in particular this image (Devuan ascii ARM64) and thought that is was because there was another one somewhere.<br />ie: a swapfile somewhere in the SD Card, which I do not use save for reading the rootfs.</p><p>Then I concluded (as I mention above) that is was due to the use of an SD Card.</p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>... choose the priority if you have more swap partitions (or swapfiles).</p></div></blockquote></div><p>I have only one.</p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>... the UUID is right ...</p></div></blockquote></div><p>Yes, that&#039;s checked.</p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>... change the priority of swap it is the swappiness of the system you should mess with (in /etc/sysctl.conf).</p></div></blockquote></div><p>I recall having used that at some time with my workstation which has 8Gb RAM.</p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>... wait until the system is otherwise behaving well.</p></div></blockquote></div><p>Quite so ...<br />I need to get my VGA/HDMI adaptor (stuck somewhere in the mail delivery pipe) and set up the desktop/coffee roasting software.<br />That will be <em>the</em> test and then I&#039;ll be able to adjust swap accordingly. </p><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>Have a nice day</p></div></blockquote></div><p>You too ...&#160; =-)</p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 12 May 2020 14:36:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21666#p21666</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21665#p21665</link>
			<description><![CDATA[<p>Hi</p><p>If you have only one swap partition (or swapfile) the priority has no importance. The priority is only used to choose the priority if you have more swap partitions (or swapfiles).</p><p>Make sure the UUID is right or use &quot;/dev/sda7 none swap sw 0 0&quot; in your fstab. If you want to change the priority of swap it is the swappiness of the system you should mess with (in /etc/sysctl.conf). But wait until the system is otherwise behaving well.</p><p>Have a nice day<br />Lars H</p>]]></description>
			<author><![CDATA[dummy@example.com (larsH)]]></author>
			<pubDate>Tue, 12 May 2020 14:14:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21665#p21665</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21661#p21661</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... recreate the &quot;swap signature&quot; ...</p></div></blockquote></div><p>Unfortunately that didn&#039;t work and somewhere along the line the partition&#039;s UUID got changed.</p><p>The RPi is originally intended to be used with an SD Card, but I share the opinion that SD Cards were <em>not</em> really intended for the type of use an RPi gives it but for use in cameras and such devices large ie: files written once, read many times over and once moved, eventually deleted. </p><p>Hence a swap file/partition being set with a priority of -2.</p><p>But I have not seen this swap priority setting in any other Linux installs/images.<br />So I have to conclude that it is being set as the default value <em>somewhere</em>.</p><p>Which begs the question: <span class="bbu">where</span> is it set?<br />Any ideas?</p><p>My guess is that it is in one of the init files (?), I&#039;ll have to look around.</p><p>In any case, I found a way to permanently set the swap priority <a href="https://www.thegeekdiary.com/centos-rhel-how-to-prioritize-the-devices-used-for-swap-partition/" rel="nofollow">here</a>.</p><p>This is how:</p><p>1. check the swap partition/file exists:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# free
              total        used        free      shared  buff/cache   available
Mem:         887604       36952      794780        1292       55872      835068
Swap:       3145724           0     3145724
root@rpidevuan:/home/groucho# </code></pre></div><p>2. check to see where it is mounted</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# blkid
--- snip ---
/dev/sda7: UUID=&quot;fd8f0765-c88e-43d1-8b8d-9b734fb6322a&quot; TYPE=&quot;swap&quot; PARTUUID=&quot;d34db33f-07&quot;
root@rpidevuan:/home/groucho# </code></pre></div><p>3. turn it off</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# swapoff /dev/sda7</code></pre></div><p>4. check that it is off</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# swapon -s
root@rpidevuan:/home/groucho# </code></pre></div><p>5. make a backup copy of your <span class="bbc">/etc/fstab</span></p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# cp -p /etc/fstab /etc/fstab.bak
root@rpidevuan:/home/groucho#</code></pre></div><p>6. edit <span class="bbc">/etc/fstab</span> and add <span class="bbc">pri=X</span> in place of <span class="bbc">defaults</span>, with <span class="bbc">X</span> being the desired value and reboot.</p><p>7. check the result</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# swapon -s
Filename				Type		Size	Used	Priority
/dev/sda7                              	partition	3145724	0	1
root@rpidevuan:/home/groucho#</code></pre></div><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# free
              total        used        free      shared  buff/cache   available
Mem:         887604       37884      793036        1292       56684      834100
Swap:       3145724           0     3145724
root@rpidevuan:/home/groucho# </code></pre></div><p>I opted for a value of <span class="bbc">1</span> but I&#039;ll have to check and see how it behaves once I finish my installation and get the coffee roasting software working.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 12 May 2020 13:16:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21661#p21661</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21602#p21602</link>
			<description><![CDATA[<p>You might need to recreate the &quot;swap signature&quot; within the changed partition, with</p><div class="codebox"><pre><code>mkswap /dev/sda7</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 10 May 2020 13:31:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21602#p21602</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21593#p21593</link>
			<description><![CDATA[<p>Hi</p><p>Try with</p><p>UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be&#160; none&#160; swap&#160; sw&#160; 0&#160; 0</p><p>instead of</p><p>UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be&#160; none&#160; swap&#160; defaults&#160; 0&#160; 0</p><p>Have a nice day</p>]]></description>
			<author><![CDATA[dummy@example.com (larsH)]]></author>
			<pubDate>Sun, 10 May 2020 09:49:08 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21593#p21593</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21446#p21446</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>... the <span class="bbc">etc/fstab</span> file for extra spaces.</p></div></blockquote></div><p>Wrote the Devuan ascii *.img files to the SD card and another 40Gb HDD, then made the modifications mentioned in my OP.<br />You can see the instructions in a video <a href="https://www.youtube.com/watch?v=gp6XW-fGVjo" rel="nofollow">here</a>.</p><p>Changed the size of the <span class="bbc">swap</span> partition, was a bit overboard.<br />Will try with 3.0Gb and see how it goes when I run the coffee roasting software as 1Gb RAM is rather tight.</p><div class="codebox"><pre class="vscroll"><code>groucho@devuan:~$ cat /etc/fstab
# &lt;file system&gt;  &lt;mount point&gt; &lt;type&gt; &lt;options&gt;              &lt;dump&gt;&lt;pass&gt;

# bootfs
# was /dev/mmcblk0p1
UUID=EEA4-304A                             /boot    vfat  defaults          0  1

# root on HDD - was /dev/sda2
UUID=589c7999-62be-47ac-8847-32b62fd9fdc9  /        ext4  defaults,noatime  0  1

# /var/log on HDD - was /dev/sda5
UUID=80f008d9-7f6e-49d2-8df7-d370a02be5df  /var/log ext4  defaults,noatime  0  1

# /home on HDD - was /dev/sda6
UUID=58b362ef-c02d-45c0-8085-dc3996a7d947  /home    ext4  defaults,noatime  0  2

# /swap - was /dev/sda7
UUID=5535c86a-ff6f-46d2-a53b-bad0f38d23fc  none     swap  defaults          0  0

## blkid as of 20200505
# 2.0Gb SD card
# /dev/mmcblk0: PTUUID=&quot;ac806f8a&quot; PTTYPE=&quot;dos&quot;
# /dev/mmcblk0p1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;ac806f8a-01&quot;
# /dev/mmcblk0p2: UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;ac806f8a-02&quot;
#
# 40Gb HDD 
# /dev/sda1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;d34db33f-01&quot;
# /dev/sda2: UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;d34db33f-02&quot;
# /dev/sda5: LABEL=&quot;log&quot; UUID=&quot;80f008d9-7f6e-49d2-8df7-d370a02be5df&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;d34db33f-05&quot;
# /dev/sda6: LABEL=&quot;home&quot; UUID=&quot;58b362ef-c02d-45c0-8085-dc3996a7d947&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;d34db33f-06&quot;
# /dev/sda7: LABEL=&quot;swap&quot; UUID=&quot;5535c86a-ff6f-46d2-a53b-bad0f38d23fc&quot; TYPE=&quot;swap&quot; PARTUUID=&quot;d34db33f-07&quot;
groucho@devuan:~$ </code></pre></div><p>I have found it to be a good idea to keep a (dated and commented) output of <span class="bbc">blkid</span> in the <span class="bbc">/etc/fstab</span> file.<br />Keeps everything on the same page when needing to edit or check it.</p><div class="codebox"><pre class="vscroll"><code>root@devuan:/home/groucho# findmnt --verify --verbose
/boot
   [ ] target exists
   [ ] UUID=EEA4-304A translated to /dev/sda1
   [ ] source /dev/sda1 exists
   [ ] FS type is vfat
/
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=589c7999-62be-47ac-8847-32b62fd9fdc9 translated to /dev/sda2
   [ ] source /dev/sda2 exists
   [ ] FS type is ext4
/var/log
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=80f008d9-7f6e-49d2-8df7-d370a02be5df translated to /dev/sda5
   [ ] source /dev/sda5 exists
   [ ] FS type is ext4
/home
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=58b362ef-c02d-45c0-8085-dc3996a7d947 translated to /dev/sda6
   [ ] source /dev/sda6 exists
   [ ] FS type is ext4
none
   [ ] UUID=5535c86a-ff6f-46d2-a53b-bad0f38d23fc translated to /dev/sda7
   [ ] source /dev/sda7 exists
   [ ] FS type is swap
Success, no errors or warnings detected
root@devuan:/home/groucho# </code></pre></div><p>The warnings issued by <span class="bbc">findmnt --verify --verbose</span> were permission related.<br />Must be run as root or <em>without</em>&#160; the <span class="bbc">--verbose</span> modifier.</p><p>Had <span class="bbc">nothing</span> to do with <span class="bbc">update-initramfs -u</span>.&#160; 8^7</p><div class="codebox"><pre class="vscroll"><code>root@devuan:/home/groucho# fdisk -l
--- snip ---
Disk /dev/mmcblk0: 1.9 GiB, 1990197248 bytes, 3887104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a

Device         Boot  Start     End Sectors  Size Id Type
/dev/mmcblk0p1        2048  264191  262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 3872767 3608576  1.7G 83 Linux

Disk /dev/sda: 37.3 GiB, 40060403712 bytes, 78242976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd34db33f

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1           2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/sda2         264192 14942207 14678016    7G 83 Linux
/dev/sda3       14942208 78241791 63299584 30.2G  5 Extended
/dev/sda5       14944256 17041407  2097152    1G 83 Linux
/dev/sda6       17043456 71948287 54904832 26.2G 83 Linux
/dev/sda7       71950336 78241791  6291456    3G 82 Linux swap / Solaris
root@devuan:/home/groucho# </code></pre></div><div class="codebox"><pre><code>root@devuan:/home/groucho# swapon -s
Filename				Type		Size	Used	Priority
/dev/sda7                              	partition	3145724	0	-2
root@devuan:/home/groucho# </code></pre></div><div class="codebox"><pre><code>root@devuan:/home/groucho# swapon -a
root@devuan:/home/groucho# </code></pre></div><p>As for the <span class="bbc">swapon -a</span> parse error, it remains a mystery.<br />When confronted by something like that again, maybe the <em>MS way</em> is better.<br />ie: delete and rewrite the line.&#160; &#160;8^°</p><p>Now to finish the install and do some housekeeping (host name, user, sudoers.d, etc.) <br />I have another doubt I must address but will do so in a different thread.</p><p>Thanks a lot to everyone who helped out with this.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 05 May 2020 12:23:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21446#p21446</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21439#p21439</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Sector 2048 is the optimal start point for a correctly-aligned drive.</p></div></blockquote></div><p>Right ...</p><p>Then I&#039;ll only have to doble check (I <em>had</em> checked) the <span class="bbc">etc/fstab</span> file for extra spaces.<br />I may finish setting up Devuan ascii on the other 40Gb HDD drive in a while, if not tomorrow.</p><p>Thanks for your input,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 04 May 2020 21:31:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21439#p21439</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21438#p21438</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Could this be related to the start of /dev/sda?</p></div></blockquote></div><p>Sector 2048 is the optimal start point for a correctly-aligned drive.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 04 May 2020 20:53:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21438#p21438</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21431#p21431</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>xinomilo wrote:</cite><blockquote><div><p>this is line 9, you have a space after &#039;defaults&#039;, should be &quot;defaults,noatime&quot;</p></div></blockquote></div><p>Quite so ...</p><p>Very sharp!&#160; 8^D</p><p>Can&#039;t look at it now as the drive is toast.<br />But I&#039;ll check that the next install is properly written (maybe tonight) and report back.</p><p>Thanks a lot for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 04 May 2020 18:43:50 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21431#p21431</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21429#p21429</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>... and <span class="bbc">/etc/fstab</span>:</p><div class="codebox"><pre><code>## root on HDD /dev/sda2
UUID=589c7999-62be-47ac-8847-32b62fd9fdc9  /  ext4  defaults, noatime  0  1</code></pre></div></div></blockquote></div><p>this is line 9, you have a space after &#039;defaults&#039;, should be &quot;defaults,noatime&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Mon, 04 May 2020 18:28:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21429#p21429</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21427#p21427</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... looks fine to me.</p></div></blockquote></div><p>Looks fine to me also.<br />Compared it to my other <span class="bbc">/etc/fstab</span> files and found no issue.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p><span class="bbc">findmnt --verify --verbose</span></p></div></blockquote></div><p>Here it is:</p><div class="codebox"><pre><code>groucho@rpidevuan:~$ findmnt --verify --verbose
findmnt: /etc/fstab: parse error at line 9 -- ignored
/boot
   [ ] target exists
   [ ] UUID=EEA4-304A translated to /dev/sda1
   [ ] source /dev/sda1 exists
   [W] cannot detect on-disk filesystem type
/home
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=d25be223-0f7a-4394-a555-636340a965b5 translated to /dev/sda5
   [ ] source /dev/sda5 exists
   [W] cannot detect on-disk filesystem type
/var/log
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=2a7f1d75-8347-465b-8452-4f1ca299405b translated to /dev/sda6
   [ ] source /dev/sda6 exists
   [W] cannot detect on-disk filesystem type
none
   [ ] UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be translated to /dev/sda7
   [ ] source /dev/sda7 exists
   [W] cannot detect on-disk filesystem type

1 parse error, 0 errors, 4 warnings
groucho@rpidevuan:~$ </code></pre></div><p>Nice.&#160; =-)<br />I&#039;ll write to my cheat-sheet.</p><p>1 parse error, 0 errors, 4 warnings --&gt; all in /dev/sda.</p><p>I just now remembered something I <span class="bbu">had not done</span>: <span class="bbc">update-initramfs -u</span>.<br />Done.</p><p>Ran <span class="bbc">findmnt --verify --verbose</span> again:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# findmnt --verify --verbose
findmnt: /etc/fstab: parse error at line 9 -- ignored
/boot
   [ ] target exists
   [ ] UUID=EEA4-304A translated to /dev/sda1
   [ ] source /dev/sda1 exists
   [ ] FS type is vfat
/home
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=d25be223-0f7a-4394-a555-636340a965b5 translated to /dev/sda5
   [ ] source /dev/sda5 exists
   [ ] FS type is ext4
/var/log
   [ ] target exists
   [ ] VFS options: noatime
   [ ] UUID=2a7f1d75-8347-465b-8452-4f1ca299405b translated to /dev/sda6
   [ ] source /dev/sda6 exists
   [ ] FS type is ext4
none
   [ ] UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be translated to /dev/sda7
   [ ] source /dev/sda7 exists
   [ ] FS type is swap

1 parse error, 0 errors, 0 warnings</code></pre></div><p>The warnings are gone (must always remember update-initramfs -u) <br />But the parse error subsists.</p><p>Could this be related to the start of /dev/sda?<br />ie:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# fdisk -l
--- snip ---
Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1           2048   264191   262144  128M  c W95 FAT32 (LBA)               &lt;------------ this 
/dev/sda2         264192  4458495  4194304    2G 83 Linux
/dev/sda3        4458496 78241791 73783296 35.2G  5 Extended
/dev/sda5        4460544 65658879 61198336 29.2G 83 Linux
/dev/sda6       65660928 67758079  2097152    1G 83 Linux
/dev/sda7       67760128 78241791 10481664    5G 82 Linux swap / Solaris
root@rpidevuan:/home/groucho# </code></pre></div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... default value, swapon(8) claims the default is -1 but it&#039;s always -2 when I try to create a fresh swap partition.</p></div></blockquote></div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... appear to have a swap partition ...</p></div></blockquote></div><p>Yes I have.<br />For some reason I confused them, fixed.<br />But this will have to wait for a while.</p><p>My old HDD just gave up the ghost, shutting down/spinning up so often was probably too much for it&#039;s weary heads (ca. 2004).<br />It&#039;s chirping and won&#039;t spin up.&#160; =^°</p><p>But I have another one in the drawer.<br />Will come back to the thread once I&#039;ve set the RPi up again.</p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 04 May 2020 17:49:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21427#p21427</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21421#p21421</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Any idea as to what is wrong with line 9?</p></div></blockquote></div><p>No, looks fine to me. What does this say:</p><div class="codebox"><pre><code>findmnt --verify --verbose</code></pre></div><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Why does the swap file have priority -2?</p></div></blockquote></div><p>I think that&#039;s the default value, swapon(8) claims the default is -1 but it&#039;s always -2 when I try to create a fresh swap partition.</p><p>And btw you appear to have a swap partition rather than a swap file.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 04 May 2020 14:52:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21421#p21421</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Swap partition: swapon error and priority]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21419#p21419</link>
			<description><![CDATA[<p>Hello:</p><p>I finally managed to install the Devuan ascii image on my RPi3B+ and boot it from an 40Gb HDD.</p><p>dd&#039;d the image to a 2.0Gb SD card and a 40Gb USB2.0 HDD thus generating twin images.&#160; <br />It boots from the bootfs on the 2.0Gb SD card with the rest of the system on the HDD.</p><p>I <em>think</em> I understand how it works, not too clear though.</p><p>As the images are identical, the second partition on the SD card has the same UUID as the second partiton on the HDD.<br />Editing the <span class="bbc">/etc/fstab</span> file does the rest. </p><p>Once I checked it was working properly, I used <span class="bbc">gparted</span> from my workstation to resize the root partition on the HDD to 2.0Gb and set up <span class="bbc">/home</span>, <span class="bbc">/var/log</span> and <span class="bbc">swap</span>.</p><p>This is what <span class="bbc">fdisk -l</span> and <span class="bbc">blkid</span> show:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# fdisk -l
--- snip ---
Device         Boot  Start     End Sectors  Size Id Type
/dev/mmcblk0p1        2048  264191  262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 3872767 3608576  1.7G 83 Linux

Disk /dev/sda: 37.3 GiB, 40060403712 bytes, 78242976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1           2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/sda2         264192  4458495  4194304    2G 83 Linux
/dev/sda3        4458496 78241791 73783296 35.2G  5 Extended
/dev/sda5        4460544 65658879 61198336 29.2G 83 Linux
/dev/sda6       65660928 67758079  2097152    1G 83 Linux
/dev/sda7       67760128 78241791 10481664    5G 82 Linux swap / Solaris</code></pre></div><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# blkid
/dev/mmcblk0p1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;d34db33f-01&quot;
/dev/mmcblk0p2: UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;d34db33f-02&quot;
/dev/sda1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;ac806f8a-01&quot;
/dev/sda2: LABEL=&quot;root&quot; UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;ac806f8a-02&quot;
/dev/sda5: LABEL=&quot;home&quot; UUID=&quot;d25be223-0f7a-4394-a555-636340a965b5&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;ac806f8a-05&quot;
/dev/sda6: LABEL=&quot;log&quot; UUID=&quot;2a7f1d75-8347-465b-8452-4f1ca299405b&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;ac806f8a-06&quot;
/dev/sda7: LABEL=&quot;swap&quot; UUID=&quot;1d1727d2-e296-48fb-a6cc-1207cfd6b7be&quot; TYPE=&quot;swap&quot; PARTUUID=&quot;ac806f8a-07&quot;
/dev/mmcblk0: PTUUID=&quot;d34db33f&quot; PTTYPE=&quot;dos&quot;</code></pre></div><p>... and <span class="bbc">/etc/fstab</span>:</p><div class="codebox"><pre><code>groucho@rpidevuan:~$ cat /etc/fstab
## &lt;file system&gt;  &lt;mount point&gt; &lt;type&gt; &lt;options&gt;              &lt;dump&gt;&lt;pass&gt;
##
## bootfs on SD Card
# was /dev/mmcblk0p1  /boot  vfat  defaults  0  1
UUID=EEA4-304A /boot vfat  defaults  0  1

## root on HDD /dev/sda2
UUID=589c7999-62be-47ac-8847-32b62fd9fdc9  /  ext4  defaults, noatime  0  1

## /home on HDD /dev/sda5
UUID=d25be223-0f7a-4394-a555-636340a965b5  /home  ext4  defaults,noatime  0  2

## /var/log on HDD /dev/sda6
UUID=2a7f1d75-8347-465b-8452-4f1ca299405b  /var/log  ext4  defaults,noatime  0  2

## /swap on HDD dev/sda7
UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be  none  swap  defaults  0  0</code></pre></div><p>When setting the swap partition, I got this:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# swapon -a
swapon: /etc/fstab: parse error at line 9 -- ignored
root@rpidevuan:/home/groucho#</code></pre></div><p>But when I check it I get this:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# free
              total        used        free      shared  buff/cache   available
Mem:         887604       33616      795512        1276       58476      838168
Swap:       5240828           0     5240828</code></pre></div><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# swapon -s
Filename				Type		Size	Used	Priority
/dev/sda7                              	partition	5240828	0	-2
root@rpidevuan:/home/groucho# </code></pre></div><p>I used <span class="bbc">cat -v</span> to parse the /etc/fstab file but I get no errors. </p><p>Line 9 is this one:</p><div class="codebox"><pre><code>UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be  none  swap  defaults  0  0</code></pre></div><p>Q1:<br />Any idea as to what is wrong with line 9?</p><p>Q2:<br />Why does the swap <span class="bbs">file</span> partition have priority -2?</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# cat /proc/swaps
Filename				Type		Size	Used	Priority
/dev/sda7                               partition	5240828	0	-2
root@rpidevuan:/home/groucho#</code></pre></div><p>I only have <em>one</em> swap <span class="bbs">file</span> partition and I don&#039;t see the system mounting anything on the SD card:</p><div class="codebox"><pre><code>root@rpidevuan:/home/groucho# mount
/dev/sda2 on / type ext4 (rw,relatime,block_validity,delalloc,nojournal_checksum,norecovery,barrier,user_xattr,acl)
devtmpfs on /dev type devtmpfs (rw,relatime,size=438328k,nr_inodes=109582,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=88764k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1225680k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda5 on /home type ext4 (rw,noatime,data=ordered)
/dev/sda6 on /var/log type ext4 (rw,noatime,data=ordered)
root@rpidevuan:/home/groucho# </code></pre></div><p>I have the feeling that I am missing something.<br />Is this set somewhere else?</p><p>Thanks in advance.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 04 May 2020 13:25:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21419#p21419</guid>
		</item>
	</channel>
</rss>
