Cannot unmount SD card

Bug #1535529 reported by Côme Chilliet
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Medium
Unassigned
ciborium (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I inserted an SD card in the phone, wanting to format it because it contained old data.
The phone mounted it right away and started fetching data from it, music, photos, …

I cannot unmount the SD card, it says «Unmount error: the device could not be unmounted because is busy».
I tried waiting a long time or rebooting the phone, I keep getting this error and cannot unmount the SD card nor format it.

I also tried using the terminal but I can’t seem to find where the sd card is mounted. As a temporary work around I’d be interested into how to see where it’s mounted and which process are using it, and if possible kill them in order to unmount successfully.

I believe this bug is related to https://bugs.launchpad.net/ubuntu/+source/ciborium/+bug/1414731 .

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. I confirmed this behaviour on krillin rc-proposed 232.

Changed in canonical-devices-system-image:
importance: Undecided → Medium
milestone: none → backlog
status: New → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

ciborium log when this issue is reproduced.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Interestingly the device can be unmounted manually from the command line.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

unmounting with udisks is also successful even with ciborium open.

phablet@ubuntu-phablet:~$ mount | grep vfat
/dev/mmcblk1p1 on /media/phablet/Médias SDc 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:~$ udisksctl unmount -b /dev/mmcblk1p1
Unmounted /dev/mmcblk1p1.
phablet@ubuntu-phablet:~$ mount | grep vfat

Changed in ciborium (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ciborium (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Apitz (gubu) wrote :

I have the same or a similar problem filed as https://bugs.launchpad.net/bugs/1565633
I say similar because I can't unmount the mounted vfat, at least not with 'sudo unmount ....' it says the file system is busy;

Revision history for this message
Matthias Apitz (gubu) wrote :

I can not unmount the file system after inserting the microSD:

phablet@ubuntu-phablet:~$ mount | fgrep vfat
/dev/mmcblk1p1 on /media/phablet/7895-9F4B 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:~$ sudo umount /dev/mmcblk1p1
[sudo] password for phablet:
umount: /media/phablet/7895-9F4B: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)

phablet@ubuntu-phablet:~$ udisksctl unmount -b /dev/mmcblk1p1
Error unmounting /dev/mmcblk1p1: GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/mmcblk1p1: Command-line `umount "/media/phablet/7895-9F4B"' exited with non-zero exit status 32: umount: /media/phablet/7895-9F4B: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)

phablet@ubuntu-phablet:~$ mount | fgrep vfat
/dev/mmcblk1p1 on /media/phablet/7895-9F4B 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)

Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.