BQ E4.5 (OTA-9.1): microSD card can't be unmounted/formatted - mediascanner keeps it busy and no feedback to user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
High
|
Unassigned | ||
ciborium (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
mediascanner2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have inserted an used 8 GByte SD card which is recognised by the E4.5 and
mounted (even if the SD GUI app says it can not mount or format it):
phablet@
/dev/mmcblk1p1 on /media/
also all the old content is visible fine:
phablet@
114352
phablet@
3.7G /media/
phablet@
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1p1 5.1G 3.7G 1.4G 73% /media/
phablet@
total 352
drwxr-xr-x 4 phablet phablet 32768 Jan 1 2012 diario2011
drwxr-xr-x 4 phablet phablet 32768 Jan 2 2013 diario2012
drwxr-xr-x 3 phablet phablet 32768 Nov 27 2011 dic
drwxr-xr-x 2 phablet phablet 32768 Apr 3 15:16 Documents
drwxr-xr-x 2 phablet phablet 32768 Apr 3 15:16 Downloads
drwxr-xr-x 2 phablet phablet 32768 Jul 15 2012 Habana2011
drwxr-xr-x 2 phablet phablet 32768 Jul 19 2012 Habana2011.1024
drwxr-xr-x 3 phablet phablet 32768 Jan 1 2000 Maps
drwxr-xr-x 2 phablet phablet 32768 Apr 3 15:16 Music
drwxr-xr-x 2 phablet phablet 32768 Apr 3 15:16 Pictures
drwxr-xr-x 2 phablet phablet 32768 Apr 3 15:16 Videos
I can not unmount it because it is busy and the GUI let not unmount or format it either.
tags: | added: bq-feedback |
Changed in mediascanner2 (Ubuntu): | |
status: | New → Confirmed |
From ubuntu-phone:
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/ phablet/ 7895-9F4B/ Maps/OSM/ 18/139590 phablet/ 7895-9F4B/ Maps/OSM/ 18/139590 phablet/ 7895-9F4B/ Maps/OSM/ 18/139590
mediascan 2077 phablet 13r DIR 179,97 32768 4906 /media/
gdbus 2077 2091 phablet 13r DIR 179,97 32768 4906 /media/
gmain 2077 2323 phablet 13r DIR 179,97 32768 4906 /media/
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/ phablet/ 7895-9F4B/ Maps/OSM/ 18/139584 phablet/ 7895-9F4B/ Maps/OSM/ 18/139584 ubuntu- phablet: ~$ sudo kill -9 7302 ubuntu- phablet: ~$ sudo umount /media/ phablet/ 7895-9F4B
mediascan 7302 phablet 9r DIR 179,97 32768 4900 /media/
gdbus 7302 7304 phablet 9r DIR 179,97 32768 4900 /media/
phablet@
phablet@
phablet@ ubuntu- phablet: ~$ mount | fgrep vfat ubuntu- phablet: ~$
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 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)
/dev/mmcblk1 on /media/
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 ubuntu- phablet: ~$
phablet@
re-inserting the microSD now gives no errors and the card is
mounted:
$ mount | fgrep vfat 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)
/dev/mmcblk1 on /media/
phablet@ ubuntu- phablet: ~$ find /media/ phablet/ 882E-8C17 phablet/ 882E-8C17 phablet/ 882E-8C17/ Documents phablet/ 882E-8C17/ Downloads phablet/ 882E-8C17/ Music phablet/ 882E-8C17/ Pictures phablet/ 882E-8C17/ Videos ubuntu- phablet: ~$ df -kh /media/ phablet/ 882E-8C17 phablet/ 882E-8C17
/media/
/media/
/media/
/media/
/media/
/media/
phablet@
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1 7.5G 24K 7.5G 1% /media/
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