Ubuntu hangs on shutdown after mounting usb pendrive with btrfs

Bug #829407 reported by Daniel Kulesz on 2011-08-19
This bug affects 3 people
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)

Bug Description

After mounting a pendrive with btrfs on it, Ubuntu hangs on shutdown even if the drive has been previously removed. The behavior can be observed in Ubuntu 10.10 as well as in 10.04.

Carey Underwood (cwillu) wrote :

Do you recall if the device specifically unmounted before removing it? Btrfs doesn't handle devices going missing very well yet.

The output of alt-sysrq-w during a hang would be useful.

Daniel Kulesz (kuleszdl) wrote :

I think this is exactly the problem.

One easy way to reproduce it is as follows:
1.) Insert an USB pendrive with btrfs on it.
2.) Verify that the USB pendrive got automounted (but do not open it in nautilus)
3.) dd the pendrive (depending on your device number, i.e.: dd if=/dev/zero of=/dev/sdc)
4.) remove the pendrive
5.) Try to shutdown Ubuntu

Launchpad Janitor (janitor) wrote :

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

Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers