<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>littlefs example mount point already exists</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76164/littlefs-example-mount-point-already-exists</link><description>Hello, 
 I am trying to run the littlefs example with no changes from Zephyr (NCS v1.5.0) on my nRF52840 DK but I keep getting this error &amp;quot;&amp;lt;err&amp;gt; fs: mount point already exists!!&amp;quot; 
 
 Why is this happening? 
 
 
 
 
 Regards, 
 Akash Patel</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 17:58:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76164/littlefs-example-mount-point-already-exists" /><item><title>RE: littlefs example mount point already exists</title><link>https://devzone.nordicsemi.com/thread/319450?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 17:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe0c19f-4a46-40d2-ae95-54b17988df20</guid><dc:creator>Akash Patel</dc:creator><description>&lt;p&gt;It seems to me that the example should be modified to check if it is already mounted and if not, perform the mount.&lt;/p&gt;
&lt;p&gt;Right now, with automount enabled, the example will work the first time and run into errors thereafter or with automount disabled, the example won&amp;#39;t work until it has been run with automount enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: littlefs example mount point already exists</title><link>https://devzone.nordicsemi.com/thread/314665?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 11:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab821d8-f960-47e4-a028-38a018ece71a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Akash,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is what I got on the first boot:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.99-ncs2  ***
Area 0 at 0x0 on MX25R64 for 65536 bytes
[00:00:00.374,969] &amp;lt;inf&amp;gt; littlefs: littlefs partition at /lfs1
[00:00:00.382,720] &amp;lt;inf&amp;gt; littlefs: LittleFS version 2.2, disk version 2.0
[00:00:00.382,751] &amp;lt;inf&amp;gt; littlefs: FS at MX25R64:0x0 is 16 0x1000-byte blocks with 512 cycle
[00:00:00.382,781] &amp;lt;inf&amp;gt; littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.383,026] &amp;lt;err&amp;gt; littlefs: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}
[00:00:00.383,026] &amp;lt;wrn&amp;gt; littlefs: can&amp;#39;t mount (LFS -84); formatting
/lfs1 mount: 0
/lfs1: bsize = 16 ; frsize = 4096 ; blocks = 16 ; bfree = 14
/lfs1/boot_count stat: -2
/lfs1/boot_count read count 0: 0
/lfs1/boot_count seek start: 0
/lfs1/boot_count write new boot count 1: 4
/lfs1/boot_count close: 0
/lfs1 opendir: 0
  F 4 boot_count
End of files
/lfs1 unmount: 0
[00:00:00.548,004] &amp;lt;inf&amp;gt; littlefs: /lfs1 mounted
[00:00:00.555,480] &amp;lt;err&amp;gt; fs: failed get file or dir stat (-2)
[00:00:00.576,721] &amp;lt;inf&amp;gt; littlefs: /lfs1 unmounted
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It seems to store the value, but it has a problem unmounting. I&amp;#39;ll report it internally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: littlefs example mount point already exists</title><link>https://devzone.nordicsemi.com/thread/314527?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 14:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc626bff-8c2f-4cea-92c2-2a0c588b19bc</guid><dc:creator>Akash Patel</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I commented out automount but now I am getting a different error on the first boot:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623249248056v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On subsequent boots (second and following boots), I do not get this error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623249268514v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Akash&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: littlefs example mount point already exists</title><link>https://devzone.nordicsemi.com/thread/314365?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 07:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94bd0c08-38a0-4d15-bb63-89a3b320b638</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Akash,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try commenting out the automount flag in the .overlay file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840.overlay#L16"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840.overlay#L16&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve reported this as an issue internally, which needs to be addressed upstream.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>