<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3705</bug_id>
          
          <creation_ts>2013-01-11 13:58:10 +0000</creation_ts>
          <short_desc>Existing filesystems aren&apos;t cleanly unmounted after booting from USB-drive</short_desc>
          <delta_ts>2013-06-12 23:43:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maksym Zhelieznyi">mv.zhelieznyi</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28768</commentid>
    <comment_count>0</comment_count>
    <who name="Maksym Zhelieznyi">mv.zhelieznyi</who>
    <bug_when>2013-01-11 13:58:10 +0000</bug_when>
    <thetext>Problem was found on Crownbay. Machine has internal SSD with sda1 partition on it.
HDDIMG is written on USB using dd utility.

Main problem that after automounting sda1 on early boot stage and chrooting, sytem can not unmount filesystem cleanly and it causes recovery procedure for sda1 when we boot next time.
Steps to reproduce:
- boot system from USB-drive
- reboot system
Result:
Output for &quot;dmesg | grep &apos;recovery&apos;&quot; command:
  EXT3-fs (sda1): recovery compete

In case when system is booted from USB, command &apos;mount&apos; shows that sda1 are mounted in /media/sda1:
  /dev/sda1 on /media/sda1 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)

But access to /media/sda1 fails as well as unmounting it (umount: can&apos;t umount /media/sda1: Invalid argument). If execute command &quot;mount /dev/sda1 /media/sda1&quot; we can see it mounted and &apos;mount&apos; command shows string &quot;/dev/sda1 on /media/sda1 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)&quot; two times. After unmounting mounted filesystem one string still in &apos;mount&apos; output. 
fstab doesn&apos;t contain sda1.

This is cause of that next booting of system from USB can takes up to 5 minutes if some information has been copied onto the mounted sda1.


related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2064</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28866</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-01-16 16:43:18 +0000</bug_when>
    <thetext>Yes, this is basically the same problem with changing the mount namespace with the chroot as described in Bug 2064 as you noted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29223</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-01-28 02:55:07 +0000</bug_when>
    <thetext>merged into poky/master: f8a4a74c8cd69de2b3332526e1110ff745fb824d

http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/live-image-move-media</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32285</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-04-17 12:38:05 +0000</bug_when>
    <thetext>AlexG, can you verify this on next full pass? Thanks :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32287</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-04-17 12:53:55 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; AlexG, can you verify this on next full pass? Thanks :)

Ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33654</commentid>
    <comment_count>5</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-06 05:45:10 +0000</bug_when>
    <thetext>related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2064</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33874</commentid>
    <comment_count>6</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-12 23:43:28 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=66079795c9eaec1a7ae376b25d91eea14e6498b7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>