Public bug reported: This is from the ubuntu-phone list.
Hi, I digged into this, esp. into why the mounted microSD was busy; there is a process running with the name 'mediascan' and as the SD contained some 100.000 files (map tiles of OpsenStreetMap), this would run hours, I think: phablet@ubuntu-phablet:~$ sudo lsof 2>/dev/null | fgrep /media/phablet/ mediascan 2077 phablet 13r DIR 179,97 32768 4906 /media/phablet/7895-9F4B/Maps/OSM/18/139590 gdbus 2077 2091 phablet 13r DIR 179,97 32768 4906 /media/phablet/7895-9F4B/Maps/OSM/18/139590 gmain 2077 2323 phablet 13r DIR 179,97 32768 4906 /media/phablet/7895-9F4B/Maps/OSM/18/139590 when you kill this, it comes up again, but when you fire up the 'umount' right away after the kill, you are lucky: phablet@ubuntu-phablet:~$ sudo lsof 2>/dev/null | fgrep /media/phablet/ mediascan 7302 phablet 9r DIR 179,97 32768 4900 /media/phablet/7895-9F4B/Maps/OSM/18/139584 gdbus 7302 7304 phablet 9r DIR 179,97 32768 4900 /media/phablet/7895-9F4B/Maps/OSM/18/139584 phablet@ubuntu-phablet:~$ sudo kill -9 7302 phablet@ubuntu-phablet:~$ sudo umount /media/phablet/7895-9F4B phablet@ubuntu-phablet:~$ mount | fgrep vfat phablet@ubuntu-phablet:~$ Now I could reformat the card with the SD card app: SD Card Management --> Format (2 times, 1st error) it gets mounted and has some initial dirs created by the SD Card app: phablet@ubuntu-phablet:~$ mount | fgrep vfat /dev/mmcblk1 on /media/phablet/882E-8C17 type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) phablet@ubuntu-phablet:~$ ls -l /media/phablet/882E-8C17 total 20 drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Documents drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Downloads drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Music drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Pictures drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Videos SD Card Management --> Unmount works too: phablet@ubuntu-phablet:~$ mount | fgrep vfat phablet@ubuntu-phablet:~$ re-inserting the microSD now gives no errors and the card is mounted: $ mount | fgrep vfat /dev/mmcblk1 on /media/phablet/882E-8C17 type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) phablet@ubuntu-phablet:~$ find /media/phablet/882E-8C17 /media/phablet/882E-8C17 /media/phablet/882E-8C17/Documents /media/phablet/882E-8C17/Downloads /media/phablet/882E-8C17/Music /media/phablet/882E-8C17/Pictures /media/phablet/882E-8C17/Videos phablet@ubuntu-phablet:~$ df -kh /media/phablet/882E-8C17 Filesystem Size Used Avail Use% Mounted on /dev/mmcblk1 7.5G 24K 7.5G 1% /media/phablet/882E-8C17 Last question remains: What does the 'mediascan' exactly und what will it do when I restore the 100.000 files again? Is there a way to trimm 'mediascan' that it should ignore some dirs? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-ph...@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp ** Affects: mediascanner2 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mediascanner2 in Ubuntu. https://bugs.launchpad.net/bugs/1565694 Title: Mediascanner ties up SD cards Status in mediascanner2 package in Ubuntu: New Bug description: This is from the ubuntu-phone list. Hi, I digged into this, esp. into why the mounted microSD was busy; there is a process running with the name 'mediascan' and as the SD contained some 100.000 files (map tiles of OpsenStreetMap), this would run hours, I think: phablet@ubuntu-phablet:~$ sudo lsof 2>/dev/null | fgrep /media/phablet/ mediascan 2077 phablet 13r DIR 179,97 32768 4906 /media/phablet/7895-9F4B/Maps/OSM/18/139590 gdbus 2077 2091 phablet 13r DIR 179,97 32768 4906 /media/phablet/7895-9F4B/Maps/OSM/18/139590 gmain 2077 2323 phablet 13r DIR 179,97 32768 4906 /media/phablet/7895-9F4B/Maps/OSM/18/139590 when you kill this, it comes up again, but when you fire up the 'umount' right away after the kill, you are lucky: phablet@ubuntu-phablet:~$ sudo lsof 2>/dev/null | fgrep /media/phablet/ mediascan 7302 phablet 9r DIR 179,97 32768 4900 /media/phablet/7895-9F4B/Maps/OSM/18/139584 gdbus 7302 7304 phablet 9r DIR 179,97 32768 4900 /media/phablet/7895-9F4B/Maps/OSM/18/139584 phablet@ubuntu-phablet:~$ sudo kill -9 7302 phablet@ubuntu-phablet:~$ sudo umount /media/phablet/7895-9F4B phablet@ubuntu-phablet:~$ mount | fgrep vfat phablet@ubuntu-phablet:~$ Now I could reformat the card with the SD card app: SD Card Management --> Format (2 times, 1st error) it gets mounted and has some initial dirs created by the SD Card app: phablet@ubuntu-phablet:~$ mount | fgrep vfat /dev/mmcblk1 on /media/phablet/882E-8C17 type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) phablet@ubuntu-phablet:~$ ls -l /media/phablet/882E-8C17 total 20 drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Documents drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Downloads drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Music drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Pictures drwxr-xr-x 2 phablet phablet 4096 Apr 4 10:40 Videos SD Card Management --> Unmount works too: phablet@ubuntu-phablet:~$ mount | fgrep vfat phablet@ubuntu-phablet:~$ re-inserting the microSD now gives no errors and the card is mounted: $ mount | fgrep vfat /dev/mmcblk1 on /media/phablet/882E-8C17 type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) phablet@ubuntu-phablet:~$ find /media/phablet/882E-8C17 /media/phablet/882E-8C17 /media/phablet/882E-8C17/Documents /media/phablet/882E-8C17/Downloads /media/phablet/882E-8C17/Music /media/phablet/882E-8C17/Pictures /media/phablet/882E-8C17/Videos phablet@ubuntu-phablet:~$ df -kh /media/phablet/882E-8C17 Filesystem Size Used Avail Use% Mounted on /dev/mmcblk1 7.5G 24K 7.5G 1% /media/phablet/882E-8C17 Last question remains: What does the 'mediascan' exactly und what will it do when I restore the 100.000 files again? Is there a way to trimm 'mediascan' that it should ignore some dirs? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-ph...@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1565694/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp