<?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>i.MX Processors中的主题 Re: How to use pivot_root to change new root and umount old root?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-pivot-root-to-change-new-root-and-umount-old-root/m-p/818804#M126132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to change it in host, then backup you memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2018 13:46:10 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2018-06-27T13:46:10Z</dc:date>
    <item>
      <title>How to use pivot_root to change new root and umount old root?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-pivot-root-to-change-new-root-and-umount-old-root/m-p/818803#M126131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I had tried to change root with pivot_root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot umount the old root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some googling I summarize following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;mount&amp;nbsp; /dev/mmcblk3p2 /newroot&lt;/LI&gt;&lt;LI&gt;cd /newroot&lt;/LI&gt;&lt;LI&gt;unshare -m&lt;/LI&gt;&lt;LI&gt;pivot_root . mnt&lt;/LI&gt;&lt;LI&gt;exec chroot . sh -c&amp;nbsp;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;"umount /old_root; exec /sbin/init"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;&amp;lt;dev/console &amp;gt;dev/console 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;But I was stuck in the fifth steps, it will show there is no console under /dev.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;When I "ll&lt;/SPAN&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt; /dev" I get all this things like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;total 16&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;drwxr-xr-x 4 root root 4096 Jan 1 1970 ./&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;drwxr-xr-x 22 root root 4096 Jun 26 08:05 ../&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 11 Jan 1 1970 core -&amp;gt; /proc/kcore&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 13 Jan 1 1970 fd -&amp;gt; /proc/self/fd/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 8 Jan 1 1970 ptmx -&amp;gt; pts/ptmx&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;drwxr-xr-x 2 root root 4096 Apr 21 2017 pts/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 4 Jan 1 1970 ram -&amp;gt; ram1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;drwxr-xr-x 2 root root 4096 Apr 21 2017 shm/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 4 Jan 1 1970 stderr -&amp;gt; fd/2&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 4 Jan 1 1970 stdin -&amp;gt; fd/0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;lrwxrwxrwx 1 root root 4 Jan 1 1970 stdout -&amp;gt; fd/1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or my steps are wrong or has any problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 08:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-pivot-root-to-change-new-root-and-umount-old-root/m-p/818803#M126131</guid>
      <dc:creator>wangvictor</dc:creator>
      <dc:date>2018-06-26T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use pivot_root to change new root and umount old root?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-pivot-root-to-change-new-root-and-umount-old-root/m-p/818804#M126132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to change it in host, then backup you memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-pivot-root-to-change-new-root-and-umount-old-root/m-p/818804#M126132</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-06-27T13:46:10Z</dc:date>
    </item>
  </channel>
</rss>

