<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I mount root file system on RAM? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-mount-root-file-system-on-RAM/m-p/779931#M121182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have no experience with overlayroot. Sorry for the inconvenience.&lt;BR /&gt;However we can offer you following way to make rootfs unchanged.&lt;BR /&gt;You can move all significant parts of rootfs like /etc/ into RAM this way:&lt;BR /&gt;mkdir /media/etc&lt;BR /&gt;mount tmpfs -t tmpfs /media/etc&lt;BR /&gt;cp -a /etc/* /media/etc&lt;BR /&gt;mount -o bind /media/etc /etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2018 04:50:04 GMT</pubDate>
    <dc:creator>b36401</dc:creator>
    <dc:date>2018-06-29T04:50:04Z</dc:date>
    <item>
      <title>How can I mount root file system on RAM?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-mount-root-file-system-on-RAM/m-p/779930#M121181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using Yocto project to build my image and installed Ubuntu 16.04 LXDE as my root file system.&lt;/P&gt;&lt;P&gt;I'm trying to protect my eMMC get panic when the power is unexpectedly off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thereby, I found a overlayroot package that can do what I need.&lt;/P&gt;&lt;P&gt;After some googling, I realized that overlayroot is trying to let original root filesystem mount on /media/root-ro as type read-only file.&lt;/P&gt;&lt;P&gt;And it will mount it to /media/root-rw as type tmpfs.&lt;/P&gt;&lt;P&gt;Then mount overlayroot on / as type overlay&lt;/P&gt;&lt;P&gt;Below is content of mount.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="" style="color: #110000; background-color: #f9f9f9; border: none !important; font-size: 12px !important; margin: 0px !important; padding: 0px 4px !important;"&gt;/dev/sda1 on /media/root-ro type ext4 (ro) 
tmpfs-root on /media/root-rw type tmpfs (rw,relatime) 
/dev/sda2 on /data type ext4 (rw)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;All of this were based on X86 platform with Ubuntu 16.04 OS system and it worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However While I try exactly same way on i.MX6DL sabreSD, it couldn't work right.&lt;/P&gt;&lt;P&gt;These are what I had done step by step.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;sudo apt-get update&lt;/LI&gt;&lt;LI&gt;sudo apt-get upgrade&lt;/LI&gt;&lt;LI&gt;sudo apt-get install overlayroot&lt;/LI&gt;&lt;LI&gt;sudo apt-get install ubuntu-server&lt;/LI&gt;&lt;LI&gt;vim /etc/overlayroot.conf&lt;BR /&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;overlayroot="tmpfs:swap=1,recurse=0"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;reboot&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After I did all these steps I still cannot success to execute overlayroot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In conclusion, I need help on several questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Is anyone get anyway to protect eMMC from power unexpect off?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is anyone can help me on overlayroot package?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Did anyone got similar way to reached the same work as overlayroot?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advanced!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-mount-root-file-system-on-RAM/m-p/779930#M121181</guid>
      <dc:creator>wangvictor</dc:creator>
      <dc:date>2018-06-13T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I mount root file system on RAM?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-mount-root-file-system-on-RAM/m-p/779931#M121182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have no experience with overlayroot. Sorry for the inconvenience.&lt;BR /&gt;However we can offer you following way to make rootfs unchanged.&lt;BR /&gt;You can move all significant parts of rootfs like /etc/ into RAM this way:&lt;BR /&gt;mkdir /media/etc&lt;BR /&gt;mount tmpfs -t tmpfs /media/etc&lt;BR /&gt;cp -a /etc/* /media/etc&lt;BR /&gt;mount -o bind /media/etc /etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 04:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-mount-root-file-system-on-RAM/m-p/779931#M121182</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2018-06-29T04:50:04Z</dc:date>
    </item>
  </channel>
</rss>

